Skip to content

Commit 1e404d8

Browse files
committed
shortcuts
1 parent d381b0e commit 1e404d8

File tree

1 file changed

+167
-0
lines changed

1 file changed

+167
-0
lines changed

dot/sxhkdrc

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# /$$ /$$ /$$
2+
# | $$ | $$ | $$
3+
# /$$$$$$$ /$$ /$$| $$$$$$$ | $$ /$$ /$$$$$$$
4+
# /$$_____/| $$ /$$/| $$__ $$| $$ /$$/ /$$__ $$
5+
#| $$$$$$ \ $$$$/ | $$ \ $$| $$$$$$/ | $$ | $$
6+
# \____ $$ >$$ $$ | $$ | $$| $$_ $$ | $$ | $$
7+
# /$$$$$$$/ /$$/\ $$| $$ | $$| $$ \ $$| $$$$$$$
8+
#|_______/ |__/ \__/|__/ |__/|__/ \__/ \_______/
9+
10+
# Replacing the default keyboard daemon in Plasma
11+
# Every command you don't know is most likely a script of mine
12+
# One could replace qdbus with a var exported before running sxhkd
13+
14+
# Open stuff layer
15+
super + o ; {v, r, c, f, k, t, y, b, m, w, v}
16+
{terminator -e "vim",\
17+
~/bin/Rcalc,\
18+
terminator -e "calcurse",\
19+
terminator -e "~/.config/vifm/scripts/vifmrun",\
20+
ksysguard,\
21+
~/bin/turl,\
22+
~/bin/ytmail,\
23+
dolphin ~/bin,\
24+
dolphin /media/raitaro/HDD/Muzica/Anime/OST/,\
25+
dolphin /home/raitaro/Pictures/Wallpapers/,\
26+
dolphin ~/Videos}
27+
28+
29+
# Terminal emulator
30+
super + Return
31+
terminator
32+
ctrl + alt + t
33+
terminator
34+
# ksysguard duplicate
35+
ctrl + alt + Escape
36+
ksysguard
37+
38+
39+
# Reload stuff
40+
super + shift + Escape
41+
killall plasmashell && kstart5 plasmashell > /dev/null 2>&1 &
42+
super + Escape
43+
pkill -USR1 -x sxhkd && notify-send "[sxhkd] reloaded"
44+
45+
46+
# Music
47+
ctrl + alt + {a,s,d,f,q}
48+
{audacious --qt -t,\
49+
qMusic PlayPause,\
50+
qMusic Next,\
51+
qMusic Previous,\
52+
killall audacious}
53+
54+
55+
# Conky
56+
ctrl + alt + {c,shift+c}
57+
{conkySwitch, killall conky}
58+
59+
60+
# Wallpapers
61+
ctrl + alt + w ; {w,d,f,e}
62+
{WallpaperSwicher --most-used,\
63+
WallpaperSwicher -n,\
64+
WallpaperSwicher -p,\
65+
WallpaperSwicher -e}
66+
67+
68+
# Screenshots
69+
super + ctrl + s ; {s,r,f,a}
70+
{maim -su | xclip -selection clipboard -t image/png,\
71+
spectacle -r,\
72+
spectacle -f,\
73+
spectacle -a}
74+
75+
76+
# Rofi stuff
77+
super + @space ; {space,r,m,shift+m,w,shift+w,o,e,shift+e,c,l,k,p,i}
78+
{qdbus org.kde.kglobalaccel /component/krunner org.kde.kglobalaccel.Component.invokeShortcut 'run command',\
79+
rofi -show run theme blue,\
80+
dMusic -d,\
81+
dMusic -f,\
82+
WallpaperSwicher --dmenu,\
83+
WallpaperSwicher --dmenu c,\
84+
dOpen,\
85+
dMoji -p,\
86+
dMoji -e,\
87+
dCheat,\
88+
dLinks,\
89+
dKill,\
90+
keepmenu,\
91+
dInk}
92+
93+
94+
# Kwin shortcuts{{{
95+
96+
# Closing windows
97+
alt + x
98+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Close'
99+
super + x
100+
xkill
101+
102+
# Zoom
103+
alt + {z, c}
104+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'view_zoom_in',\
105+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'view_zoom_out'}
106+
# Duplicate of zoom. Used with easystroke
107+
super + {equal, minus}
108+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'view_zoom_in',\
109+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'view_zoom_out'}
110+
111+
# Virtual desktops
112+
alt + {s, w, shift+s, shift+w}
113+
{qdbus org.kde.KWin /KWin org.kde.KWin.nextDesktop,\
114+
qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop,\
115+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window to Next Desktop',\
116+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window to Previous Desktop'}
117+
118+
# Tiling
119+
super + {s, z, c}
120+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Bottom',\
121+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Bottom Left',\
122+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Bottom Right'}
123+
super + {w, q, e}
124+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Top',\
125+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Top Left',\
126+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Top Right'}
127+
super + {a, d}
128+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Left',\
129+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Quick Tile Right'}
130+
131+
# Window position
132+
super + shift + {w, h, v}
133+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Maximize',\
134+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Maximize Horizontal',\
135+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Maximize Vertical'}
136+
super + shift + {s, d}
137+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Minimize',\
138+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'MinimizeAll'}
139+
super + shift + {a, b}
140+
{qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Above Other Windows',\
141+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'Window Below Other Windows'}
142+
143+
# Kwin scripts
144+
# For some reason TIL3R in the above format gives an error in bash.
145+
super + f ; a
146+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: left third, full height'
147+
super + f ; shift + a
148+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: left two thirds, full height'
149+
super + f ; z
150+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: left third, lower half'
151+
super + f ; q
152+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: left third, upper half'
153+
super + f ; s
154+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: middle third, full height'
155+
super + f ; x
156+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: middle third, lower half'
157+
super + f ; w
158+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: middle third, upper half'
159+
super + f ; d
160+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL0R: right third, full height'
161+
super + f ; shift + d
162+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: right two thirds, full height'
163+
super + f ; c
164+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: right third, lower half'
165+
super + f ; e
166+
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut 'TIL3R: right third, upper half'
167+
# }}}

0 commit comments

Comments
 (0)