mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 15:34:35 +00:00
Update keybinds
This commit is contained in:
parent
bb39670cd1
commit
5ac92f8d3d
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
"$MOUSE_LMB" = "mouse:272";
|
"$MOUSE_LMB" = "mouse:272";
|
||||||
"$MOUSE_RMB" = "mouse:273";
|
"$MOUSE_RMB" = "mouse:273";
|
||||||
"$MOUSE_MMB" = "mouse:274";
|
"$MOUSE_MMB" = "mouse:274";
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
#
|
#
|
||||||
# TODO: Requires programs
|
# TODO: Requires programs
|
||||||
"SUPER_SHIFT, L, exec, wlogout -p layer-shell"
|
"SUPER_SHIFT, L, exec, wlogout -p layer-shell"
|
||||||
|
"SUPER_CTRL, L, exec, loginctl lock-session"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Screenshots
|
# Screenshots
|
||||||
|
@ -46,12 +48,9 @@
|
||||||
#
|
#
|
||||||
# Audio/Volume control
|
# Audio/Volume control
|
||||||
#
|
#
|
||||||
"SUPER, Down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
|
|
||||||
"SUPER, Up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||||
|
# (rest in binde section)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Notifications
|
# Notifications
|
||||||
|
@ -158,22 +157,101 @@
|
||||||
"SUPER_SHIFT, mouse_up, focusmonitor, -1"
|
"SUPER_SHIFT, mouse_up, focusmonitor, -1"
|
||||||
"SUPER_SHIFT, bracketright, focusmonitor, +1"
|
"SUPER_SHIFT, bracketright, focusmonitor, +1"
|
||||||
"SUPER_SHIFT, bracketleft, focusmonitor, -1"
|
"SUPER_SHIFT, bracketleft, focusmonitor, -1"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Mouse bindings
|
||||||
|
bindm = [
|
||||||
|
#
|
||||||
|
# Mouse window resizing
|
||||||
|
#
|
||||||
|
"SUPER, $MOUSE_LMB, movewindow"
|
||||||
|
"SUPER, $MOUSE_RMB, resizewindow"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Repeat bindings
|
||||||
|
binde = [
|
||||||
|
#
|
||||||
|
# Audio/Volume control
|
||||||
|
#
|
||||||
|
"SUPER, Down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
|
||||||
|
"SUPER, Up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
|
||||||
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
|
||||||
|
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
|
||||||
|
# (rest in bind section)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Window resizing
|
# Window resizing
|
||||||
#
|
#
|
||||||
# TODO: Submaps + binde
|
"ALT, right, resizeactive, 10 0"
|
||||||
|
"ALT, left, resizeactive, -10 0"
|
||||||
|
"ALT, up, resizeactive, 0 -10"
|
||||||
|
"ALT, down, resizeactive, 0 10 "
|
||||||
|
"ALT, H, resizeactive, -10 0"
|
||||||
|
"ALT, K, resizeactive, 0 -10"
|
||||||
|
"ALT, J, resizeactive, 0 10"
|
||||||
|
"ALT, L, resizeactive, 10 0"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Used for submaps, which don't support `settings`
|
||||||
|
extraConfig = ''
|
||||||
#
|
#
|
||||||
# Isolation group
|
# Isolation group
|
||||||
#
|
#
|
||||||
# TODO: Submaps
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
# Useful to prevent keybind capturing (for games, etc)
|
||||||
# Mouse window resizing
|
# SUPER + Fn + F12 (Favorites)
|
||||||
"SUPER, $MOUSE_LMB, movewindow"
|
bind = SUPER, XF86Favorites, exec, hyprctl dispatch submap isolate && notify-send "Keybind isolation" "Keybind isolation on"
|
||||||
"SUPER, $MOUSE_RMB, resizewindow"
|
submap = isolate
|
||||||
];
|
bind = SUPER, XF86Favorites, exec, hyprctl dispatch submap reset && notify-send "Keybind isolation" "Keybind isolation off"
|
||||||
|
submap = reset
|
||||||
|
|
||||||
|
#
|
||||||
|
# Precise keyboard window resizing
|
||||||
|
#
|
||||||
|
|
||||||
|
bind = SUPER, slash, submap, resize
|
||||||
|
submap = resize
|
||||||
|
|
||||||
|
binde = , right, resizeactive, 10 0
|
||||||
|
binde = , left, resizeactive, -10 0
|
||||||
|
binde = , up, resizeactive, 0 -10
|
||||||
|
binde = , down, resizeactive, 0 10
|
||||||
|
|
||||||
|
binde = SUPER, right, resizeactive, 30 0
|
||||||
|
binde = SUPER, left, resizeactive, -30 0
|
||||||
|
binde = SUPER, up, resizeactive, 0 -30
|
||||||
|
binde = SUPER, down, resizeactive, 0 30
|
||||||
|
|
||||||
|
binde = SHIFT, right, resizeactive, 1 0
|
||||||
|
binde = SHIFT, left, resizeactive, -1 0
|
||||||
|
binde = SHIFT, up, resizeactive, 0 -1
|
||||||
|
binde = SHIFT, down, resizeactive, 0 1
|
||||||
|
|
||||||
|
binde = , H, resizeactive, -10 0
|
||||||
|
binde = , K, resizeactive, 0 -10
|
||||||
|
binde = , J, resizeactive, 0 10
|
||||||
|
binde = , L, resizeactive, 10 0
|
||||||
|
|
||||||
|
binde = , right, resizeactive, 10 0
|
||||||
|
binde = , left, resizeactive, -10 0
|
||||||
|
binde = , up, resizeactive, 0 -10
|
||||||
|
binde = , down, resizeactive, 0 10
|
||||||
|
|
||||||
|
binde = SUPER, H, resizeactive, -30 0
|
||||||
|
binde = SUPER, K, resizeactive, 0 -30
|
||||||
|
binde = SUPER, J, resizeactive, 0 30
|
||||||
|
binde = SUPER, L, resizeactive, 30 0
|
||||||
|
|
||||||
|
binde = SHIFT, H, resizeactive, -1 0
|
||||||
|
binde = SHIFT, K, resizeactive, 0 -1
|
||||||
|
binde = SHIFT, J, resizeactive, 0 1
|
||||||
|
binde = SHIFT, L, resizeactive, 1 0
|
||||||
|
|
||||||
|
bind = , escape, submap, reset
|
||||||
|
bind = , return, submap, reset
|
||||||
|
bind = SUPER, slash, submap, reset
|
||||||
|
submap = reset
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue