diff options
author | Shubham Saini <x@ghost.localdomain> | 2020-08-01 10:27:02 +0000 |
---|---|---|
committer | Shubham Saini <x@ghost.localdomain> | 2020-08-01 10:27:02 +0000 |
commit | aa1fbe12aec99cecd90f2e7ea21d8ab2110ac4ba (patch) | |
tree | 14d0552185d24907a166724c635d05857b90a35e /sxhkd | |
parent | 21749df08dbd93b09c291ce66345b4636100a5da (diff) |
added lemon
Diffstat (limited to 'sxhkd')
-rw-r--r-- | sxhkd/.config/sxhkd/sxhkdrc | 106 |
1 files changed, 26 insertions, 80 deletions
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 2db257e..38b99a4 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -1,165 +1,111 @@ | |||
1 | # wm independent hotkeys | ||
2 | ## terminal emulator | ||
3 | super + Return | 1 | super + Return |
4 | urxvtc | 2 | urxvtc |
5 | super + shift + Return | 3 | super + shift + Return |
6 | bspc rule -a \* -o state=floating && urxvtc | 4 | bspc rule -a \* -o state=floating && urxvtc |
7 | |||
8 | # program launcher | ||
9 | super + @space | 5 | super + @space |
10 | dmenu_run -l 10 | 6 | dmenu_run -i -fn "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5" -nb "#f3f4f5" -nf "#2f2f2f" -sb "#626868" -sf "#ffffff" |
11 | super + c | ||
12 | rofi -show calc -modi calc -no-show-match -no-sort -no-history | ||
13 | super + i | ||
14 | ~/.config/rofi/rofi-wifi.sh | ||
15 | |||
16 | # cmus (I don't know why mpDris is not supported. Got it musl problem lol) | ||
17 | super + {u,n} | ||
18 | cmus-remote {-p,-n} | ||
19 | super + shift + {u,n} | ||
20 | cmus-remote {-u,-r} | ||
21 | |||
22 | |||
23 | # make sxhkd reload its configuration files: | ||
24 | super + Escape | ||
25 | pkill -USR1 -x sxhkd | ||
26 | |||
27 | # | ||
28 | # bspwm hotkeys | ||
29 | super + shift + w | 7 | super + shift + w |
30 | firefox | 8 | chromium |
31 | control + alt + l | 9 | control + alt + l |
32 | xset s activate | 10 | xset s activate |
33 | super + shift + f | 11 | super + shift + f |
34 | spacefm | 12 | urxvtc -e ranger |
35 | 13 | ||
36 | scrot -u | 14 | screenshot f |
15 | control + Print | ||
16 | screenshot w | ||
37 | super + x | 17 | super + x |
38 | /home/fd0e/.local/bin/shut | 18 | /home/fd0e/.local/bin/shut |
39 | super + shift + p | 19 | super + shift + p |
40 | /home/fd0e/.local/bin/passmenu | 20 | /home/fd0e/.local/bin/passmenu |
41 | # | 21 | super + Escape |
22 | pkill -USR1 -x sxhkd | ||
23 | |||
24 | # volume | ||
25 | XF86Audio{RaiseVolume,LowerVolume} | ||
26 | pulsemixer --change-volume {+5,-5} | ||
27 | XF86AudioMute | ||
28 | pulsemixer --toggle-mute | ||
29 | |||
30 | # cmus | ||
31 | XF86Audio{Play,Next,Prev} | ||
32 | cmus-remote {-u,-n,-r} | ||
33 | |||
34 | # brightness | ||
35 | XF86MonBrightnessDown | ||
36 | sudo ~/bin/light d | ||
37 | XF86MonBrightnessUp | ||
38 | sudo ~/bin/light u | ||
39 | |||
42 | 40 | ||
41 | # bspwm hotkeys | ||
43 | # quit/restart bspwm | 42 | # quit/restart bspwm |
44 | super + alt + {q,r} | 43 | super + alt + {q,r} |
45 | bspc {quit,wm -r} | 44 | bspc {quit,wm -r} |
46 | |||
47 | # close and kill | 45 | # close and kill |
48 | super + {_,shift + }w | 46 | super + {_,shift + }w |
49 | bspc node -{c,k} | 47 | bspc node -{c,k} |
50 | |||
51 | # alternate between the tiled and monocle layout | 48 | # alternate between the tiled and monocle layout |
52 | super + m | 49 | super + m |
53 | bspc desktop -l next | 50 | bspc desktop -l next |
54 | |||
55 | # send the newest marked node to the newest preselected node | 51 | # send the newest marked node to the newest preselected node |
56 | super + y | 52 | super + y |
57 | bspc node newest.marked.local -n newest.!automatic.local | 53 | bspc node newest.marked.local -n newest.!automatic.local |
58 | |||
59 | # swap the current node and the biggest node | 54 | # swap the current node and the biggest node |
60 | super + g | 55 | super + g |
61 | bspc node -s biggest | 56 | bspc node -s biggest |
62 | |||
63 | # | ||
64 | # state/flags | ||
65 | # | ||
66 | |||
67 | # set the window state | 57 | # set the window state |
68 | super + {t,shift + t,s,f} | 58 | super + {t,shift + t,s,f} |
69 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} | 59 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} |
70 | |||
71 | # set the node flags | 60 | # set the node flags |
72 | super + ctrl + {m,x,y,z} | 61 | super + ctrl + {m,x,y,z} |
73 | bspc node -g {marked,locked,sticky,private} | 62 | bspc node -g {marked,locked,sticky,private} |
74 | |||
75 | # | ||
76 | # focus/swap | ||
77 | # | ||
78 | |||
79 | # focus the node in the given direction | 63 | # focus the node in the given direction |
80 | super + {_,shift + }{h,j,k,l} | 64 | super + {_,shift + }{h,j,k,l} |
81 | bspc node -{f,s} {west,south,north,east} | 65 | bspc node -{f,s} {west,south,north,east} |
82 | |||
83 | # focus the node for the given path jump | 66 | # focus the node for the given path jump |
84 | super + {p,b,comma,period} | 67 | super + {p,b,comma,period} |
85 | bspc node -f @{parent,brother,first,second} | 68 | bspc node -f @{parent,brother,first,second} |
86 | |||
87 | # focus the next/previous node in the current desktop | 69 | # focus the next/previous node in the current desktop |
88 | alt + {_,shift + }Tab | 70 | alt + {_,shift + }Tab |
89 | bspc node -f {next,prev}.local | 71 | bspc node -f {next,prev}.local |
90 | |||
91 | # focus the next/previous desktop in the current monitor | 72 | # focus the next/previous desktop in the current monitor |
92 | super + bracket{left,right} | 73 | super + bracket{left,right} |
93 | bspc desktop -f {prev,next}.local | 74 | bspc desktop -f {prev,next}.local |
94 | |||
95 | # focus the last node/desktop | 75 | # focus the last node/desktop |
96 | super + {grave,Tab} | 76 | super + {grave,Tab} |
97 | bspc {node,desktop} -f last | 77 | bspc {node,desktop} -f last |
98 | |||
99 | # focus the older or newer node in the focus history | 78 | # focus the older or newer node in the focus history |
100 | super + {o,i} | 79 | super + {o,i} |
101 | bspc wm -h off; \ | 80 | bspc wm -h off; \ |
102 | bspc node {older,newer} -f; \ | 81 | bspc node {older,newer} -f; \ |
103 | bspc wm -h on | 82 | bspc wm -h on |
104 | |||
105 | # focus or send to the given desktop | 83 | # focus or send to the given desktop |
106 | super + {_,shift + }{1-9,0} | 84 | super + {_,shift + }{1-9,0} |
107 | bspc {desktop -f,node -d} '^{1-9,10}' | 85 | bspc {desktop -f,node -d} '^{1-9,10}' |
108 | |||
109 | # | ||
110 | # preselect | ||
111 | # | ||
112 | |||
113 | #remove gaps | 86 | #remove gaps |
114 | super + minus | 87 | super + minus |
115 | bspc config window_gap 0 | 88 | bspc config window_gap 0 |
116 | super + equal | 89 | super + equal |
117 | bspc config window_gap 8 | 90 | bspc config window_gap 8 |
118 | |||
119 | # preselect the direction | 91 | # preselect the direction |
120 | super + ctrl + {h,j,k,l} | 92 | super + ctrl + {h,j,k,l} |
121 | bspc node -p {west,south,north,east} | 93 | bspc node -p {west,south,north,east} |
122 | |||
123 | # preselect the ratio | 94 | # preselect the ratio |
124 | super + ctrl + {1-9} | 95 | super + ctrl + {1-9} |
125 | bspc node -o 0.{1-9} | 96 | bspc node -o 0.{1-9} |
126 | |||
127 | # cancel the preselection for the focused node | 97 | # cancel the preselection for the focused node |
128 | super + ctrl + space | 98 | super + ctrl + space |
129 | bspc node -p cancel | 99 | bspc node -p cancel |
130 | |||
131 | # cancel the preselection for the focused desktop | 100 | # cancel the preselection for the focused desktop |
132 | super + ctrl + shift + space | 101 | super + ctrl + shift + space |
133 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel | 102 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel |
134 | |||
135 | # | ||
136 | # move/resize | ||
137 | # | ||
138 | |||
139 | # expand a window by moving one of its side outward | 103 | # expand a window by moving one of its side outward |
140 | super + alt + {h,j,k,l} | 104 | super + alt + {h,j,k,l} |
141 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} | 105 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} |
142 | |||
143 | # contract a window by moving one of its side inward | 106 | # contract a window by moving one of its side inward |
144 | super + alt + shift + {h,j,k,l} | 107 | super + alt + shift + {h,j,k,l} |
145 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} | 108 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} |
146 | |||
147 | # move a floating window | 109 | # move a floating window |
148 | super + {Left,Down,Up,Right} | 110 | super + {Left,Down,Up,Right} |
149 | bspc node -v {-20 0,0 20,0 -20,20 0} | 111 | bspc node -v {-20 0,0 20,0 -20,20 0} |
150 | |||
151 | #Volume | ||
152 | XF86Audio{RaiseVolume,LowerVolume} | ||
153 | pulsemixer --change-volume {+5,-5} | ||
154 | XF86AudioMute | ||
155 | pulsemixer --toggle-mute | ||
156 | |||
157 | #Playerctl | ||
158 | XF86Audio{Play,Next,Prev} | ||
159 | cmus-remote {-u,-n,-r} | ||
160 | |||
161 | #light | ||
162 | XF86MonBrightnessDown | ||
163 | sudo ~/bin/light d | ||
164 | XF86MonBrightnessUp | ||
165 | sudo ~/bin/light u | ||