add parenting binds
This commit is contained in:
parent
7ec137dd4c
commit
384cb9064d
|
@ -194,6 +194,20 @@ in {
|
||||||
"move workspace output ${direction}";
|
"move workspace output ${direction}";
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
parenting_binds = {
|
||||||
|
"${mod}+equal" = "focus parent";
|
||||||
|
"${mod}+minus" = "focus child";
|
||||||
|
"${mod}+r" = "layout toggle split";
|
||||||
|
"${mod}+t" = "layout toggle split tabbed stacking";
|
||||||
|
"${mod}+b" = "splith";
|
||||||
|
"${mod}+v" = "splitv";
|
||||||
|
"${mod}+a" = "focus parent";
|
||||||
|
|
||||||
|
## TODO:
|
||||||
|
# "${mod}+Shift+minus" = "move scratchpad";
|
||||||
|
# "${mod}+minus" = "scratchpad show";
|
||||||
|
};
|
||||||
|
|
||||||
audio_binds = {
|
audio_binds = {
|
||||||
XF86AudioRaiseVolume =
|
XF86AudioRaiseVolume =
|
||||||
"exec pactl set-sink-volume @DEFAULT_SINK@ +10%";
|
"exec pactl set-sink-volume @DEFAULT_SINK@ +10%";
|
||||||
|
@ -212,30 +226,28 @@ in {
|
||||||
"--locked Ctrl+${mod}+z" = "exec ${_suspend}/bin/_suspend";
|
"--locked Ctrl+${mod}+z" = "exec ${_suspend}/bin/_suspend";
|
||||||
"${mod}+Alt+c" = "exec ${_sway_idle_toggle}/bin/_sway_idle_toggle";
|
"${mod}+Alt+c" = "exec ${_sway_idle_toggle}/bin/_sway_idle_toggle";
|
||||||
};
|
};
|
||||||
in {
|
other_binds = {
|
||||||
|
"${mod}+s" = "exec ${menu}";
|
||||||
"${mod}+Return" = "exec ${terminal}";
|
"${mod}+Return" = "exec ${terminal}";
|
||||||
"${mod}+Ctrl+Return" = "exec thunar";
|
"${mod}+Ctrl+Return" = "exec thunar";
|
||||||
"${mod}+x" = "kill";
|
"${mod}+x" = "kill";
|
||||||
"${mod}+s" = "exec ${menu}";
|
|
||||||
"${mod}+m" = "mode audio";
|
"${mod}+m" = "mode audio";
|
||||||
"${mod}+b" = "splith";
|
|
||||||
"${mod}+v" = "splitv";
|
|
||||||
"${mod}+t" = "layout toggle split tabbed stacking";
|
|
||||||
"${mod}+r" = "layout toggle split";
|
|
||||||
"${mod}+f" = "fullscreen toggle";
|
"${mod}+f" = "fullscreen toggle";
|
||||||
"${mod}+a" = "focus parent";
|
|
||||||
# "${mod}+s" = "layout stacking";
|
|
||||||
"${mod}+w" = "layout tabbed";
|
|
||||||
# "${mod}+e" = "layout toggle split";
|
|
||||||
"${mod}+Shift+space" = "floating toggle";
|
"${mod}+Shift+space" = "floating toggle";
|
||||||
"${mod}+space" = "focus mode_toggle";
|
"${mod}+space" = "focus mode_toggle";
|
||||||
"${mod}+Shift+minus" = "move scratchpad";
|
|
||||||
"${mod}+minus" = "scratchpad show";
|
|
||||||
"${mod}+Shift+c" = "reload";
|
"${mod}+Shift+c" = "reload";
|
||||||
# "${mod}+Shift+e" =
|
# "${mod}+Shift+e" =
|
||||||
# "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
# "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
|
||||||
} // workspace_binds // prev_next_binds // movement_binds // audio_binds
|
};
|
||||||
// system_binds;
|
in mergeAttrsSet [
|
||||||
|
other_binds
|
||||||
|
workspace_binds
|
||||||
|
prev_next_binds
|
||||||
|
movement_binds
|
||||||
|
audio_binds
|
||||||
|
system_binds
|
||||||
|
parenting_binds
|
||||||
|
];
|
||||||
terminal = pkgs.alacritty.executable;
|
terminal = pkgs.alacritty.executable;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue