Add passthrough mode for sway

This commit is contained in:
Erwin Boskma 2022-11-11 20:39:13 +01:00
parent 8c2d997c24
commit 64db91381f
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -190,6 +190,8 @@ in
"${mod}+l" = "exec ${swaylockcmd}";
"${mod}+p" = "mode resize";
"${mod}+Pause" = "mode passthrough";
"${mod}+c" = mkIf config.eboskma.programs.emacs.enable "exec ${config.eboskma.programs.emacs.package}/bin/emacsclient -c";
"${mod}+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name')";
@ -205,6 +207,12 @@ in
"${mod}+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
};
modes = {
passthrough = {
"${mod}+Pause" = "mode default";
};
};
# terminal = "${pkgs.alacritty}/bin/alacritty";
terminal = "${pkgs.foot}/bin/foot";