summaryrefslogtreecommitdiff
path: root/sxhkd
diff options
context:
space:
mode:
authorShubham Saini <x@ghost.localdomain>2020-08-01 10:27:02 +0000
committerShubham Saini <x@ghost.localdomain>2020-08-01 10:27:02 +0000
commitaa1fbe12aec99cecd90f2e7ea21d8ab2110ac4ba (patch)
tree14d0552185d24907a166724c635d05857b90a35e /sxhkd
parent21749df08dbd93b09c291ce66345b4636100a5da (diff)
added lemon
Diffstat (limited to 'sxhkd')
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc106
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
3super + Return 1super + Return
4 urxvtc 2 urxvtc
5super + shift + Return 3super + shift + Return
6 bspc rule -a \* -o state=floating && urxvtc 4 bspc rule -a \* -o state=floating && urxvtc
7
8# program launcher
9super + @space 5super + @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"
11super + c
12 rofi -show calc -modi calc -no-show-match -no-sort -no-history
13super + i
14 ~/.config/rofi/rofi-wifi.sh
15
16# cmus (I don't know why mpDris is not supported. Got it musl problem lol)
17super + {u,n}
18 cmus-remote {-p,-n}
19super + shift + {u,n}
20 cmus-remote {-u,-r}
21
22
23# make sxhkd reload its configuration files:
24super + Escape
25 pkill -USR1 -x sxhkd
26
27#
28# bspwm hotkeys
29super + shift + w 7super + shift + w
30 firefox 8 chromium
31control + alt + l 9control + alt + l
32 xset s activate 10 xset s activate
33super + shift + f 11super + shift + f
34 spacefm 12 urxvtc -e ranger
35Print 13Print
36 scrot -u 14 screenshot f
15control + Print
16 screenshot w
37super + x 17super + x
38 /home/fd0e/.local/bin/shut 18 /home/fd0e/.local/bin/shut
39super + shift + p 19super + shift + p
40 /home/fd0e/.local/bin/passmenu 20 /home/fd0e/.local/bin/passmenu
41# 21super + Escape
22 pkill -USR1 -x sxhkd
23
24# volume
25XF86Audio{RaiseVolume,LowerVolume}
26 pulsemixer --change-volume {+5,-5}
27XF86AudioMute
28 pulsemixer --toggle-mute
29
30# cmus
31XF86Audio{Play,Next,Prev}
32 cmus-remote {-u,-n,-r}
33
34# brightness
35XF86MonBrightnessDown
36 sudo ~/bin/light d
37XF86MonBrightnessUp
38 sudo ~/bin/light u
39
42 40
41# bspwm hotkeys
43# quit/restart bspwm 42# quit/restart bspwm
44super + alt + {q,r} 43super + alt + {q,r}
45 bspc {quit,wm -r} 44 bspc {quit,wm -r}
46
47# close and kill 45# close and kill
48super + {_,shift + }w 46super + {_,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
52super + m 49super + 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
56super + y 52super + 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
60super + g 55super + 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
68super + {t,shift + t,s,f} 58super + {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
72super + ctrl + {m,x,y,z} 61super + 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
80super + {_,shift + }{h,j,k,l} 64super + {_,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
84super + {p,b,comma,period} 67super + {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
88alt + {_,shift + }Tab 70alt + {_,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
92super + bracket{left,right} 73super + 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
96super + {grave,Tab} 76super + {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
100super + {o,i} 79super + {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
106super + {_,shift + }{1-9,0} 84super + {_,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
114super + minus 87super + minus
115 bspc config window_gap 0 88 bspc config window_gap 0
116super + equal 89super + equal
117 bspc config window_gap 8 90 bspc config window_gap 8
118
119# preselect the direction 91# preselect the direction
120super + ctrl + {h,j,k,l} 92super + 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
124super + ctrl + {1-9} 95super + 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
128super + ctrl + space 98super + 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
132super + ctrl + shift + space 101super + 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
140super + alt + {h,j,k,l} 104super + 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
144super + alt + shift + {h,j,k,l} 107super + 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
148super + {Left,Down,Up,Right} 110super + {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
152XF86Audio{RaiseVolume,LowerVolume}
153 pulsemixer --change-volume {+5,-5}
154XF86AudioMute
155 pulsemixer --toggle-mute
156
157#Playerctl
158XF86Audio{Play,Next,Prev}
159 cmus-remote {-u,-n,-r}
160
161#light
162XF86MonBrightnessDown
163 sudo ~/bin/light d
164XF86MonBrightnessUp
165 sudo ~/bin/light u