diff --git a/README.org b/README.org index 5888289..54c2e61 100644 --- a/README.org +++ b/README.org @@ -88,6 +88,8 @@ - [[#fileserver][Fileserver]] - [[#rofi-menu][Rofi Menu]] - [[#syncthing][Syncthing]] +- [[#hotkey-daemon][Hotkey Daemon]] + - [[#swhkd][swhkd]] - [[#user-programs][User Programs]] - [[#mangal][Mangal]] - [[#trackma][Trackma]] @@ -8211,6 +8213,37 @@ SuccessExitStatus=3 4 WantedBy=default.target #+END_SRC +* Hotkey Daemon + +** swhkd + +#+BEGIN_SRC sxhkd :tangle swhkd/.config/swhkd/swhkdrc +# Terminal +super + shift + return + kitty + +# Menu +super + p + rofi -show combi + +# Volume Controls +xf86audioraisevolume + ~/.scripts/pactl.sh --raise + +xf86audiolowervolume + ~/.scripts/pactl.sh --lower + +xf86audiomute + ~/.scripts/pactl.sh --mute + +# Brightness Controls +xf86monbrightnessup + ~/.scripts/brightness.sh --raise + +xf86monbrightnessdown + ~/.scripts/brightness.sh --lower +#+END_SRC + * User Programs ** Mangal @@ -8950,6 +8983,7 @@ stow-create: -S ssh \ -S starship \ -S swaync \ + -S swhkd \ -S syncthing \ -S system76 \ -S tmux \ @@ -9008,6 +9042,7 @@ stow-delete: -D ssh \ -D starship \ -D swaync \ + -D swhkd \ -D syncthing \ -D system76 \ -D tmux \ @@ -9066,6 +9101,7 @@ stow-recreate: -R ssh \ -R starship \ -R swaync \ + -R swhkd \ -R syncthing \ -R system76 \ -R tmux \ @@ -9258,10 +9294,10 @@ main() { help_menu ;; --raise) - xdotool key XF86MonBrightnessUp + brightnessctl -c backlight s 10%+ ;; --lower) - xdotool key XF86MonBrightnessDown + brightnessctl -c backlight s 10%- ;; --rofi) rofi_menu diff --git a/brightness/.scripts/brightness.sh b/brightness/.scripts/brightness.sh index c8299a0..43e5d67 100755 --- a/brightness/.scripts/brightness.sh +++ b/brightness/.scripts/brightness.sh @@ -37,10 +37,10 @@ main() { help_menu ;; --raise) - xdotool key XF86MonBrightnessUp + brightnessctl -c backlight s 10%+ ;; --lower) - xdotool key XF86MonBrightnessDown + brightnessctl -c backlight s 10%- ;; --rofi) rofi_menu diff --git a/dwl/.config/dwl b/dwl/.config/dwl index 3298080..d2e550c 160000 --- a/dwl/.config/dwl +++ b/dwl/.config/dwl @@ -1 +1 @@ -Subproject commit 3298080ded0d03637f4e6961ed76dc74f0c50f6e +Subproject commit d2e550ceb3bccda998107e492fb7cf1dd3ece730 diff --git a/emacs/.config/doom-emacs b/emacs/.config/doom-emacs index cf70985..c8a5e6e 160000 --- a/emacs/.config/doom-emacs +++ b/emacs/.config/doom-emacs @@ -1 +1 @@ -Subproject commit cf7098528d2a21c29d497cd810faa0a77ecaf4cc +Subproject commit c8a5e6ec1ca85a35f94d6c820c2fd8888373c2ae diff --git a/emacs/.config/doom-emacs-config b/emacs/.config/doom-emacs-config index 6b650ea..424aeea 160000 --- a/emacs/.config/doom-emacs-config +++ b/emacs/.config/doom-emacs-config @@ -1 +1 @@ -Subproject commit 6b650eaba20133d5f944ce92476945d4a889f0ce +Subproject commit 424aeea90631f9da86775176d857907bdde42088 diff --git a/gtk/.themes/dracula-gtk b/gtk/.themes/dracula-gtk index 100310f..f2d2ea5 160000 --- a/gtk/.themes/dracula-gtk +++ b/gtk/.themes/dracula-gtk @@ -1 +1 @@ -Subproject commit 100310f92834c2fd819358476511baf35eb24802 +Subproject commit f2d2ea560a83ebdef6734b70dd9683272b47894d diff --git a/justfile b/justfile index da87068..0d1de5f 100644 --- a/justfile +++ b/justfile @@ -61,6 +61,7 @@ stow-create: -S ssh \ -S starship \ -S swaync \ + -S swhkd \ -S syncthing \ -S system76 \ -S tmux \ @@ -119,6 +120,7 @@ stow-delete: -D ssh \ -D starship \ -D swaync \ + -D swhkd \ -D syncthing \ -D system76 \ -D tmux \ @@ -177,6 +179,7 @@ stow-recreate: -R ssh \ -R starship \ -R swaync \ + -R swhkd \ -R syncthing \ -R system76 \ -R tmux \ diff --git a/swhkd/.config/swhkd/swhkdrc b/swhkd/.config/swhkd/swhkdrc new file mode 100644 index 0000000..f4a2a41 --- /dev/null +++ b/swhkd/.config/swhkd/swhkdrc @@ -0,0 +1,24 @@ +# Terminal +super + shift + return + kitty + +# Menu +super + p + rofi -show combi + +# Volume Controls +xf86audioraisevolume + ~/.scripts/pactl.sh --raise + +xf86audiolowervolume + ~/.scripts/pactl.sh --lower + +xf86audiomute + ~/.scripts/pactl.sh --mute + +# Brightness Controls +xf86monbrightnessup + ~/.scripts/brightness.sh --raise + +xf86monbrightnessdown + ~/.scripts/brightness.sh --lower diff --git a/tmux/.tmux/plugins/tmux b/tmux/.tmux/plugins/tmux index c2b1d67..66e0910 160000 --- a/tmux/.tmux/plugins/tmux +++ b/tmux/.tmux/plugins/tmux @@ -1 +1 @@ -Subproject commit c2b1d67cbda5c44ea8ee25d2ab307063e6959d0f +Subproject commit 66e091064fe54f742203ea119ec4bd599de3408f