home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit b47af7a3bcad046d5d22716681f93abf6ca7368b
parent 19debe39550616d933b1ce59ab66662f4a2716e5
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 10 Nov 2023 12:05:39 +0100

users/vincent: bind weird key to media…

The thinkpad x1 carbon doesn't have XF86Audio*, so I am binding usless
keys from it.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Musers/vincent/desktop/sway.nix | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/users/vincent/desktop/sway.nix b/users/vincent/desktop/sway.nix @@ -219,8 +219,11 @@ in bindsym XF86AudioMute exec ${pkgs.pamixer}/bin/pamixer --toggle-mute && ( ${pkgs.pamixer}/bin/pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || ${pkgs.pamixer}/bin/pamixer --get-volume > $SWAYSOCK.wob bindsym XF86AudioPlay exec "playerctl play-pause" + bindsym XF86Messenger exec "playerctl play-pause" bindsym XF86AudioNext exec "playerctl next" + bindsym XF86Go exec "playerctl next" bindsym XF86AudioPrev exec "playerctl previous" + bindsym Cancel exec "playerctl previous" bindcode ${mod}+49 exec swaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask tmux bindsym --whole-window button8 exec sswaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask tmux