From 07190e313252aa28c770bafb3746acd413ab022b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 4 Jun 2023 11:39:46 +0100 Subject: [PATCH] Add some more keybinds to sway to be like hyprland --- home/desktop/config/hypr/keybinds.conf | 4 ++-- home/desktop/sway.nix | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/home/desktop/config/hypr/keybinds.conf b/home/desktop/config/hypr/keybinds.conf index 18344516..f9604881 100644 --- a/home/desktop/config/hypr/keybinds.conf +++ b/home/desktop/config/hypr/keybinds.conf @@ -75,8 +75,8 @@ bind = SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, +1 bind = SUPER, N, workspace, empty bind = SUPER SHIFT, N, movetoworkspace, empty -bind = SUPER, C, togglespecialworkspace -bind = SUPER SHIFT, C, movetoworkspace, special +bind = SUPER, -, togglespecialworkspace +bind = SUPER SHIFT, -, movetoworkspace, special bind = SUPER, tab, workspace, previous bind = SUPER SHIFT, tab, movetoworkspace, previous diff --git a/home/desktop/sway.nix b/home/desktop/sway.nix index e5e1e808..8c51db75 100644 --- a/home/desktop/sway.nix +++ b/home/desktop/sway.nix @@ -5,6 +5,7 @@ ... }: let modifier = config.wayland.windowManager.sway.config.modifier; + term = config.wayland.windowManager.sway.config.terminal; in { imports = [ # ./swaylock.nix @@ -36,9 +37,18 @@ in { }; bars = []; keybindings = lib.mkOptionDefault { - "${modifier}+Return" = "exec ${pkgs.foot}/bin/foot"; - "${modifier}+Shift+q" = "kill"; + "${modifier}+Return" = "exec ${term}"; + "${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}+f" = "exec ${pkgs.thunar}/bin/thunar"; + "${modifier}+m" = "fullscreen toggle"; + "${modifier}+-" = "scratchpad show"; + "${modifier}+Shift+-" = "move scratchpad"; }; }; };