From 5a89b7c4851590d321fe950a9b6c60caf24a9325 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Mon, 26 Aug 2024 11:03:55 -0400 Subject: [PATCH] adjusted volume control --- configs/hypr/hypridle.conf | 4 ++-- configs/hypr/hyprland.d/keybindings.conf | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configs/hypr/hypridle.conf b/configs/hypr/hypridle.conf index 75bee04..7e373b0 100644 --- a/configs/hypr/hypridle.conf +++ b/configs/hypr/hypridle.conf @@ -19,8 +19,8 @@ listener { listener { timeout = 295 - on-timeout = notify-send "hyprctl notify 0 5000 'rgb(ff0000)' 'Locking.." - on-resume = notify-send "hyprctl notify 0 5000 'rgb(ff0000)' 'Stopping lock process.." + on-timeout = hyprctl notify 0 5000 'rgb(ff0000)' 'Locking..' + on-resume = hyprctl notify 0 5000 'rgb(ff0000)' 'Stopping lock process..' } listener { diff --git a/configs/hypr/hyprland.d/keybindings.conf b/configs/hypr/hyprland.d/keybindings.conf index ce04d42..7dbef8f 100644 --- a/configs/hypr/hyprland.d/keybindings.conf +++ b/configs/hypr/hyprland.d/keybindings.conf @@ -53,3 +53,9 @@ bindm = $mainMod, ALT_L, resizewindow # Brigthness bind = ,XF86MonBrightnessDown, exec, brightnessctl s 20%- bind = ,XF86MonBrightnessUp, exec, brightnessctl s +20% + +# Volume +binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@) +binde =, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@) +bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@) +