mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
824a91d405
commit
e596e1c1b3
582 changed files with 2 additions and 22 deletions
111
modules/home/gui/desktop/hypr/land/config/bind.nix
Executable file
111
modules/home/gui/desktop/hypr/land/config/bind.nix
Executable file
|
@ -0,0 +1,111 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.people) user0 user1;
|
||||
user = config.home.username;
|
||||
|
||||
superBinds = builtins.map (x: "SUPER, " + x) [
|
||||
# Apps
|
||||
"Space, exec, rm -r /home/$USER/.cache/tofi* ; tofi-drun"
|
||||
"C, exec, zeditor"
|
||||
"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"
|
||||
"B, exec, firefox"
|
||||
"V, exec, discordcanary"
|
||||
"W, exec, bitwarden"
|
||||
"H, exec, feishin"
|
||||
"Y, exec, scrcpy"
|
||||
"R, exec, ghostty -e nu -e btm"
|
||||
"N, exec, signal-desktop"
|
||||
"M, exec, element-desktop"
|
||||
"Home, exec, sudo protonvpn c --cc CA"
|
||||
"End, exec, hyprctl dispatch exit"
|
||||
"S, exec, steam"
|
||||
"period, exec, emote"
|
||||
"L, exec, ${
|
||||
if user == user0 then
|
||||
"slack"
|
||||
else if user == user1 then
|
||||
"flatpak run org.vinegarhq.Sober"
|
||||
else
|
||||
""
|
||||
}"
|
||||
# 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"
|
||||
"equal, splitratio, 0.33"
|
||||
"minus, splitratio, -0.33"
|
||||
# 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"
|
||||
];
|
||||
|
||||
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
|
||||
# Super+shift binds
|
||||
"S, exec, flameshot gui"
|
||||
"Print, exec, grim -g \"$(slurp)\""
|
||||
"ScrollDown, workspace, previous"
|
||||
"left , movewindow, l"
|
||||
"down , movewindow, d"
|
||||
"up , movewindow, u"
|
||||
"right , movewindow, r"
|
||||
];
|
||||
superCtrlBinds = builtins.map (x: "SUPER CTRL, " + x) [
|
||||
# Super+shift binds
|
||||
"Space, workspace, previous"
|
||||
"S, layoutmsg, togglesplit"
|
||||
"equal, splitratio, 0.33"
|
||||
"minus, splitratio, -0.33"
|
||||
];
|
||||
|
||||
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
|
||||
"1, movetoworkspacesilent, 1"
|
||||
"2, movetoworkspacesilent, 2"
|
||||
"3, movetoworkspacesilent, 3"
|
||||
"4, movetoworkspacesilent, 4"
|
||||
"5, movetoworkspacesilent, 5"
|
||||
"End, exec, shutdown now"
|
||||
];
|
||||
in
|
||||
superBinds
|
||||
++ superShiftBinds
|
||||
++ superCtrlBinds
|
||||
++ altBinds
|
||||
++ ctrlBinds
|
||||
++ ctrlShiftBinds
|
||||
++ shiftBinds
|
||||
# Docs
|
||||
# https://wiki.hyprland.org/Getting-Started/Master-Tutorial/
|
Loading…
Add table
Add a link
Reference in a new issue