chamesle-windowmaker (1350B)
1 #!/bin/sh 2 # the window maker session. apps get onestepback here and not system-wide, so another desktop on the same 3 # computer keeps its own look 4 export XDG_CURRENT_DESKTOP=WindowMaker 5 export GTK_THEME=OneStepBack 6 export GTK2_RC_FILES=/usr/share/themes/OneStepBack/gtk-2.0/gtkrc 7 # high contrast from Chamesle Accessibility takes over from it 8 eval "$(chamesle-access env 2>/dev/null)" 9 10 xdg-user-dirs-update 2>/dev/null 11 12 # the first time: our dock (tray, clock, volume) and the wallpaper. window maker starts the dock apps itself, 13 # started by hand they float about instead of sitting in the dock. after that it's yours, change it in WPrefs. 14 # 0.1 set the wallpaper with wmsetbg before window maker had made its files, which didn't take, so 15 # .chamesle-dock is new and those get it once too 16 G=$HOME/GNUstep 17 if [ ! -e "$G/.chamesle-dock" ]; then 18 mkdir -p "$G/Defaults" "$G/Library/WindowMaker" 19 cp /usr/share/chamesle/windowmaker/WMState "$G/Defaults/WMState" 20 [ -s "$G/Defaults/WindowMaker" ] && grep -q "^ *WorkspaceBack" "$G/Defaults/WindowMaker" || 21 cp /usr/share/chamesle/windowmaker/WindowMaker "$G/Defaults/WindowMaker" 22 touch "$G/.chamesle-dock" 23 fi 24 A=$G/Library/WindowMaker/autostart 25 [ -e "$A" ] || { mkdir -p "${A%/*}"; printf '#!/bin/sh\n/usr/libexec/chamesle-windowmaker-autostart\n' > "$A"; chmod +x "$A"; } 26 27 exec wmaker