2024-02-29 22:20:26 -05:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
mod = "SUPER";
|
|
|
|
|
modshift = "${mod}SHIFT";
|
|
|
|
|
|
|
|
|
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} (stolen from fufie)
|
|
|
|
|
workspaces = builtins.concatLists (builtins.genList (
|
|
|
|
|
x: let
|
|
|
|
|
ws = let
|
|
|
|
|
c = (x + 1) / 10;
|
|
|
|
|
in
|
|
|
|
|
builtins.toString (x + 1 - (c * 10));
|
|
|
|
|
in [
|
|
|
|
|
"${mod}, ${ws}, workspace, ${toString (x + 1)}"
|
|
|
|
|
"${mod} SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
10);
|
|
|
|
|
in {
|
|
|
|
|
wayland.windowManager.hyprland.settings = {
|
|
|
|
|
bind =
|
|
|
|
|
[
|
2024-03-26 14:30:41 -04:00
|
|
|
''${mod},RETURN,exec,kitty''
|
2024-02-29 22:20:26 -05:00
|
|
|
|
2024-02-29 22:32:09 -05:00
|
|
|
"${mod},D,exec,wofi --show drun"
|
2024-02-29 22:20:26 -05:00
|
|
|
"${mod},Q,killactive"
|
2024-02-29 22:59:47 -05:00
|
|
|
"${mod},M,exit"
|
2024-02-29 22:20:26 -05:00
|
|
|
"${mod},P,pseudo"
|
|
|
|
|
|
2024-03-13 14:38:26 -04:00
|
|
|
"${mod},J,togglesplit,"
|
2024-02-29 22:20:26 -05:00
|
|
|
|
|
|
|
|
"${mod},T,togglegroup," # group focused window
|
|
|
|
|
"${modshift},G,changegroupactive," # switch within the active group
|
|
|
|
|
"${mod},V,togglefloating," # toggle floating for the focused window
|
|
|
|
|
"${mod},F,fullscreen," # fullscreen focused window
|
|
|
|
|
|
|
|
|
|
# workspace controls
|
|
|
|
|
"${modshift},right,movetoworkspace,+1" # move focused window to the next ws
|
|
|
|
|
"${modshift},left,movetoworkspace,-1" # move focused window to the previous ws
|
|
|
|
|
"${mod},mouse_down,workspace,e+1" # move to the next ws
|
|
|
|
|
"${mod},mouse_up,workspace,e-1" # move to the previous ws
|
|
|
|
|
|
2024-04-28 20:50:20 -04:00
|
|
|
"${mod},X,exec, ags --toggle-window \"dashboard\""
|
2024-04-02 23:28:32 -04:00
|
|
|
"${mod},Print,exec, hyprshot -m region --clipboard-only"
|
2024-02-29 22:20:26 -05:00
|
|
|
",Print,exec, grim - | wl-copy"
|
|
|
|
|
"${modshift},O,exec,wl-ocr"
|
|
|
|
|
|
|
|
|
|
"${mod},Period,exec, tofi-emoji"
|
|
|
|
|
|
|
|
|
|
"${modshift},L,exec,swaylock --grace 0" # lock screen
|
|
|
|
|
]
|
|
|
|
|
++ workspaces;
|
|
|
|
|
|
|
|
|
|
bindm = [
|
|
|
|
|
"${mod},mouse:272,movewindow"
|
|
|
|
|
"${mod},mouse:273,resizewindow"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|