-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsxhkdrc
188 lines (140 loc) · 3.4 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
178
179
180
181
182
183
184
185
186
187
188
#!/usr/bin/env sh
# edit sxhkdrc
super + shift + k
$HOME/scripts/edit-hotkeys.sh
# open or cycle through firefox
super + w
xdotool search "Mozilla Firefox" windowactivate || firefox
# log food
super + shift + f
food --notification $(zenity --text=food --entry)
# find my phone
super + shift + w
firefox 'https://www.google.com/android/find?u=0'
# open a new terminal window (pane)
super + Return
$HOME/scripts/toggle-term.sh --new-window
# run dmenu
super + space
dmenu_run -fn 'Droid Sans Mono-25'
# open "start" menu
super + shift + space
xfce4-popup-whiskermenu
# close current window
super + q
wmctrl -c :ACTIVE:
# screenshot utility
Print
flameshot gui --clipboard --path ~/Pictures/scrots
# take a full screenshot
shift + Print
flameshot full --clipboard --path ~/Pictures/scrots
# toggle terminal
F1
$HOME/scripts/toggle-term.sh
# toggleable firefox
shift + F1
tdrop $BROWSER
# open a new note
super + n
xdotool search "TriliumNext Notes" windowactivate || trilium
# open file manager
super + e
thunar
# open blog
super + shift + b
fish -c 'blog.fish'
# play a song
super + shift + m
terminator -e "~/scripts/music-history/song.py"
# change url in clipboard into html link
super + shift + l
fish -c 'hrefy.fish'
# launch a a game
super + o
terminator -m -e "game.sh"
# launch a a game (retro)
super + shift + o
cool-retro-term -e game.sh d
super + c
fish -c "coconut.py"
# enable colemak and switch ctrl and alt
super + shift + c
setxkbmap us -variant colemak -option ctrl:swap_lalt_lctl && notify-send 'colemak enabled'
# Disconnect from PS4 controller
super + shift + b
bluetoothctl -- disconnect 1C:66:6D:C4:DD:FA && notify-send -t 1000 "Disconnected from Dualshock 4"
# Put computer to sleep
super + s
python $HOME/scripts/going-to-sleep.py
# open clipboard in mpv
super + y
notify-send "$(xsel -ob)"; mpv $(xsel -ob)
# lock screen
super + l
betterlockscreen --lock
# manage multiple monitors
super + p
lxrandr
# open clipboard history
super + v
xfce4-clipman-history
# modify clipboard in editor
super + shift + v
terminator -e "~/scripts/edit-clipboard.sh"
# grid overlay on screen
super + shift + h
$HOME/scripts/grid_overlay.py
# select a window
super + Tab
$HOME/scripts/window-select.sh
# toggle caps lock
super + u
notify-send 'super+u caps lock toggle' && xdotool key Caps_Lock
# Display keybind menu
super + slash
sxhkhmenu
# press the enter key
super + b
xdotool search "Visual Studio Code" windowactivate
super + shift + t
normcap --tray False
# also toggle terminal
super + shift + 1
$HOME/scripts/toggle-term.sh
# also toggle terminal
super + Escape
$HOME/scripts/toggle-term.sh
# pause music
super + 1
playerctl --player YoutubeMusic play-pause
# volume down
super + 2
amixer -q -D pulse sset Master 3%-
# mute
super + shift + 2
amixer -q -D pulse sset Master toggle
# volume up
super + 3
amixer -q -D pulse sset Master 3%+
# next song
super + shift + 3
playerctl --player YoutubeMusic next
# brightness down
super + 4
brightnessctl s 10%-
# brightness up
super + 5
brightnessctl s +10%
# choose favorite radio
super + shift + r
notify-send 'getting good radios' && fish -c "radio --goodradio"
# run random radio
super + r
fish -c "radio"
# quit vlc
super + shift + s
killall vlc
# OCR grab text
super + t
textsnatcher