forked from mahmoudk1000/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sxhkdrc
102 lines (78 loc) · 2.47 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
# launch terminal
super + Return
alacritty
# program launcher
alt + space
rofi -show drun
# open wifi menu
super + i
/home/none/.bin/rofi-wifi-menu.sh
# open powermenu
super + p
/home/none/.bin/rofi-powermenu
# launch software
super + {b,e,t,l,m}
{brave, pcmanfm, telegram-desktop, lollypop, teams}
# close and kill
super + {_,shift + }q
bspc node -{c,k}
# set the window state
super + shift + {w,e}
bspc node --state {tiled,floating}
# toggle fullscreen/non-fullscreen switch
super + shift + f
bspc node -t "~"{fullscreen,tiled}
# focus the node in the given direction
super + {_,shift + }{a,s,w,d}
bspc node -{f,s} {west,south,north,east}
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# move forward/backword desktops
super + shift + {a,s}
bspc desktop -f {prev,next}
# focus or send to the given desktop
super + {_,shift + }{1-4,0}
bspc {desktop -f,node -d} '^{1-4,10}'
# expand/contract a window
super + control + {h,j,k,l}
bspc node -z {left -20 0 || bspc node -z right -20 0, \
bottom 0 20 || bspc node -z top 0 20,\
top 0 -20 || bspc node -z bottom 0 -20,\
right 20 0 || bspc node -z left 20 0}
# expand a window by moving one of its side outward
#super + ctrl + {Left,Down,Up,Right}
# bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
#super + alt + {Left,Down,Up,Right}
# bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + control + {a,s,w,d}
bspc node -v {-20 0,0 20,0 -20,20 0}
# Resize floating windows, requires xdo
super + shift + {h,l,k,j}
xdo resize {-w -20,-w +20,-h -20,-h +20}
# Send the window to another edge of the screen
super + {_,shift + }{a,s,w,d}
bspc node -{f,s} {west,south,north,east}
# full screenshot, selection area, full in 5 seconds
Print + {_,shift}
flameshot {full -p, gui -p} /home/none/Pictures/Screenshots
# increase/decrease volume by 5%
XF86Audio{Raise,Lower}Volume
pactl set-sink-volume 0 {+5%,-5%}
# toggle volume mute
XF86AudioMute
pactl set-sink-mute 0 toggle
# brightness keys
XF86MonBrightness{Up,Down}
xbacklight -{inc,dec} 10
# next, previous, play-pause toggle
XF86Audio{Next,Prev,Play}
playerctl {next,previous,play-pause}
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# reload configurations
super + shift + r
pkill -USR1 -x sxhkd; notify-send 'sxhkd' 'Configs reloaded'