Add some more keybinds to sway to be like hyprland

This commit is contained in:
Evie Litherland-Smith 2023-06-04 11:39:46 +01:00
parent fadae629da
commit 07190e3132
2 changed files with 14 additions and 4 deletions

View file

@ -75,8 +75,8 @@ bind = SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, +1
bind = SUPER, N, workspace, empty bind = SUPER, N, workspace, empty
bind = SUPER SHIFT, N, movetoworkspace, empty bind = SUPER SHIFT, N, movetoworkspace, empty
bind = SUPER, C, togglespecialworkspace bind = SUPER, -, togglespecialworkspace
bind = SUPER SHIFT, C, movetoworkspace, special bind = SUPER SHIFT, -, movetoworkspace, special
bind = SUPER, tab, workspace, previous bind = SUPER, tab, workspace, previous
bind = SUPER SHIFT, tab, movetoworkspace, previous bind = SUPER SHIFT, tab, movetoworkspace, previous

View file

@ -5,6 +5,7 @@
... ...
}: let }: let
modifier = config.wayland.windowManager.sway.config.modifier; modifier = config.wayland.windowManager.sway.config.modifier;
term = config.wayland.windowManager.sway.config.terminal;
in { in {
imports = [ imports = [
# ./swaylock.nix # ./swaylock.nix
@ -36,9 +37,18 @@ in {
}; };
bars = []; bars = [];
keybindings = lib.mkOptionDefault { keybindings = lib.mkOptionDefault {
"${modifier}+Return" = "exec ${pkgs.foot}/bin/foot"; "${modifier}+Return" = "exec ${term}";
"${modifier}+Shift+q" = "kill"; "${modifier}+q" = "kill";
"${modifier}+e" = "exec power-profiles";
"${modifier}+e" = "exec powermenu";
"${modifier}+v" = "floating toggle";
"${modifier}+space" = "exec ${pkgs.rofi}/bin/rofi -show drun";
# "${modifier}+F1" = "exec ${pkgs.swaylock}/bin/swaylock";
"${modifier}+w" = "exec ${pkgs.firefox}/bin/firefox"; "${modifier}+w" = "exec ${pkgs.firefox}/bin/firefox";
"${modifier}+f" = "exec ${pkgs.thunar}/bin/thunar";
"${modifier}+m" = "fullscreen toggle";
"${modifier}+-" = "scratchpad show";
"${modifier}+Shift+-" = "move scratchpad";
}; };
}; };
}; };