Skip to content

Commit df1904f

Browse files
committedMar 12, 2025·
feat: add chezmoi service
1 parent e3812d6 commit df1904f

File tree

5 files changed

+77
-1
lines changed

5 files changed

+77
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<channel name="xfce4-session" version="1.0">
4+
<property name="general" type="empty">
5+
<property name="FailsafeSessionName" type="string" value="Failsafe"/>
6+
<property name="LockCommand" type="string" value=""/>
7+
</property>
8+
<property name="sessions" type="empty">
9+
<property name="Failsafe" type="empty">
10+
<property name="IsFailsafe" type="bool" value="true"/>
11+
<property name="Count" type="int" value="5"/>
12+
<property name="Client0_Command" type="array">
13+
<value type="string" value="xfwm4"/>
14+
</property>
15+
<property name="Client0_Priority" type="int" value="15"/>
16+
<property name="Client0_PerScreen" type="bool" value="false"/>
17+
<property name="Client1_Command" type="array">
18+
<value type="string" value="xfsettingsd"/>
19+
</property>
20+
<property name="Client1_Priority" type="int" value="20"/>
21+
<property name="Client1_PerScreen" type="bool" value="false"/>
22+
<property name="Client3_Command" type="array">
23+
<value type="string" value="Thunar"/>
24+
<value type="string" value="--daemon"/>
25+
</property>
26+
<property name="Client3_Priority" type="int" value="30"/>
27+
<property name="Client3_PerScreen" type="bool" value="false"/>
28+
<property name="Client4_Command" type="array">
29+
<value type="string" value="xfdesktop"/>
30+
</property>
31+
<property name="Client4_Priority" type="int" value="35"/>
32+
<property name="Client4_PerScreen" type="bool" value="false"/>
33+
</property>
34+
</property>
35+
</channel>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable winblues-chezmoi.service
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
. "${WINBLUES_CHEZMOI_ORIGINAL_ENV_FILE}"
6+
7+
xfconf-profile sync --merge=hard
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
set -exuo pipefail
3+
4+
. "${WINBLUES_CHEZMOI_ORIGINAL_ENV_FILE}"
5+
6+
# TODO: check user's config to see if they don't want us to manage wallpapers
7+
8+
# Allow setting a different wallpaper per workspace
9+
xfconf-query --create -c 'xfce4-desktop' -p '/backdrop/single-workspace-mode' --type 'bool' --set 'false'
10+
11+
# The rest of the workspaces are tiled images
12+
images=(
13+
"/usr/share/backgrounds/wintc/bliss.jpg"
14+
"/usr/share/backgrounds/wintc/follow.jpg"
15+
"/usr/share/backgrounds/wintc/redmoon.jpg"
16+
)
17+
18+
workspace_id=1
19+
for image in "${images[@]}"; do
20+
xfconf-query --channel xfce4-desktop --list |
21+
grep "workspace${workspace_id}/color-style" |
22+
xargs -I{} xfconf-query --create -c 'xfce4-desktop' -p {} --type 'int' --set 0
23+
24+
xfconf-query --channel xfce4-desktop --list |
25+
grep "workspace${workspace_id}/image-style" |
26+
xargs -I{} xfconf-query --create -c 'xfce4-desktop' -p {} --type 'int' --set 2
27+
28+
xfconf-query --channel xfce4-desktop --list |
29+
grep "workspace${workspace_id}/last-image" |
30+
xargs -I{} xfconf-query --create -c 'xfce4-desktop' -p {} --type 'string' --set "$image"
31+
32+
((workspace_id++))
33+
done

‎files/system/usr/share/xfconf-profile/default.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"/general/show_popup_shadow": false,
1818
"/general/title_font": "Trebuchet MS Bold 11",
1919
"/general/title_alignment": "left",
20-
"/general/theme": "Windows XP style (Blue)",
20+
"/general/theme": "Windows XP style (Blue)"
2121
},
2222
"xfce4-keyboard-shortcuts": {
2323
"/commands/custom/Super_L": "/usr/bin/wintc-taskband --start"

0 commit comments

Comments
 (0)
Please sign in to comment.