home

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

commit daf4a10b4827a69cd8e5b42ae7032abdcc05ef93
parent 9f238c89877f2fd879d922b60d90d1ba214864df
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  9 Sep 2022 17:58:10 +0200

users/vincent: bind some mouse button in sway

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

Diffstat:
Musers/vincent/desktop/sway.nix | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/users/vincent/desktop/sway.nix b/users/vincent/desktop/sway.nix @@ -226,10 +226,16 @@ in bindsym XF86AudioPrev 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 swaymsg [app_id="metask"] scratchpad show || exec ${pkgs.kitty}/bin/kitty --title metask --class metask tmux bindcode ${mod}+Shift+49 exec swaymsg '[app_id="emacs" title="^_emacs scratchpad_$"]' scratchpad show || exec ${config.programs.emacs.package}/bin/emacsclient -c -F "((name . \"_emacs scratchpad_\"))" + bindsym --whole-window button9 exec swaymsg '[app_id="emacs" title="^_emacs scratchpad_$"]' scratchpad show || exec ${config.programs.emacs.package}/bin/emacsclient -c -F "((name . \"_emacs scratchpad_\"))" + + # Mouse + bindsym --whole-window button6 workspace next_on_output + bindsym --whole-window button7 workspace prev_on_output bindsym ${mod}+F10 exec ${pkgs.my.scripts}/bin/shot %d - bindsym ${mod}+Shift+F10 exec ${pkgs.my.scripts}/bin/shotf %d + bindsym ${mod}+Shift+F10 exec ${pkgs.my.scripts}/bin/shotf %d ''; }; programs = {