sway: Add extraKeybinds option
This commit is contained in:
parent
3c12099de6
commit
7e86becbb2
2 changed files with 13 additions and 2 deletions
|
@ -63,6 +63,12 @@ in
|
||||||
});
|
});
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraKeybindings = mkOption {
|
||||||
|
description = "Extra keybindings";
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -236,7 +242,8 @@ in
|
||||||
|
|
||||||
"${mod}+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
"${mod}+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
||||||
"${mod}+Shift+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait";
|
"${mod}+Shift+d" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait";
|
||||||
};
|
|
||||||
|
} // cfg.extraKeybindings;
|
||||||
|
|
||||||
modes = {
|
modes = {
|
||||||
passthrough = {
|
passthrough = {
|
||||||
|
|
|
@ -172,9 +172,13 @@ in
|
||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "${ewwDaemon} --restart open bar-work"; always = true; }
|
{ command = "${ewwDaemon} --restart open bar-work"; always = true; }
|
||||||
{ command = "${pkgs.wayvnc}/bin/wayvnc -g 0.0.0.0"; always = true; }
|
{ command = "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0"; always = true; }
|
||||||
];
|
];
|
||||||
workspaceOutputs = workspacePartition;
|
workspaceOutputs = workspacePartition;
|
||||||
|
extraKeybindings = {
|
||||||
|
"Ctrl+Alt+1" = "exec ${pkgs.wayvnc}/bin/wayvncctl output-set DP-1";
|
||||||
|
"Ctrl+Alt+2" = "exec ${pkgs.wayvnc}/bin/wayvncctl output-set DP-3";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
swaynotificationcenter.enable = true;
|
swaynotificationcenter.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue