-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsxhkdrc
177 lines (130 loc) · 3.43 KB
/
sxhkdrc
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
## Copyright (C) 2020-2022 Aditya Shakya <[email protected]>
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3
##---------- Keybindings for bspwm ----------##
# Terminal (alacritty)
super + Return
bspterm
# Terminal (floating)
super + shift + Return
bspterm -f
# Terminal (fullscreen)
super + t
bspterm -s
##---------- Rofi Launcher & Menus ----------##
# Rofi App Launcher
alt + F1
sh ~/.config/bspwm/rofi/bin/launcher
# Rofi Network Menu
super + n
nmd
# Rofi Themes Menu
ctrl + alt + t
sh ~/.config/bspwm/rofi/bin/themes
# Rofi Menus/Applets
super + {w,m,x,r,s}
sh ~/.config/bspwm/rofi/bin/{windows,mpd,powermenu,asroot,screenshot}
##---------- Applications ----------##
# Launch Apps
super + shift + {f,w,e}
{thunar,firefox,geany}
# Terminal Apps
ctrl + alt + {v,r,h}
alacritty --config-file ~/.config/bspwm/alacritty/alacritty.yml -e {vim,ranger,htop}
# Color Picker
super + p
color-gpick
# Lockscreen
ctrl + alt + l
betterlockscreen --lock
##---------- System Keys ----------##
# Take a screenshot
Print
takeshot --now
# Take screenshot in 5 second
alt + Print
takeshot --in5
# Take screenshot in 10 second
shift + Print
takeshot --in10
# Take screenshot of active window
ctrl + Print
takeshot --win
# Take screenshot of area
ctrl + alt + Print
takeshot --area
# Brighness control
XF86MonBrightness{Up,Down}
brightness{ --inc, --dec}
# Volume control
XF86Audio{RaiseVolume,LowerVolume}
volume{ --inc, --dec}
XF86AudioMute
volume --toggle
# Music control
XF86Audio{Next,Prev,Play,Stop}
playerctl --player=spotify,%any {next,previous,play-pause,pause}
# playerctl --player=vlc,spotify {next,previous,play-pause,pause}
# Audio output device control
super + shift + XF86Audio{RaiseVolume,LowerVolume}
pacmd set-default-sink {0,1}
##---------- Bspwm ----------##
# Close App
super + {_,shift + }c
bspc node -{c,k}
# Reload Keybindings
super + Escape
pkill -USR1 -x sxhkd
# kill window
ctrl + alt + Escape
xkill
# Quit/Restart bspwm
ctrl + shift + {q,r}
bspc {quit,wm -r}
# Split horizontal, vertical or cancel
#super + {h,v,q}
# bspc node -p {east,south,cancel}
# Preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# Fullscreen or Monocle
super + f
# bspc desktop -l next
bspc node -t "~"fullscreen
# Toggle beetwen floating & tiled
super + space
bspc node -t "~"{floating,tiled}
# Pseudo Tiled & tiled mode
super + shift + space
#super + {p,t}
bspc node -t "~"{pseudo_tiled,tiled}
# Set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
# Send the window to another edge of the screen
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# Change focus to next window, including floating window
alt + {_,shift + }Tab
bspc node -f {next.local,prev.local}
# Switch workspace
ctrl + alt + {h,l}
bspc desktop -f {prev.local,next.local}
# Switch to last opened workspace
super + {Tab,grave}
bspc {node,desktop} -f last
# Send focused window to another workspace
super + {_,shift + }{1-9}
bspc {desktop -f,node -d} '^{1-9}'
# Expanding windows
super + control + {h,l,k,j}
bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}
## Shrinking windows
super + alt + {h,l,k,j}
bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}
## Move floating windows
alt + shift + {h,j,k,l}
bspc node -v {-20 0,0 20,0 -20,20 0}
# Hide/Unhide Window
super + shift + i
winmask
##---------- EOF ----------##