keys
This commit is contained in:
parent
bf94cd8a6c
commit
56b790f594
2 changed files with 76 additions and 68 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./hyprgrass.nix
|
./hyprgrass.nix
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
./keys.nix
|
||||||
# ./utils.nix
|
# ./utils.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -107,74 +108,6 @@
|
||||||
new_status = "master";
|
new_status = "master";
|
||||||
new_on_top = 1;
|
new_on_top = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
"$mainMod, Q, exec, $terminal"
|
|
||||||
"$mainMod, W, exec, $terminal -e yazi"
|
|
||||||
"$mainMod, C, killactive,"
|
|
||||||
"$mainMod, backspace, exec, hyprlock"
|
|
||||||
"$mainMod, R, exec, rofi -show drun"
|
|
||||||
|
|
||||||
"$mainMod, A, togglefloating,"
|
|
||||||
"$mainMod, S, togglesplit,"
|
|
||||||
"$mainMod, D, pseudo,"
|
|
||||||
"$mainMod, F, fullscreen,"
|
|
||||||
|
|
||||||
"$mainMod, P, togglespecialworkspace, keepass"
|
|
||||||
"$mainMod, P, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi"
|
|
||||||
|
|
||||||
", print, exec, hyprshot -m region -o /home/lilith/sync/screenshots -z"
|
|
||||||
"CTRL, print, exec, hyprshot -m output -o /home/lilith/sync/screenshots -z"
|
|
||||||
|
|
||||||
"$mainMod, H, movefocus, l"
|
|
||||||
"$mainMod, L, movefocus, r"
|
|
||||||
"$mainMod, K, movefocus, u"
|
|
||||||
"$mainMod, J, movefocus, d"
|
|
||||||
|
|
||||||
"$mainMod SHIFT, H, resizeactive, exact -5% 0%"
|
|
||||||
"$mainMod SHIFT, L, resizeactive, exact 5% 0%"
|
|
||||||
"$mainMod SHIFT, K, resizeactive, exact 0% 5%"
|
|
||||||
"$mainMod SHIFT, J, resizeactive, exact 0% -5%"
|
|
||||||
|
|
||||||
"$mainMod, 1, workspace, 1"
|
|
||||||
"$mainMod, 2, workspace, 2"
|
|
||||||
"$mainMod, 3, workspace, 3"
|
|
||||||
"$mainMod, 4, workspace, 4"
|
|
||||||
"$mainMod, 5, workspace, 5"
|
|
||||||
"$mainMod, 6, workspace, 6"
|
|
||||||
"$mainMod, 7, workspace, 7"
|
|
||||||
"$mainMod, 8, workspace, 8"
|
|
||||||
"$mainMod, 9, workspace, 9"
|
|
||||||
"$mainMod, 0, workspace, 10"
|
|
||||||
|
|
||||||
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
|
||||||
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
|
||||||
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
|
||||||
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
|
||||||
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
|
||||||
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
"$mainMod, I, togglespecialworkspace, magic"
|
|
||||||
"$mainMod SHIFT, I, movetoworkspace, special:magic"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
|
||||||
"$mainMod, mouse:272, movewindow"
|
|
||||||
"$mainMod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
|
|
||||||
binde = [
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
", XF86PowerOff, exec, systemctl poweroff"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
75
home/lilith/hyprland/keys.nix
Normal file
75
home/lilith/hyprland/keys.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
bind = [
|
||||||
|
"SUPER, Q, exec, $terminal"
|
||||||
|
"SUPER, W, exec, $terminal -e yazi"
|
||||||
|
"SUPER, C, killactive,"
|
||||||
|
"SUPER, backspace, exec, hyprlock"
|
||||||
|
"SUPER, R, exec, rofi -show drun"
|
||||||
|
|
||||||
|
"SUPER, A, togglefloating,"
|
||||||
|
"SUPER, S, togglesplit,"
|
||||||
|
"SUPER, D, pseudo,"
|
||||||
|
"SUPER, F, fullscreen,"
|
||||||
|
|
||||||
|
"SUPER, P, togglespecialworkspace, keepass"
|
||||||
|
"SUPER, P, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi"
|
||||||
|
|
||||||
|
", print, exec, hyprshot -m region -o /home/lilith/sync/screenshots -z"
|
||||||
|
"CTRL, print, exec, hyprshot -m output -o /home/lilith/sync/screenshots -z"
|
||||||
|
|
||||||
|
"SUPER, H, movefocus, l"
|
||||||
|
"SUPER, L, movefocus, r"
|
||||||
|
"SUPER, K, movefocus, u"
|
||||||
|
"SUPER, J, movefocus, d"
|
||||||
|
|
||||||
|
"SUPER ALT, H, moveactive, l"
|
||||||
|
"SUPER ALT, L, moveactive, r"
|
||||||
|
"SUPER ALT, K, moveactive, u"
|
||||||
|
"SUPER ALT, J, moveactive, d"
|
||||||
|
|
||||||
|
"SUPER, 1, workspace, 1"
|
||||||
|
"SUPER, 2, workspace, 2"
|
||||||
|
"SUPER, 3, workspace, 3"
|
||||||
|
"SUPER, 4, workspace, 4"
|
||||||
|
"SUPER, 5, workspace, 5"
|
||||||
|
"SUPER, 6, workspace, 6"
|
||||||
|
"SUPER, 7, workspace, 7"
|
||||||
|
"SUPER, 8, workspace, 8"
|
||||||
|
"SUPER, 9, workspace, 9"
|
||||||
|
"SUPER, 0, workspace, 10"
|
||||||
|
|
||||||
|
"SUPER SHIFT, 1, movetoworkspace, 1"
|
||||||
|
"SUPER SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"SUPER SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"SUPER SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"SUPER SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"SUPER SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"SUPER SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"SUPER SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"SUPER SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"SUPER SHIFT, 0, movetoworkspace, 10"
|
||||||
|
|
||||||
|
"SUPER, I, togglespecialworkspace, magic"
|
||||||
|
"SUPER SHIFT, I, movetoworkspace, special:magic"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindm = [
|
||||||
|
"SUPER, mouse:272, movewindow"
|
||||||
|
"SUPER, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
|
||||||
|
binde = [
|
||||||
|
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
|
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
|
", XF86PowerOff, exec, systemctl poweroff"
|
||||||
|
|
||||||
|
"SUPER SHIFT, H, resizeactive, -10 0"
|
||||||
|
"SUPER SHIFT, L, resizeactive, 10 0"
|
||||||
|
"SUPER SHIFT, K, resizeactive, 0 10"
|
||||||
|
"SUPER SHIFT, J, resizeactive, 0 -10"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue