blob: 0a34d84cf8f27b4c1d03352372401f216dc75970 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
#gap for status bar
gap 13 0 0 0
#enable sticky groups
sticky yes
#autogroup rules
autogroup 1 XTerm
autogroup 3 mail
autogroup 4 comm
autogroup 5 music
autogroup 5 mpv
autogroup 8 tabbed-surf
autogroup 9 pass
#aesthetics
fontname "Cozette:style=Medium:pixelsize=11"
borderwidth 1
color activeborder "#6b996b"
color inactiveborder "#4c4635"
color groupborder "#3c7b7f"
color ungroupborder "#cc3214"
color menubg "#14130e"
color menufg "#b7a980"
color font "#3d6266"
color selfont "#72694f"
#binds
#don't want any default keys
unbind-key all
unbind-mouse all
#program list
command term xterm
command lock slock
#program spawning
#bind-key 4-d dmenu_run
bind-key 4-d menu-exec
bind-key 4S-d menu-cmd
bind-key 4C-d menu-window-hidden
bind-key 4-Return terminal
#bind-key 4S-Return "sh -c \"$TERMINAL -class popup"
bind-key 4-e "sh -c \"$TERMINAL -e env TERM=xterm-256color $EDITOR\""
#bind-key 4S-e "sh -c \"$TERMINAL -class popup -e env TERM=xterm-256color $EDITOR\""
bind-key 4-w "sh -c \"$BROWSER $HOMEPAGE\""
bind-key 4S-c "sh -c \"$COMM\""
bind-key 4-a "sh -c \"$TERMINAL -class pass -e kpcli --kdb=$HOME_DATA/KeePass/database.kdbx\""
bind-key 4-s "sh -c \"lh $(xclip -o)\""
bind-key 4S-s "sh -c \"lh $(xclip -sel clip -o)\""
bind-key 4-m "sh -c \"$TERMINAL -class musictui -e $MUSIC\""
bind-key 4-c "sh -c \"$TERMINAL -class mail -e $MAILER\""
bind-key 4-n "sh -c \"$TERMINAL -e $RSS\""
bind-key 4-r "sh -c \"$TERMINAL -e $FILE\""
bind-key 4S-r "sh -c \"$READER\""
bind-key 4-p "sh -c \"$SCR -u $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\""
bind-key 4S-p "sh -c \"$SCR -us $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\""
bind-key 4S-comma "mpc -q prev"
bind-key 4S-period "mpc -q next"
bind-key 4-apostrophe "mpc -q single"
bind-key 4-comma "mpc -q repeat"
bind-key 4-period "mpc -q toggle"
bind-key 4C-period "mpc -q volume +5"
bind-key 4C-comma "mpc -q volume -5"
bind-key 4CS-period "mpc -q volume +15"
bind-key 4CS-comma "mpc -q volume -15"
bind-key 4-equal "sndioctl -q output.level=+0.05"
bind-key 4-minus "sndioctl -q output.level=-0.05"
bind-key 4S-plus "sndioctl -q output.level=+0.15"
bind-key 4S-minus "sndioctl -q output.level=-0.15"
bind-key 4S-m "sndioctl -q output.mute=!"
bind-key 4C-equal "xbacklight -inc 5"
bind-key 4C-minus "xbacklight -dec 5"
bind-key 4CS-equal "xbacklight -inc 15"
bind-key 4CS-minus "xbacklight -dec 15"
bind-key 4-x lock
bind-key 4S-x "sh -c \"prompt 'shutdown computer?' 'doas shutdown -p now'\""
bind-key 4S-BackSpace "sh -c \"prompt 'reboot computer?' 'doas shutdown -r now'\""
bind-key 4-b "sh -c \"pkill dzen2||bar.sh\""
#window nav
bind-key 4-j window-cycle
bind-key 4-k window-rcycle
#bind-key 4-i incnmaster {.i = +1 }
#bind-key 4-o incnmaster {.i = -1 }
#bind-key 4-h setmfact {.f = -0.05}
#bind-key 4-l setmfact {.f = +0.05}
#window moving
bind-key 4S-h window-move-left
bind-key 4S-j window-move-down
bind-key 4S-k window-move-up
bind-key 4S-l window-move-right
bind-key 4SM-h window-move-left-big
bind-key 4SM-j window-move-down-big
bind-key 4SM-k window-move-up-big
bind-key 4SM-l window-move-right-big
#window resize
bind-key 4C-h window-resize-left
bind-key 4C-j window-resize-down
bind-key 4C-k window-resize-up
bind-key 4C-l window-resize-right
bind-key 4CM-h window-resize-left-big
bind-key 4CM-j window-resize-down-big
bind-key 4CM-k window-resize-up-big
bind-key 4CM-l window-resize-right-big
#bind-key 4-space zoom
bind-key 4-Tab group-cycle
bind-key 4S-Tab group-rcycle
#window killing
bind-key 4-q window-close
bind-key 4S-q "sh -c \"kill -9 $(xdotool getwindowfocus getwindowpid)\""
#layouts
bind-key 4-f window-maximize
bind-key 4S-f window-fullscreen
bind-key 4-t window-vtile
bind-key 4S-t window-vmaximize
bind-key 4-y window-htile
bind-key 4S-y window-hmaximize
#bind-key 4S-space togglefloating
#special window modification
bind-key 4-0 group-toggle-all
bind-key 4S-0 window-stick
bind-key 4C-0 window-hide
#exits
bind-key 4-F2 restart
bind-key 4S-Escape quit
#group designation/nav
bind-key 4-g window-group
bind-key 4-1 group-only-1
bind-key 4S-1 window-movetogroup-1
bind-key 4C-1 group-toggle-1
bind-key 4-2 group-only-2
bind-key 4S-2 window-movetogroup-2
bind-key 4C-2 group-toggle-2
bind-key 4-3 group-only-3
bind-key 4S-3 window-movetogroup-3
bind-key 4C-3 group-toggle-3
bind-key 4-4 group-only-4
bind-key 4S-4 window-movetogroup-4
bind-key 4C-4 group-toggle-4
bind-key 4-5 group-only-5
bind-key 4S-5 window-movetogroup-5
bind-key 4C-5 group-toggle-5
bind-key 4-6 group-only-6
bind-key 4S-6 window-movetogroup-6
bind-key 4C-6 group-toggle-6
bind-key 4-7 group-only-7
bind-key 4S-7 window-movetogroup-7
bind-key 4C-7 group-toggle-7
bind-key 4-8 group-only-8
bind-key 4S-8 window-movetogroup-8
bind-key 4C-8 group-toggle-8
bind-key 4-9 group-only-9
bind-key 4S-9 window-movetogroup-9
bind-key 4C-9 group-toggle-9
|