summaryrefslogtreecommitdiff
path: root/sxhkd
diff options
context:
space:
mode:
Diffstat (limited to 'sxhkd')
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc158
1 files changed, 158 insertions, 0 deletions
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
new file mode 100644
index 0000000..fd9444a
--- /dev/null
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -0,0 +1,158 @@
1# wm independent hotkeys
2## terminal emulator
3super + Return
4 urxvt
5super + shift + Return
6 bspc rule -a \* -o state=floating && urxvt
7
8# program launcher
9super + @space
10 rofi -show drun -show-icons
11
12super + c
13 rofi -show calc -modi calc -no-show-match -no-sort
14super + i
15 ~/.config/rofi/rofi-wifi.sh
16
17# cmus (I don't know why mpDris is not supported. Got it musl problem lol)
18#super + {u,n}
19# cmus-remote {-p,-n}
20#super + shift + {u,n}
21# cmus-remote {-u,-r}
22
23
24# make sxhkd reload its configuration files:
25super + Escape
26 pkill -USR1 -x sxhkd
27
28#
29# bspwm hotkeys
30super + shift + w
31 /opt/brave-v1.3.43-linux-x64/brave
32control + alt + l
33 /home/ssaini/.config/lock.sh
34super + shift + f
35 pcmanfm
36Print
37 scrot
38super + x
39 ~/.config/rofi/rofi-power.sh
40super + shift + p
41 rofi-pass
42#
43
44# quit/restart bspwm
45super + alt + {q,r}
46 bspc {quit,wm -r}
47
48# close and kill
49super + {_,shift + }w
50 bspc node -{c,k}
51
52# alternate between the tiled and monocle layout
53super + m
54 bspc desktop -l next
55
56# send the newest marked node to the newest preselected node
57super + y
58 bspc node newest.marked.local -n newest.!automatic.local
59
60# swap the current node and the biggest node
61super + g
62 bspc node -s biggest
63
64#
65# state/flags
66#
67
68# set the window state
69super + {t,shift + t,s,f}
70 bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
71
72# set the node flags
73super + ctrl + {m,x,y,z}
74 bspc node -g {marked,locked,sticky,private}
75
76#
77# focus/swap
78#
79
80# focus the node in the given direction
81super + {_,shift + }{h,j,k,l}
82 bspc node -{f,s} {west,south,north,east}
83
84# focus the node for the given path jump
85super + {p,b,comma,period}
86 bspc node -f @{parent,brother,first,second}
87
88# focus the next/previous node in the current desktop
89alt + {_,shift + }Tab
90 bspc node -f {next,prev}.local
91
92# focus the next/previous desktop in the current monitor
93super + bracket{left,right}
94 bspc desktop -f {prev,next}.local
95
96# focus the last node/desktop
97super + {grave,Tab}
98 bspc {node,desktop} -f last
99
100# focus the older or newer node in the focus history
101super + {o,i}
102 bspc wm -h off; \
103 bspc node {older,newer} -f; \
104 bspc wm -h on
105
106# focus or send to the given desktop
107super + {_,shift + }{1-9,0}
108 bspc {desktop -f,node -d} '^{1-9,10}'
109
110#
111# preselect
112#
113
114# preselect the direction
115super + ctrl + {h,j,k,l}
116 bspc node -p {west,south,north,east}
117
118# preselect the ratio
119super + ctrl + {1-9}
120 bspc node -o 0.{1-9}
121
122# cancel the preselection for the focused node
123super + ctrl + space
124 bspc node -p cancel
125
126# cancel the preselection for the focused desktop
127super + ctrl + shift + space
128 bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
129
130#
131# move/resize
132#
133
134# expand a window by moving one of its side outward
135super + alt + {h,j,k,l}
136 bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
137
138# contract a window by moving one of its side inward
139super + alt + shift + {h,j,k,l}
140 bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
141
142# move a floating window
143super + {Left,Down,Up,Right}
144 bspc node -v {-20 0,0 20,0 -20,20 0}
145
146#Volume
147XF86Audio{RaiseVolume,LowerVolume}
148 amixer set Master {'5%+','5%-'}
149XF86AudioMute
150 amixer set Master toggle
151
152#Playerctl
153XF86Audio{Play,Next,Prev}
154 playerctl {play-pause,next,previous}
155
156#light
157XF86MonBrightness{Down,Up}
158 xbacklight {-dec 5,-inc 5}