summaryrefslogtreecommitdiff
path: root/dotfiles/system/.config/sxhkd/sxhkdrc
blob: cae99fa3cad3b2ebba22e87f7f53397f6001dd6e (plain)
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
# SXHDRC
# This is the sxhkdrc for the Simple X Hotkey Daemon.
# https://github.com/baskerville/sxhkd


super + space
      rofi -show drun -show-icons -dpi 1 -theme ~/code/rofi-themes-collection/themes/rounded-gray-dark.rasi


#
# Browsers
#

super + w
      $BROWSER
super + shift + w
      $ALTBROWSER
ctrl + alt + w
	  tor-browser

#
# Applications
#

# Emacs
super + e
	  emacsclient -c -a "" || emacs

# File Manager
super + shift + f
     thunar

# Virtualbox
super + v
      virtualbox


# Library
super + shift + l
      calibre

# Radio
super + shift + r
      shortwave

#
# Music 
#
super + slash
      st -e ncmpcpp
ctrl + alt + slash
	 easytag ~/music


#
# Accessories
#


# Colorpicker
super + c
 	  xcolor | xsel -b

# Screenshots
super + s
      file="$(date +%Y.%m.%d-%M%S).png" && maim ~/pictures/screenshots/$file && \
      notify-send "screenshot" "Image saved to ~/Pictures/screenshots/$file"

#
# System 
# 

# Audio Keys
XF86AudioMute
    amixer -q -D pulse sset Master toggle  && 
XF86Audio{Raise,Lower}Volume
    pactl -- set-sink-volume 0 {+,-}10% && 

# Brightness Keys
XF86MonBrightnessUp
    brightnessctl s +10% && notify-send "Brightness" "Brightness increased"
XF86MonBrightnessDown
    brightnessctl s 10%- && notify-send "Brightness" "Brightness decreased"

# Microphone Toggle
control + alt + space
      amixer set Capture toggle && amixer get Capture | grep '\[off\]' && notify-send "Microphone" "Microphone muted" || notify-send "Microphone" "Microphone on"

# Bluetooth
super + shift + b
      blueman-manager

# Lock Screen
super + Escape
      slock & 

#
# Keybinding 
#

super + k
      emacsclient -r -a "" ~/.config/sxhkd/sxhkdrc && notify-send "Keyboard Shortcuts" "Editing shortcuts"
super + shift + k
      sudo killall sxhkd && sxhkd && notify-send "Keyboard Shortcuts" "Keyboard shortcuts reloaded"