dotfiles/modules/home/gui/desktop/hypr/land/config/bind.nix

106 lines
2.4 KiB
Nix
Raw Normal View History

2025-01-11 18:53:08 -06:00
{
flake,
config,
...
2025-01-19 23:40:54 -06:00
}:
let
2025-01-11 18:53:08 -06:00
inherit (flake.config.people) user0 user1;
user = config.home.username;
2025-01-08 01:05:45 -06:00
superBinds = builtins.map (x: "SUPER, " + x) [
# Apps
2025-02-16 00:44:08 -06:00
"Z, exec, obsidian"
"L, exec, slack"
2025-01-08 01:05:45 -06:00
"H, exec, feishin"
2025-02-16 00:44:08 -06:00
"G, exec, scrcpy"
"K, exec, ghostty -e nu -e y"
"S, exec, steam"
"R, exec, obs"
2025-01-08 01:05:45 -06:00
"N, exec, signal-desktop"
2025-02-16 00:44:08 -06:00
"T, exec, zeditor"
"B, exec, firefox"
"X, exec, freetube"
"V, exec, discordcanary"
2025-01-08 01:05:45 -06:00
"M, exec, element-desktop"
2025-02-16 00:44:08 -06:00
"D, exec, ghostty -e zellij a dotfiles"
"P, exec, bitwarden"
2025-01-08 01:05:45 -06:00
# Workspaces
"1, workspace, 1"
"2, workspace, 2"
"3, workspace, 3"
"4, workspace, 4"
"5, workspace, 5"
# Windows
2025-02-16 00:44:08 -06:00
"W, killactive"
"F, splitratio, 0.33"
"O, splitratio, -0.33"
2025-01-08 01:05:45 -06:00
# Window Focus
2025-02-16 00:44:08 -06:00
"C, movefocus, l"
"A, movefocus, u"
"E, movefocus, d"
"I, movefocus, r"
2025-01-08 01:05:45 -06:00
# Audio
2025-02-16 00:44:08 -06:00
"PageUp, exec, playerctl next"
"PageDown, exec, playerctl previous"
"Home, exec, playerctl play-pause"
2025-02-14 21:43:48 -06:00
"Space, workspace, previous"
2025-01-08 01:05:45 -06:00
];
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
# Super+shift binds
2025-02-16 00:44:08 -06:00
# Window Move
"C, movewindow, l"
"A, movewindow, u"
"E, movewindow, d"
"I, movewindow, r"
# Quick Action
"T, exec, ghostty"
2025-01-09 02:09:02 -06:00
"S, exec, flameshot gui"
2025-02-16 00:44:08 -06:00
"period, exec, emote"
"Space, exec, rm -r /home/$USER/.cache/tofi* ; tofi-drun"
"Tab, fullscreen, 0"
2025-02-14 21:43:48 -06:00
"Backspace, layoutmsg, togglesplit"
2025-02-16 00:44:08 -06:00
"P, pin, enable"
"F, togglefloating"
# "Print, exec, grim -g \"$(slurp)\""
# Utility
"End, exec, hyprctl dispatch exit"
"Insert, exec, reboot now"
"Home, exec, swaylock"
];
superCtrlBinds = builtins.map (x: "SUPER CTRL, " + x) [
# Super+shift binds
2025-02-14 21:43:48 -06:00
"1, movetoworkspacesilent, 1"
"2, movetoworkspacesilent, 2"
"3, movetoworkspacesilent, 3"
"4, movetoworkspacesilent, 4"
"5, movetoworkspacesilent, 5"
2025-01-08 01:05:45 -06:00
];
altBinds = builtins.map (x: "ALT, " + x) [
# Alt binds
];
shiftBinds = builtins.map (x: "SHIFT, " + x) [
# Shift binds
];
ctrlBinds = builtins.map (x: "CTRL, " + x) [
# Ctrl binds
];
ctrlShiftBinds = builtins.map (x: "CTRL SHIFT, " + x) [
# Ctrl+shift binds
2025-02-14 21:43:48 -06:00
# "End, exec, shutdown now"
2025-01-08 01:05:45 -06:00
];
in
2025-01-19 23:40:54 -06:00
superBinds
++ superShiftBinds
++ superCtrlBinds
++ altBinds
++ ctrlBinds
++ ctrlShiftBinds
++ shiftBinds
2025-01-08 01:05:45 -06:00
# Docs
# https://wiki.hyprland.org/Getting-Started/Master-Tutorial/