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