From: Christoph Egger Date: Sat, 1 Aug 2015 17:34:26 +0000 (+0200) Subject: Add initial config X-Git-Url: https://git.siccegge.de//index.cgi?p=dotfiles%2Fherbstluftwm.git;a=commitdiff_plain;h=b67bbf688b2e4864851153161e708c2799f258a5 Add initial config --- b67bbf688b2e4864851153161e708c2799f258a5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/autostart b/autostart new file mode 100755 index 0000000..01924d4 --- /dev/null +++ b/autostart @@ -0,0 +1,116 @@ +#!/bin/bash + +PATH=${HOME}/bin:$PATH +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 + +hc detect_monitors + +source .config/herbstluftwm/wallpaper.sh +set_wallpaper + +xset -b + +# keybindings +Mod=Mod4 +#hc keybind $Mod-q quiti +hc keybind $Mod-Shift-r reload +hc keybind $Mod-Shift-c close +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-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 +hc keybind $Mod-i split vertical 0.5 +hc keybind $Mod-o split horizontal 0.5 +hc keybind $Mod-s floating toggle +hc keybind $Mod-f fullscreen toggle + +# resizing +RESIZESTEP=0.025 +hc keybind $Mod-Control-Left resize left +$RESIZESTEP +hc keybind $Mod-Control-Down resize down +$RESIZESTEP +hc keybind $Mod-Control-Up resize up +$RESIZESTEP +hc keybind $Mod-Control-Right resize right +$RESIZESTEP + +# mouse +hc mousebind $Mod-Button1 move +hc mousebind $Mod-Button2 resize +hc mousebind $Mod-Button3 zoom + +# focus +hc keybind $Mod-BackSpace cycle_monitor +hc keybind $Mod-Tab cycle_all +1 +hc keybind $Mod-Shift-Tab cycle_all -1 +hc keybind $Mod-c cycle +hc keybind $Mod-Left focus left +hc keybind $Mod-Down focus down +hc keybind $Mod-Up focus up +hc keybind $Mod-Right focus right +hc keybind $Mod-Shift-Left shift left +hc keybind $Mod-Shift-Down shift down +hc keybind $Mod-Shift-Up shift up +hc keybind $Mod-Shift-Right shift right +hc keybind XF86AudioRaiseVolume spawn mpc volume +3 +hc keybind XF86AudioLowerVolume spawn mpc volume -3 +hc keybind XF86AudioMute spawn mpc toggle + + +# colors +hc set frame_border_active_color '#222222' +hc set frame_border_normal_color '#101010' +hc set frame_bg_normal_color '#565656' +hc set frame_bg_active_color '#345F0C' +hc set frame_border_width 1 +hc set window_border_width 3 +hc set window_border_inner_width 1 +hc set window_border_normal_color '#454545' +hc set window_border_active_color '#9fbc00' +hc set always_show_frame 1 +hc set frame_gap 4 +hc set frame_bg_transparent 1 + +hc rule class=Pinentry focus=on +hc rule instance=Dialog class=Iceweasel focus=on + +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on +hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off + +hc rule class=Pinentry focus=on + +xfsettingsd &! + +source .config/herbstluftwm/wallpaper.sh +set_wallpaper + +hc setenv VDPAU_DRIVER radeonsi diff --git a/wallpaper.sh b/wallpaper.sh new file mode 100644 index 0000000..3685eca --- /dev/null +++ b/wallpaper.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set_wallpaper() { + +WP=( $(ls .config/herbstluftwm/wallpaper/* | sort -R | head -n 2) ) + +cat < ~/.config/nitrogen/bg-saved.cfg + +[xin_0] +file=${WP[0]} +mode=5 +bgcolor=#000000 + +[xin_1] +file=${WP[1]} +mode=5 +bgcolor=#000000 + +EOF + +nitrogen --restore +}