diff options
author | sefidel <contact@sefidel.net> | 2023-09-16 11:45:57 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-09-16 11:45:57 +0900 |
commit | c7a6272a94873522289af6f7164c0773a1aa8838 (patch) | |
tree | 859139ca0d6390dc593e7e1d3de2bb89d7eb23ca /home/profiles/gui/config | |
parent | 3a6532797122d4acca1c0bbe420a9f5ee90af813 (diff) | |
download | nixrc-c7a6272a94873522289af6f7164c0773a1aa8838.tar.gz nixrc-c7a6272a94873522289af6f7164c0773a1aa8838.zip |
feat(home/gui): fix multimedia keys
Diffstat (limited to 'home/profiles/gui/config')
-rw-r--r-- | home/profiles/gui/config/sway.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/home/profiles/gui/config/sway.nix b/home/profiles/gui/config/sway.nix index dddf9d9..08ffa4f 100644 --- a/home/profiles/gui/config/sway.nix +++ b/home/profiles/gui/config/sway.nix @@ -141,18 +141,22 @@ in # bindsym $mod+Shift+a # Volume control - bindsym XF86AudioRaiseVolume exec ~/.local/bin/volume up - bindsym XF86AudioLowerVolume exec ~/.local/bin/volume down - bindsym XF86AudioMute exec ~/.local/bin/volume toggle + bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ + bindsym XF86AudioLowerVolume exec amixer set Master 5%- + bindsym XF86AudioMute exec amixer set Master toggle + bindsym XF86AudioMicMute exec amixer set Capture toggle # HHKB - bindsym $mod+equal exec ~/.local/bin/volume up - bindsym $mod+minus exec ~/.local/bin/volume down - bindsym $mod+backslash exec ~/.local/bin/volume toggle + bindsym $mod+equal exec amixer set Master 5%+ + bindsym $mod+minus exec amixer set Master 5%- + bindsym $mod+backslash exec amixer set Master toggle # Brightness bindsym XF86MonBrightnessDown exec brightnessctl -q set 10%- bindsym XF86MonBrightnessUp exec brightnessctl -q set 10%+ + # Aeroplane mode + bindsym XF86WLAN exec ${pkgs.writeShellScript "aeroplane-mode" (import ../scripts/aeroplane-mode.nix)} + # Screenshot bindsym $mod+Print exec grimshot copy area bindsym Print exec grimshot copy active |