feat: added sway keybinds
This commit is contained in:
parent
88be95bde4
commit
5d5c8e3915
|
@ -10,6 +10,8 @@
|
|||
programs.firefox = {
|
||||
enable = true;
|
||||
profiles.patrick = {
|
||||
# For this to work you need to enable about:config
|
||||
# toolkit.legacyUserProfileCustomizations.stylesheets = true
|
||||
userChrome = ''
|
||||
#TabsToolbar {
|
||||
visibility: collapse;
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
{config, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = [
|
||||
pkgs.wdisplays
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
|
@ -8,15 +15,80 @@
|
|||
"*" = {
|
||||
xkb_layout = "de";
|
||||
xkb_variant = "bone";
|
||||
xkb_numlock = "enabled";
|
||||
repeat_delay = "235";
|
||||
repeat_rate = "60";
|
||||
accel_profile = "flat";
|
||||
pointer_accel = "0.5";
|
||||
};
|
||||
};
|
||||
focus = {
|
||||
followMouse = false;
|
||||
mouseWarping = false;
|
||||
};
|
||||
down = "r";
|
||||
left = "n";
|
||||
right = "s";
|
||||
up = "l";
|
||||
bindkeysToCode = true;
|
||||
window.titlebar = false;
|
||||
keybindings = let
|
||||
cfg = config.wayland.windowManager.sway.config;
|
||||
in {
|
||||
"${cfg.modifier}+t" = "exec ${cfg.terminal}";
|
||||
"${cfg.modifier}+q" = "kill";
|
||||
|
||||
"${cfg.modifier}+${cfg.left}" = "focus left";
|
||||
"${cfg.modifier}+${cfg.down}" = "focus down";
|
||||
"${cfg.modifier}+${cfg.up}" = "focus up";
|
||||
"${cfg.modifier}+${cfg.right}" = "focus right";
|
||||
|
||||
"${cfg.modifier}+Left" = "focus left";
|
||||
"${cfg.modifier}+Down" = "focus down";
|
||||
"${cfg.modifier}+Up" = "focus up";
|
||||
"${cfg.modifier}+Right" = "focus right";
|
||||
|
||||
"${cfg.modifier}+Shift+${cfg.left}" = "move left";
|
||||
"${cfg.modifier}+Shift+${cfg.down}" = "move down";
|
||||
"${cfg.modifier}+Shift+${cfg.up}" = "move up";
|
||||
"${cfg.modifier}+Shift+${cfg.right}" = "move right";
|
||||
|
||||
"${cfg.modifier}+Shift+Left" = "move left";
|
||||
"${cfg.modifier}+Shift+Down" = "move down";
|
||||
"${cfg.modifier}+Shift+Up" = "move up";
|
||||
"${cfg.modifier}+Shift+Right" = "move right";
|
||||
|
||||
"${cfg.modifier}+x" = "splith";
|
||||
"${cfg.modifier}+v" = "splitv";
|
||||
"${cfg.modifier}+Return" = "fullscreen toggle";
|
||||
|
||||
"${cfg.modifier}+j" = "layout stacking";
|
||||
"${cfg.modifier}+d" = "layout tabbed";
|
||||
"${cfg.modifier}+u" = "layout toggle split";
|
||||
|
||||
"${cfg.modifier}+f" = "floating toggle";
|
||||
"${cfg.modifier}+space" = "focus mode_toggle";
|
||||
|
||||
"${cfg.modifier}+1" = "workspace number 1";
|
||||
"${cfg.modifier}+2" = "workspace number 2";
|
||||
"${cfg.modifier}+3" = "workspace number 3";
|
||||
"${cfg.modifier}+4" = "workspace number 4";
|
||||
"${cfg.modifier}+5" = "workspace number 5";
|
||||
"${cfg.modifier}+6" = "workspace number 6";
|
||||
"${cfg.modifier}+7" = "workspace number 7";
|
||||
"${cfg.modifier}+8" = "workspace number 8";
|
||||
"${cfg.modifier}+9" = "workspace number 9";
|
||||
|
||||
"${cfg.modifier}+Shift+1" = "move container to workspace number 1";
|
||||
"${cfg.modifier}+Shift+2" = "move container to workspace number 2";
|
||||
"${cfg.modifier}+Shift+3" = "move container to workspace number 3";
|
||||
"${cfg.modifier}+Shift+4" = "move container to workspace number 4";
|
||||
"${cfg.modifier}+Shift+5" = "move container to workspace number 5";
|
||||
"${cfg.modifier}+Shift+6" = "move container to workspace number 6";
|
||||
"${cfg.modifier}+Shift+7" = "move container to workspace number 7";
|
||||
"${cfg.modifier}+Shift+8" = "move container to workspace number 8";
|
||||
"${cfg.modifier}+Shift+9" = "move container to workspace number 9";
|
||||
};
|
||||
};
|
||||
};
|
||||
# Cursor invisible
|
||||
|
|
Loading…
Reference in a new issue