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

109 lines
2.5 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-14 21:43:48 -06:00
# "Space, exec, rm -r /home/$USER/.cache/tofi* ; tofi-drun"
2025-02-04 14:05:09 -06:00
"C, exec, zeditor"
2025-01-08 02:02:38 -06:00
"A, exec, obsidian"
"D, exec, ghostty -e zellij a dotfiles"
"E, exec, ghostty -e nu -e y"
"T, exec, ghostty"
"G, exec, firefox https://cronometer.com/#diary"
2025-01-08 01:05:45 -06:00
"B, exec, firefox"
"V, exec, discordcanary"
2025-01-08 01:05:45 -06:00
"W, exec, bitwarden"
"H, exec, feishin"
2025-01-08 02:02:38 -06:00
"Y, exec, scrcpy"
"R, exec, ghostty -e nu -e btm"
2025-01-08 01:05:45 -06:00
"N, exec, signal-desktop"
"M, exec, element-desktop"
2025-01-12 14:20:20 -06:00
"Home, exec, sudo protonvpn c --cc CA"
2025-01-08 01:05:45 -06:00
"End, exec, hyprctl dispatch exit"
"S, exec, steam"
"period, exec, emote"
2025-01-11 18:53:08 -06:00
"L, exec, ${
2025-01-19 23:40:54 -06:00
if user == user0 then
"slack"
else if user == user1 then
"flatpak run org.vinegarhq.Sober"
else
""
2025-01-11 18:53:08 -06:00
}"
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
"F, togglefloating"
"X, killactive"
"Tab, fullscreen, 0"
"P, pin, enable"
2025-01-11 18:53:08 -06:00
"equal, splitratio, 0.33"
"minus, splitratio, -0.33"
2025-01-08 01:05:45 -06:00
# Window Focus
"left , movefocus, l"
"down , movefocus, d"
"up , movefocus, u"
"right , movefocus, r"
# Audio
"F8, exec, playerctl next"
"F7, exec, playerctl previous"
"F6, 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-01-09 02:09:02 -06:00
"S, exec, flameshot gui"
2025-01-08 01:05:45 -06:00
"Print, exec, grim -g \"$(slurp)\""
"left , movewindow, l"
"down , movewindow, d"
"up , movewindow, u"
"right , movewindow, r"
2025-02-14 21:43:48 -06:00
"Backspace, layoutmsg, togglesplit"
"1, movetoworkspacesilent, 1"
"2, movetoworkspacesilent, 2"
"3, movetoworkspacesilent, 3"
"4, movetoworkspacesilent, 4"
"5, movetoworkspacesilent, 5"
2025-01-08 01:05:45 -06:00
];
superCtrlBinds = builtins.map (x: "SUPER CTRL, " + x) [
# Super+shift binds
];
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/