diff --git a/dotfiles-old/.config/displaym/.xinitrc b/dotfiles-old/.config/displaym/.xinitrc index ff5a473..249c945 100644 --- a/dotfiles-old/.config/displaym/.xinitrc +++ b/dotfiles-old/.config/displaym/.xinitrc @@ -1,8 +1,6 @@ # load X default stuff xrdb -load .Xresources -# xclock -xclock -geometry 180x180-10+10 -update 1 & -# xload -xload -geometry 180x180-10+200 -update 1 & +# wallpaper +feh --bg-center /home/trinity/Pictures/Wallpapers/nosebleed.jpg # keybind manager -exec sxhkd & +pgrep -x sxhkd >/dev/null || sxhkd & diff --git a/dotfiles-old/.config/displaym/ctwm/.xinitrc b/dotfiles-old/.config/displaym/ctwm/.xinitrc index bd7108c..cfd4e86 100644 --- a/dotfiles-old/.config/displaym/ctwm/.xinitrc +++ b/dotfiles-old/.config/displaym/ctwm/.xinitrc @@ -1 +1,7 @@ +# xclock +xclock -geometry 180x180-10+10 -update 1 & +# xload +xload -geometry 180x180-10+200 -update 1 & +# bar +data | lemonbar -bf '-*-unscii-*-*-*-*-*-*-*-*-*-*-*-*' -F '#FFDBDB' & exec ctwm diff --git a/dotfiles-old/bin/displaym b/dotfiles-old/bin/displaym index 156daa1..dd5f81b 100755 --- a/dotfiles-old/bin/displaym +++ b/dotfiles-old/bin/displaym @@ -23,7 +23,11 @@ case "$1" in (start) WM="$2"; export WM cat "$DISPLAYM_CONFIG/.xinitrc" "$DISPLAYM_CONFIG/$WM/.xinitrc" >"$HOME/.xinitrc" - . "$HOME/.config/displaym/$WM/start.sh" + sh "$DISPLAYM_CONFIG/$WM/start.sh" + ;; + (stop) + sh "$DISPLAYM_CONFIG/$WM/stop.sh" + pkill "$WM" ;; (*) usage ;; esac