From ccd91af1bd9f31b4a36d5225d6e536d3d4def252 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 26 Nov 2023 16:47:06 -0600 Subject: [PATCH] Mute for remote --- modules/home-manager/hyprland.nix | 39 ++++++++++++++++--------------- modules/home-manager/sway.nix | 1 + 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index cded0c7..97eb28c 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -36,25 +36,25 @@ # "wezterm" (lib.concatStringsSep " " [ "swayidle -w" - "timeout 300 'notify-send \"Idling in 300 seconds\"'" - "resume 'notify-send \"Idling cancelled.\"'" - "timeout 480 'notify-send -u critical \"Idling in 120 seconds\"'" - "timeout 510 'notify-send -u critical \"Idling in 90 seconds\"'" - "timeout 540 'notify-send -u critical \"Idling in 60 seconds!\"'" - "timeout 570 'notify-send -u critical \"Idling in 30 seconds!\"'" - "timeout 590 'notify-send -u critical \"Idling in 10 seconds!\"'" - "timeout 591 'notify-send -u critical \"Idling in 9 seconds!\"'" - "timeout 592 'notify-send -u critical \"Idling in 8 seconds!\"'" - "timeout 593 'notify-send -u critical \"Idling in 7 seconds!\"'" - "timeout 594 'notify-send -u critical \"Idling in 6 seconds!\"'" - "timeout 595 'notify-send -u critical \"Idling in 5 seconds!\"'" - "timeout 596 'notify-send -u critical \"Idling in 4 seconds!\"'" - "timeout 597 'notify-send -u critical \"Idling in 3 seconds!\"'" - "timeout 598 'notify-send -u critical \"Idling in 2 seconds!\"'" - "timeout 599 'notify-send -u critical \"Idling in 1 second!\"'" - "timeout 600 'swaylock --daemonize'" - "timeout 600 'hyprctl dispatch dpms off'" - "resume 'hyprctl dispatch dpms on'" + "timeout 300 'notify-send \"Idling in 300 seconds\"'" + "resume 'notify-send \"Idling cancelled.\"'" + "timeout 480 'notify-send -u critical \"Idling in 120 seconds\"'" + "timeout 510 'notify-send -u critical \"Idling in 90 seconds\"'" + "timeout 540 'notify-send -u critical \"Idling in 60 seconds!\"'" + "timeout 570 'notify-send -u critical \"Idling in 30 seconds!\"'" + "timeout 590 'notify-send -u critical \"Idling in 10 seconds!\"'" + "timeout 591 'notify-send -u critical \"Idling in 9 seconds!\"'" + "timeout 592 'notify-send -u critical \"Idling in 8 seconds!\"'" + "timeout 593 'notify-send -u critical \"Idling in 7 seconds!\"'" + "timeout 594 'notify-send -u critical \"Idling in 6 seconds!\"'" + "timeout 595 'notify-send -u critical \"Idling in 5 seconds!\"'" + "timeout 596 'notify-send -u critical \"Idling in 4 seconds!\"'" + "timeout 597 'notify-send -u critical \"Idling in 3 seconds!\"'" + "timeout 598 'notify-send -u critical \"Idling in 2 seconds!\"'" + "timeout 599 'notify-send -u critical \"Idling in 1 second!\"'" + "timeout 600 'swaylock --daemonize'" + "timeout 600 'hyprctl dispatch dpms off'" + "resume 'hyprctl dispatch dpms on'" # "resume 'maybe-good-morning'" "before-sleep 'swaylock --daemonize'" ]) @@ -157,6 +157,7 @@ "$mainMod SHIFT, K, swapwindow, u" "$mainMod SHIFT, J, swapwindow, d" "$mainMod SHIFT, V, exec, pamixer --default-source --toggle-mute" + "$mainMod, F1, exec, pamixer --default-source --toggle-mute" ", XF86AudioMicMute, exec, pamixer --default-source --toggle-mute" ", XF86AudioMute, exec, pamixer --toggle-mute" ", XF86AudioRaiseVolume, exec, pamixer --increase 5" diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index adfc3d7..89d82d4 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -289,6 +289,7 @@ "control+XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%"; "control+XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%"; "XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle"; + "${mod}+F1" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle"; "XF86MonBrightnessDown" = "exec brightnessctl set 10%-"; "XF86MonBrightnessUp" = "exec brightnessctl set +10%";