From fe92fc6177b902fa97a6db36327680438c4ea190 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Sun, 14 Jun 2015 00:05:47 -0600 Subject: [PATCH] Add .dwmrc --- dwmrc | 39 +++++++++++++++++++++++++++++++++++++++ install.sh | 1 + 2 files changed, 40 insertions(+) create mode 100755 dwmrc diff --git a/dwmrc b/dwmrc new file mode 100755 index 0000000..c2a2a1c --- /dev/null +++ b/dwmrc @@ -0,0 +1,39 @@ +#!/bin/bash +# +# Probably called from a /usr/share/xsessions/somesession.desktop that lists an +# exec like dwm.custom, and the dwm.custom executable script looks like: +# +# #!/bin/bash +# +# if [ -f "$HOME/.dwmrc" ]; then +# exec "$HOME/.dwmrc" +# else +# exec dwm.custom +# fi + +# Initial startup volume to sane level +pactl set-sink-volume $(pactl info | grep "Default Sink:" | awk '{ print $3}') '30%' + +# Default LCD panel brightness +xbacklight -set 50 + +# Set the X background +xsetroot -solid black + +# Set up screens +dispcfg + +# Screen saver. DPMS standby -> suspend -> off in seconds +# xss-lock calls i3lock on no X activity (DPMS standby) +xset dpms 300 600 1200 +pgrep -x xss-lock || xss-lock -- i3lock --dpms & + +# Applets, etc +pgrep -x xbindkeys || xbindkeys & +pgrep -x dunst || dunst & +pgrep -x nm-applet || nm-applet & +pgrep -x xfce4-power-manager || xfce4-power-manager & +pgrep -x pidgin || pidgin & +pgrep dwm-i3status || dwm-i3status & + +exec dwm.custom diff --git a/install.sh b/install.sh index e2365a5..1388b45 100755 --- a/install.sh +++ b/install.sh @@ -36,3 +36,4 @@ dolink .dotfiles/eagle .eagle dolink .dotfiles/Xdefaults .Xdefaults dolink .dotfiles/Xresources .Xresources dolink .dotfiles/xbindkeysrc.scm .xbindkeysrc.scm +dolink .dotfiles/dwmrc .dwmrc -- 2.39.2