diff --git a/README.md b/README.md index a727529..bf2594b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ - Make rofi power menu work by removing password requirement from shutdown, reboot, etc., which is normally done with `visudo` (see [this Stack Overflow thread](https://askubuntu.com/a/168885) and [Nix `sudo` option](https://search.nixos.org/options?channel=22.05&from=0&size=50&sort=relevance&type=packages&query=sudo). - Package safe poweroff bash script required by rofi power menu -- Add volume and mute button controls to i3 - Limit number of stored rollbacks to remove need for manual garbage collection - Theme lightdm - Theme GRUB diff --git a/i3.nix b/i3.nix index 31d60d6..9e65dcb 100644 --- a/i3.nix +++ b/i3.nix @@ -18,6 +18,10 @@ in { keybindings = lib.mkOptionDefault { "${mod}+Return" = "exec kitty"; "Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power"; + "XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%"; + "XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%"; + "XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle"; + "XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle"; }; keycodebindings = { "133" = "--release exec rofi -show run -theme";