summaryrefslogtreecommitdiff
path: root/dotfiles/system/.config/sxhkd/sxhkdrc
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system/.config/sxhkd/sxhkdrc')
-rw-r--r--dotfiles/system/.config/sxhkd/sxhkdrc69
1 files changed, 69 insertions, 0 deletions
diff --git a/dotfiles/system/.config/sxhkd/sxhkdrc b/dotfiles/system/.config/sxhkd/sxhkdrc
new file mode 100644
index 0000000..48e54d2
--- /dev/null
+++ b/dotfiles/system/.config/sxhkd/sxhkdrc
@@ -0,0 +1,69 @@
+# SXHDRC
+# This is the sxhkdrc for the Simple X Hotkey Daemon.
+# https://github.com/baskerville/sxhkd
+
+
+# Emacs client or emacs if client fails
+super + e
+ emacsclient -c -a "" || emacs
+
+# Web Browser
+super + w
+ $BROWSER
+
+super + shift + w
+ google-chrome-stable
+
+# Virtualbox
+super + v
+ virtualbox
+
+# Colorpicker
+super + c
+ colorpicker --short --one-shot --preview | 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"
+
+super + shift + s
+ maimpick
+
+# Ebook Library
+super + shift + l
+ calibre
+
+# Shortwave (Radio)
+super + shift + r
+ shortwave
+
+# Shortcut Editing/Reloading
+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"
+
+# Audio
+XF86AudioMute
+ amixer -q -D pulse sset Master toggle && dwmstatus
+XF86Audio{Raise,Lower}Volume
+ pactl -- set-sink-volume 0 {+,-}10% && dwmstatus
+
+# Brightness
+XF86MonBrightnessUp
+ brightnessctl s +10% && notify-send "Brightness" "Brightness increased"
+XF86MonBrightnessDown
+ brightnessctl s 10%- && notify-send "Brightness" "Brightness decreased"
+
+# Microphone Toggle
+super + alt + control + space
+ amixer set Capture toggle && dwmstatus && amixer get Capture | grep '\[off\]' && notify-send "Microphone" "Microphone muted" || notify-send "Microphone" "Microphone on"
+
+# Bluetooth
+super + shift + b
+ blueman-manager
+
+# Lock Screen
+# super + l
+# xscreensaver-command -lock