]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
Add .dwmrc
authorR. Steve McKown <rsmckown@gmail.com>
Sun, 14 Jun 2015 06:05:47 +0000 (00:05 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Sun, 14 Jun 2015 06:05:47 +0000 (00:05 -0600)
dwmrc [new file with mode: 0755]
install.sh

diff --git a/dwmrc b/dwmrc
new file mode 100755 (executable)
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
index e2365a5430ab0889b7963fef941067adbf5bf81b..1388b458f1b14dca6c5ae23ab52cc06da6e80167 100755 (executable)
@@ -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