aboutsummaryrefslogtreecommitdiff
path: root/sxhkd/sxhkdrc
blob: 530905ea45f33db9929ec0af760387682088ae20 (plain)
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Basic binds
super + Return
    st
super + F1
        brave
super + F9
	st -e vifmrun
super + F3
	st -e pulsemixer
#	st -e alsamixer
super + F5
	discord
super + F2
	st -e ncmpcpp-ueberzug
super + F4
	mumble
super + F6
	st -e neomutt
	#thunderbird
super + F8
	sct 2500
super + F7
	passmenu
super + shift + F7
	otpmenu
super + shift + F8
	sct
#super + shift + x
XF86ScreenSaver
	i3lock -c 131313
#	st -n unimatrix -c unimatrix -e unimatrix -g=black -c=white -a -s 92 & slock

shift + Print
	import ~/pics/screenshots/$(date +%F_%H%M%S_%N).png
Print
	import -window root ~/pics/screenshots/$(date +%F_%H%M%S_%N).png
super + Escape
#XF86Launch1
	st -e htop
super + d
	/home/trollshotlol/Work/xmenu/xmenu.sh
super + r
	dmenu_run -fn "JetBrains Mono:style=Regular:size=9" -i -l 10
super + n
	 networkmanager_dmenu -fn "JetBrains Mono:style=Regular:size=9" -w 650 -x 365 -y 244 -p ">>" -l 15
XF86AudioRaiseVolume
	pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%
#	amixer set Master 5%+
XF86AudioLowerVolume
	pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5%
#	amixer set Master 5%-
shift + XF86AudioRaiseVolume
	mpc volume +2
shift + XF86AudioLowerVolume
	mpc volume -2
XF86AudioNext
	mpc next
XF86AudioPrev
	mpc prev
XF86AudioPlay
	mpc toggle
XF86AudioMute
#	amixer set Master toggle
	pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle
XF86AudioMicMute
#	amixer set Master toggle
	pactl set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo toggle
XF86Sleep
	light -S 0
XF86MonBrightnessUp
	light -A 5
XF86MonBrightnessDown
	light -U 5
super + c
	camtoggle
##
## bspwm hotkeys
##
#
## quit/restart bspwm
#super + shift + {e,r}
#	bspc {quit,wm -r}
#
## close and kill
#super + shift + q
#	bspc node -c
#
## alternate between the tiled and monocle layout
#super + w
#	bspc desktop -l next
#
## send the newest marked node to the newest preselected node
#super + y
#	bspc node newest.marked.local -n newest.!automatic.local
#
## swap the current node and the biggest node
#super + g
#	bspc node -s biggest
#
##
## state/flags
##
#
## set the window state
#super + {e,t,shift + space,f}
#	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
#
## set the node flags
#super + ctrl + {m,x,y,z}
#	bspc node -g {marked,locked,sticky,private}
#
##
## focus/swap
##
#
## focus the node for the given path jump
#super + {p,b,comma,period}
#	bspc node -f @{parent,brother,first,second}
#
## focus the next/previous node in the current desktop
#super + {_,shift + }{h,j,k,l}
#  LAYOUT=$(bspc query -T -d | jq -r .layout); \
#  [[ "$LAYOUT" == "tiled" ]] && bspc node -{f,s} {west,south,north,east}.local; \
#  [[ "$LAYOUT" == "monocle" ]] && bspc node -{f,s} {prev,next,prev,next}.local
#
## focus the next/previous desktop in the current monitor
#super + bracket{left,right}
#	bspc desktop -f {prev,next}.local
#
## focus the last node/desktop
#super + q
#	bspc desktop -f last
#
## focus the older or newer node in the focus history
#super + {o,i}
#	bspc wm -h off; \
#	bspc node {older,newer} -f; \
#	bspc wm -h on
#
## focus or send to the given desktop
#super + {_,shift + }{1-9,0}
#	bspc {desktop -f,node -d} '^{1-9,10}'
#
#super {_,shift +}Tab
#	bspc desktop -f {next,prev}
#
##
## preselect
##
#
## preselect the direction
#super + ctrl + {h,j,k,l}
#	bspc node -p {west,south,north,east}
#
## preselect the ratio
#super + ctrl + {1-9}
#	bspc node -o 0.{1-9}
#
## cancel the preselection for the focused node
#super + ctrl + space
#	bspc node -p cancel
#
## cancel the preselection for the focused desktop
#super + ctrl + shift + space
#	bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
##
## move/resize
##
#
## expand a window by moving one of its side outward
#alt + {h,j,k,l}
#	bspc node -z {left -10 0,bottom 0 10,top 0 -10,right 10 0}
#
## contract a window by moving one of its side inward
#shift + alt + {h,j,k,l}
#	bspc node -z {right -10 0,top 0 10,bottom 0 -10,left 10 0}
#
## move a floating window
#super + {Left,Down,Up,Right}
#	bspc node -v {-20 0,0 20,0 -20,20 0}