From e08af2559b0363c81c749635f4d37139aa92a399 Mon Sep 17 00:00:00 2001 From: Antoine Martin <antoine@alarsyo.net> Date: Sun, 16 Feb 2025 18:06:46 +0100 Subject: [PATCH] talos: home: setup sound shortcuts --- hosts/talos/home.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index 834214a..4d7c2b0 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -78,6 +78,9 @@ in { "Mod4+Shift+e" = ''mode "${logoutMode}"''; "Mod4+i" = "exec emacsclient --create-frame"; "Mod4+Control+l" = "exec hyprlock"; + "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; + "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2"; + "XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2"; }; modes = mkOptionDefault {