]> git.siccegge.de Git - dotfiles/herbstluftwm.git/blob - autostart
f52ec997a56a467cc4ab185ef2e1f10d853a5918
[dotfiles/herbstluftwm.git] / autostart
1 #!/bin/bash
2
3 PATH=${HOME}/bin:$PATH
4 VISUAL="emacsclient -c -a ''"
5
6 export PATH
7 export VISUAL
8
9 function hc() {
10 herbstclient "$@"
11 }
12
13 Mod=Mod4
14
15 # tags
16 hc rename default 1 || true
17 for i in {0..9} ; do
18 hc add "$i"
19 hc keybind "$Mod-$i" use "$i"
20 hc keybind "$Mod-Shift-$i" move "$i"
21 done
22
23 case "$(hostname)" in
24 hepworth)
25 xrandr --output VGA-0 --auto
26 xrandr --output HDMI-0 --left-of VGA-0 --auto
27 hc detect_monitors
28 hc pad 1 16 0 0 0
29 ;;
30 mitoraj)
31 hc pad 0 16 0 0 0
32 ;;
33 esac
34
35 compton &!
36 redshift -l 49.598:11.003 &!
37 (sleep 5 ; lxpanel) &!
38
39 hc setenv PATH $PATH
40 hc setenv VDPAU_DRIVER vdpau
41
42 source .config/herbstluftwm/wallpaper.sh
43 set_wallpaper
44
45 # keybindings
46 hc keybind $Mod-q quit
47 hc keybind $Mod-Shift-r reload
48 hc keybind $Mod-Shift-c close
49 hc keybind $Mod-Return spawn urxvtcd
50
51 hc keybind $Mod-p spawn dmenu_run
52 hc keybind $Mod-u spawn /home/christoph/bin/utf8select
53 hc keybind $Mod-w spawn /home/christoph/bin/windowselect
54 hc keybind $Mod-n spawn /home/christoph/bin/q3terminal
55 hc keybind $Mod-x spawn slock
56 hc keybind $Mod-t spawn ncmpcpp toggle
57 hc keybind $Mod-y spawn passin
58
59 # layouting
60 hc keybind $Mod-r remove
61 hc keybind $Mod-space cycle_layout 1
62 hc keybind $Mod-i split vertical 0.5
63 hc keybind $Mod-o split horizontal 0.5
64 hc keybind $Mod-s floating toggle
65 hc keybind $Mod-f fullscreen toggle
66
67 # resizing
68 RESIZESTEP=0.025
69 hc keybind $Mod-Control-Left resize left +$RESIZESTEP
70 hc keybind $Mod-Control-Down resize down +$RESIZESTEP
71 hc keybind $Mod-Control-Up resize up +$RESIZESTEP
72 hc keybind $Mod-Control-Right resize right +$RESIZESTEP
73
74 # mouse
75 hc mousebind $Mod-Button1 move
76 hc mousebind $Mod-Button2 resize
77 hc mousebind $Mod-Button3 zoom
78
79 # focus
80 hc keybind $Mod-BackSpace cycle_monitor
81 hc keybind $Mod-Tab cycle_all +1
82 hc keybind $Mod-Shift-Tab cycle_all -1
83 hc keybind $Mod-c cycle
84 hc keybind $Mod-Left focus left
85 hc keybind $Mod-Down focus down
86 hc keybind $Mod-Up focus up
87 hc keybind $Mod-Right focus right
88 hc keybind $Mod-Shift-Left shift left
89 hc keybind $Mod-Shift-Down shift down
90 hc keybind $Mod-Shift-Up shift up
91 hc keybind $Mod-Shift-Right shift right
92 hc keybind XF86AudioRaiseVolume spawn mpc volume +3
93 hc keybind XF86AudioLowerVolume spawn mpc volume -3
94 hc keybind XF86AudioMute spawn mpc toggle
95
96
97 # colors
98 hc set frame_border_active_color '#222222'
99 hc set frame_border_normal_color '#101010'
100 hc set frame_bg_normal_color '#565656'
101 hc set frame_bg_active_color '#345F0C'
102 hc set frame_border_width 1
103 hc set window_border_width 3
104 hc set window_border_inner_width 1
105 hc set window_border_normal_color '#454545'
106 hc set window_border_active_color '#9fbc00'
107 hc set always_show_frame 1
108 hc set frame_gap 4
109 hc set frame_bg_transparent 1
110
111 hc rule class=Pinentry focus=on
112 hc rule instance=Dialog class=Iceweasel focus=on
113
114 hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
115 hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
116 hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK)' manage=off
117
118 hc rule class=Pinentry focus=on
119
120 xfsettingsd &!
121
122 source .config/herbstluftwm/wallpaper.sh
123 set_wallpaper
124
125 hc setenv VDPAU_DRIVER radeonsi