]> git.siccegge.de Git - dotfiles/herbstluftwm.git/commitdiff
Update herbstluftwm config
authorChristoph Egger <christoph@christoph-egger.org>
Wed, 27 Jan 2016 16:01:43 +0000 (17:01 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Wed, 27 Jan 2016 16:01:43 +0000 (17:01 +0100)
autostart

index 01924d4478eef9ab994b900f5a0ca4026b0fcfc7..f52ec997a56a467cc4ab185ef2e1f10d853a5918 100755 (executable)
--- a/autostart
+++ b/autostart
@@ -6,27 +6,44 @@ VISUAL="emacsclient -c -a ''"
 export PATH
 export VISUAL
 
-# this is a simple config for herbstluftwm
-
-xrandr --output VGA-0 --auto
-xrandr --output HDMI-0 --left-of VGA-0 --auto
-
 function hc() {
     herbstclient "$@"
 }
 
-hc setenv PATH $PATH
+Mod=Mod4
 
-hc detect_monitors
+# tags
+hc rename default 1 || true
+for i in {0..9} ; do
+    hc add "$i"
+    hc keybind "$Mod-$i" use "$i"
+    hc keybind "$Mod-Shift-$i" move "$i"
+done
+
+case "$(hostname)" in
+       hepworth)
+               xrandr --output VGA-0 --auto
+               xrandr --output HDMI-0 --left-of VGA-0 --auto
+               hc detect_monitors
+               hc pad 1 16 0 0 0
+               ;;
+       mitoraj)
+               hc pad 0 16 0 0 0
+               ;;
+esac
+
+compton &!
+redshift -l 49.598:11.003 &!
+(sleep 5 ; lxpanel) &!
+
+hc setenv PATH $PATH
+hc setenv VDPAU_DRIVER vdpau
 
 source .config/herbstluftwm/wallpaper.sh
 set_wallpaper
 
-xset -b
-
 # keybindings
-Mod=Mod4
-#hc keybind $Mod-q quiti
+hc keybind $Mod-q quit
 hc keybind $Mod-Shift-r reload
 hc keybind $Mod-Shift-c close
 hc keybind $Mod-Return spawn urxvtcd
@@ -34,19 +51,11 @@ hc keybind $Mod-Return spawn urxvtcd
 hc keybind $Mod-p spawn dmenu_run
 hc keybind $Mod-u spawn /home/christoph/bin/utf8select
 hc keybind $Mod-w spawn /home/christoph/bin/windowselect
+hc keybind $Mod-n spawn /home/christoph/bin/q3terminal
 hc keybind $Mod-x spawn slock
 hc keybind $Mod-t spawn ncmpcpp toggle
 hc keybind $Mod-y spawn passin
 
-
-# tags
-hc rename default 1 || true
-for i in {0..9} ; do
-    hc add "$i"
-    hc keybind "$Mod-$i" use "$i"
-    hc keybind "$Mod-Shift-$i" move "$i"
-done
-
 # layouting
 hc keybind $Mod-r     remove
 hc keybind $Mod-space cycle_layout 1