diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-08-23 15:01:11 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-08-23 15:01:11 -0500 |
| commit | e0b4c3aef89da7b77e83f84da0a06964e09dacb1 (patch) | |
| tree | dca431ed1da5eed3a089156ae9bbbf58d5db6303 /modules/desktop/system/environments/sway.nix | |
| parent | f150373f8e505d03461e69d92e6a0e08336f115c (diff) | |
brightness buttons
Diffstat (limited to 'modules/desktop/system/environments/sway.nix')
| -rw-r--r-- | modules/desktop/system/environments/sway.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/desktop/system/environments/sway.nix b/modules/desktop/system/environments/sway.nix index 604ec87..70ed857 100644 --- a/modules/desktop/system/environments/sway.nix +++ b/modules/desktop/system/environments/sway.nix @@ -73,6 +73,9 @@ bindsym XF86AudioRaiseVolume exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; dunstify -t 300 -h string:x-canonical-private-synchronous:audio "Volume: " -h int:value:"$(dec=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume:\ //'); echo "$dec * 100" | bc)"' bindsym XF86AudioLowerVolume exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; dunstify -t 300 -h string:x-canonical-private-synchronous:audio "Volume: " -h int:value:"$(dec=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume:\ //'); echo "$dec * 100" | bc)"' + bindsym XF86MonBrightnessUp exec 'brightnessctl set +5%; dunstify -t 300 -h string:x-canonical-private-synchronous:brightness "Brightness: " -h int:value:"$(echo "brightnessctl get * 100 / $(brightnessctl max)" | bc)"' + bindsym XF86MonBrightnessDown exec 'brightnessctl set 5%-; dunstify -t 300 -h string:x-canonical-private-synchronous:brightness "Brightness: " -h int:value:"$(echo "brightnessctl get * 100 / $(brightnessctl max)" | bc)"' + default_border pixel 2 smart_borders on smart_gaps on @@ -85,7 +88,7 @@ in ".config/sway/catppuccin-mocha".text = colors; }; - packages = [pkgs.sway pkgs.bc]; + packages = [pkgs.sway pkgs.bc pkgs.brightnessctl]; }; # Greetd |
