From c83ef65e1bf2ef3018d7aadb76629006be8a4b1f Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Thu, 5 Feb 2026 22:23:18 +0100 Subject: added volume and brightness key functionality --- modules/home/i3wm/nord-blue/i3.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules') diff --git a/modules/home/i3wm/nord-blue/i3.nix b/modules/home/i3wm/nord-blue/i3.nix index 14810bf..daa3f04 100644 --- a/modules/home/i3wm/nord-blue/i3.nix +++ b/modules/home/i3wm/nord-blue/i3.nix @@ -59,6 +59,22 @@ in "${mod}+Shift+Down" = "focus down"; "${mod}+Shift+Up" = "focus up"; "${mod}+Shift+Right" = "focus right"; + + + # === F-KEYS === # + + # Volume + "XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ +5%"; # Raise volume by 5% + "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_SINK@ -5%"; # Lower volume by 5% + "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; # Toggle volume (audio) on/off + "XF86AudioMicMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; # Toggle mic on/off + + + # Brigtness + "XF86MonBrightnessUp" = "exec brightnessctl set +5%"; # Raise brightness by 5% + "XF86MonBrightnessDown" = "exec brightnessctl set -5%"; # Lower brightness by 5% + # NOTE: Yes, the brightness can go to 0%, thus turning the screen off. + }; }; }; -- cgit v1.2.3