mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
18
modules/home/gui/desktop/hypr/land/config/animations.nix
Executable file
18
modules/home/gui/desktop/hypr/land/config/animations.nix
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
enabled = true;
|
||||
animation = [
|
||||
"border, 1, 2.2, bounce"
|
||||
"fadeIn, 1, 1, bounce"
|
||||
"fadeOut, 1, 4.5, bounce"
|
||||
"fadeSwitch, 1, 2.2, bounce"
|
||||
"windows, 1, 2.2, bounce"
|
||||
"windowsOut, 1, 1.1, bounce"
|
||||
"workspaces, 1, 2.2, bounce, slide"
|
||||
];
|
||||
bezier = [
|
||||
"wind, 0, 1, 0.5, 1"
|
||||
"winIn, 0, 0.5, 0, 1"
|
||||
"winOut, 0, 0.5, 0, 1"
|
||||
"bounce, 0.7, 1.7, 0.5, 1"
|
||||
];
|
||||
}
|
||||
132
modules/home/gui/desktop/hypr/land/config/bind.nix
Executable file
132
modules/home/gui/desktop/hypr/land/config/bind.nix
Executable file
|
|
@ -0,0 +1,132 @@
|
|||
{ flake, osConfig, ... }:
|
||||
|
||||
let
|
||||
inherit (flake.config.machines) devices;
|
||||
|
||||
mars = devices.mars.name;
|
||||
deimos = devices.deimos.name;
|
||||
host = osConfig.networking.hostName;
|
||||
|
||||
deviceLogic =
|
||||
d: m:
|
||||
if host == deimos then
|
||||
"${d}"
|
||||
else if host == mars then
|
||||
"${m}"
|
||||
else
|
||||
"";
|
||||
|
||||
superBinds = builtins.map (x: "SUPER, " + x) [
|
||||
# Apps
|
||||
"Z, exec, obsidian"
|
||||
"H, exec, feishin"
|
||||
"G, exec, scrcpy"
|
||||
"R, exec, thunar"
|
||||
"S, exec, steam"
|
||||
"N, exec, signal-desktop"
|
||||
"T, exec, zeditor"
|
||||
"B, exec, floorp"
|
||||
"X, exec, freetube"
|
||||
"V, exec, vesktop"
|
||||
"M, exec, element-desktop"
|
||||
"D, exec, ghostty"
|
||||
"P, exec, bitwarden"
|
||||
"W, exec, ghostty -e zellij a workflow"
|
||||
"F, exec, ghostty -e zellij a dotfiles"
|
||||
# Workspaces
|
||||
"1, workspace, 1"
|
||||
"2, workspace, 2"
|
||||
"3, workspace, 3"
|
||||
"4, workspace, 4"
|
||||
"5, workspace, 5"
|
||||
"6, workspace, 6"
|
||||
"7, workspace, 7"
|
||||
"8, workspace, 8"
|
||||
"9, workspace, 9"
|
||||
"0, workspace, 10"
|
||||
# Windows
|
||||
"Tab, killactive"
|
||||
"Backspace, layoutmsg, togglesplit"
|
||||
# Window Focus
|
||||
"Left, movefocus, l"
|
||||
"Up, movefocus, u"
|
||||
"Down, movefocus, d"
|
||||
"Right, movefocus, r"
|
||||
"minus, splitratio, -0.33"
|
||||
"equal, splitratio, 0.33"
|
||||
"bracketleft, splitratio, -0.33"
|
||||
"bracketright, splitratio, 0.33"
|
||||
# Audio
|
||||
"Page_Up, exec, playerctl next"
|
||||
"Page_Down, exec, playerctl previous"
|
||||
"Home, exec, playerctl play-pause"
|
||||
"Space, exec, fuzzel"
|
||||
# Utility
|
||||
];
|
||||
|
||||
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
|
||||
# Super+shift binds
|
||||
"S, exec, flameshot gui"
|
||||
"period, exec, emote"
|
||||
"T, fullscreen, 0"
|
||||
# "Print, exec, grim -g \"$(slurp)\""
|
||||
"End, exec, shutdown now"
|
||||
"Insert, exec, systemctl reboot"
|
||||
"Home, exec, swaylock"
|
||||
];
|
||||
superCtrlBinds = builtins.map (x: "SUPER CTRL, " + x) [
|
||||
# Super+shift binds
|
||||
];
|
||||
|
||||
altBinds = builtins.map (x: "CTRL ALT, " + x) [
|
||||
# Alt binds
|
||||
# "Tab, togglefloating"
|
||||
# Window
|
||||
"Left, movewindow, l"
|
||||
"Up, movewindow, u"
|
||||
"Down, movewindow, d"
|
||||
"Right, movewindow, r"
|
||||
];
|
||||
|
||||
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
|
||||
# # Window
|
||||
"Tab, togglefloating"
|
||||
"1, movetoworkspacesilent, 1"
|
||||
"2, movetoworkspacesilent, 2"
|
||||
"3, movetoworkspacesilent, 3"
|
||||
"4, movetoworkspacesilent, 4"
|
||||
"5, movetoworkspacesilent, 5"
|
||||
"6, movetoworkspacesilent, 6"
|
||||
"7, movetoworkspacesilent, 7"
|
||||
"8, movetoworkspacesilent, 8"
|
||||
"9, movetoworkspacesilent, 9"
|
||||
"0, movetoworkspacesilent, 10"
|
||||
];
|
||||
|
||||
functionBinds = builtins.map (x: " , " + x) [
|
||||
"XF86MonBrightnessUp, exec, brightnessctl -d ${deviceLogic "amdgpu_bl1" ""} s +10%"
|
||||
"XF86MonBrightnessDown, exec, brightnessctl -d ${deviceLogic "amdgpu_bl1" ""} s 10%-"
|
||||
"XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
|
||||
"XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
|
||||
"XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
];
|
||||
in
|
||||
superBinds
|
||||
++ superShiftBinds
|
||||
++ superCtrlBinds
|
||||
++ altBinds
|
||||
++ ctrlBinds
|
||||
++ ctrlShiftBinds
|
||||
++ shiftBinds
|
||||
++ functionBinds
|
||||
# Docs
|
||||
# https://wiki.hyprland.org/Getting-Started/Master-Tutorial/
|
||||
4
modules/home/gui/desktop/hypr/land/config/bindl.nix
Executable file
4
modules/home/gui/desktop/hypr/land/config/bindl.nix
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
",switch:on:Lid Switch, exec, hyprlock --immediate"
|
||||
",switch:off:Lid Switch, exec, hyprlock --immediate"
|
||||
]
|
||||
10
modules/home/gui/desktop/hypr/land/config/bindm.nix
Executable file
10
modules/home/gui/desktop/hypr/land/config/bindm.nix
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
superBinds = builtins.map (x: "SUPER, " + x) [
|
||||
"mouse:272, resizewindow"
|
||||
];
|
||||
|
||||
altBinds = builtins.map (x: "ALT, " + x) [
|
||||
"mouse:272, movewindow"
|
||||
];
|
||||
in
|
||||
superBinds ++ altBinds
|
||||
3
modules/home/gui/desktop/hypr/land/config/binds.nix
Executable file
3
modules/home/gui/desktop/hypr/land/config/binds.nix
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"allow_workspace_cycles" = "1";
|
||||
}
|
||||
40
modules/home/gui/desktop/hypr/land/config/decoration.nix
Executable file
40
modules/home/gui/desktop/hypr/land/config/decoration.nix
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) windowManager;
|
||||
in
|
||||
{
|
||||
active_opacity = 0.95;
|
||||
inactive_opacity = 0.90;
|
||||
fullscreen_opacity = 1;
|
||||
rounding = windowManager.rounding;
|
||||
dim_inactive = 1;
|
||||
dim_strength = 0.05;
|
||||
|
||||
shadow = {
|
||||
enabled = true;
|
||||
color = "rgba(00000000)";
|
||||
ignore_window = true;
|
||||
offset = "0 2";
|
||||
range = 20;
|
||||
render_power = 3;
|
||||
scale = 0.97;
|
||||
};
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
|
||||
size = 5;
|
||||
passes = 2;
|
||||
|
||||
brightness = 1;
|
||||
contrast = 1.300000;
|
||||
ignore_opacity = true;
|
||||
noise = 0.011700;
|
||||
|
||||
new_optimizations = true;
|
||||
|
||||
xray = true;
|
||||
popups = true;
|
||||
popups_ignorealpha = 0.2;
|
||||
};
|
||||
}
|
||||
4
modules/home/gui/desktop/hypr/land/config/dwindle.nix
Executable file
4
modules/home/gui/desktop/hypr/land/config/dwindle.nix
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
pseudotile = true;
|
||||
preserve_split = true;
|
||||
}
|
||||
15
modules/home/gui/desktop/hypr/land/config/exec-once.nix
Executable file
15
modules/home/gui/desktop/hypr/land/config/exec-once.nix
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
"espanso"
|
||||
"hypridle"
|
||||
"wl-clipboard"
|
||||
"wpaperd"
|
||||
"gammastep"
|
||||
"dunst"
|
||||
"playerctrld"
|
||||
"waybar"
|
||||
"nm-applet"
|
||||
"blueman-applet"
|
||||
"easyeffects -r"
|
||||
"emote"
|
||||
"flameshot"
|
||||
]
|
||||
29
modules/home/gui/desktop/hypr/land/config/general.nix
Executable file
29
modules/home/gui/desktop/hypr/land/config/general.nix
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
currentTheme
|
||||
palettes
|
||||
windowManager
|
||||
;
|
||||
|
||||
inherit (flake.config.people) user0;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
themeLogic = if user == user0 then currentTheme else currentTheme;
|
||||
|
||||
el = palettes.${themeLogic}.colours;
|
||||
in
|
||||
{
|
||||
gaps_in = windowManager.gaps / 2;
|
||||
gaps_out = windowManager.gaps;
|
||||
border_size = windowManager.borders;
|
||||
"col.active_border" = "rgb(${el.base0E})";
|
||||
"col.inactive_border" = "0xff${el.base02}";
|
||||
|
||||
}
|
||||
6
modules/home/gui/desktop/hypr/land/config/input.nix
Executable file
6
modules/home/gui/desktop/hypr/land/config/input.nix
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
sensitivity = 0.07;
|
||||
accel_profile = "flat";
|
||||
follow_mouse = 1;
|
||||
numlock_by_default = true;
|
||||
}
|
||||
7
modules/home/gui/desktop/hypr/land/config/misc.nix
Executable file
7
modules/home/gui/desktop/hypr/land/config/misc.nix
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
focus_on_activate = 1;
|
||||
force_default_wallpaper = 0;
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
disable_hyprland_qtutils_check = true;
|
||||
}
|
||||
14
modules/home/gui/desktop/hypr/land/config/monitor.nix
Executable file
14
modules/home/gui/desktop/hypr/land/config/monitor.nix
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
{ flake, osConfig, ... }:
|
||||
let
|
||||
inherit (flake.config.machines) devices;
|
||||
|
||||
deimos = devices.deimos.name;
|
||||
host = osConfig.networking.hostName;
|
||||
|
||||
deviceLogic = if host == deimos then "1" else "1";
|
||||
|
||||
monitorSettings = [
|
||||
"eDP-1,highres@highrr,0x0,${deviceLogic}"
|
||||
];
|
||||
in
|
||||
monitorSettings
|
||||
135
modules/home/gui/desktop/hypr/land/config/windowrulev2.nix
Executable file
135
modules/home/gui/desktop/hypr/land/config/windowrulev2.nix
Executable file
|
|
@ -0,0 +1,135 @@
|
|||
let
|
||||
blueman = "(.blueman-manager-wrapped)";
|
||||
calculator = "(org.gnome.Calculator)";
|
||||
pavucontrol = "(org.pulseaudio.pavucontrol)";
|
||||
floorp = "(floorp)";
|
||||
nomacs = "(org.nomacs.ImageLounge)";
|
||||
mpv = "(mpv)";
|
||||
vlc = "(vlc)";
|
||||
emote = "(emote)";
|
||||
flameshot = "(flameshot)";
|
||||
bitwarden = "(.*Bitwarden.*)";
|
||||
save = "(.*Enter name of file to save to….*)";
|
||||
proton = "(.*.protonvpn-app-wrapped.*)";
|
||||
picture = "(.*Picture-in-Picture.*)";
|
||||
discord-popout = "(.*Discord Popout.*)";
|
||||
upload = "(.*File Upload.*)";
|
||||
signal = "(signal)";
|
||||
vesktop = "(vesktop)";
|
||||
code = "(code)";
|
||||
feishin = "(feishin)";
|
||||
steam = "(steam)";
|
||||
kdenlive = "(org.kde.kdenlive)";
|
||||
shotcut = "(shotcut)";
|
||||
scrcpy = "(.scrcpy-wrapped)";
|
||||
battle = "(.*Battle.net.*)";
|
||||
|
||||
maxsizeWindows = [
|
||||
"maxsize 720 400, class:^${blueman}$"
|
||||
"maxsize 360 500, class:^${calculator}$"
|
||||
# "maxsize 720 400, class:^${scrcpy}$"
|
||||
"maxsize 720 400, class:^${mpv}$"
|
||||
"maxsize 720 400, class:^${vlc}$"
|
||||
"maxsize 640 360, class:^${nomacs}$"
|
||||
"maxsize 1000 600, class:^${proton}$"
|
||||
"maxsize 800 450, title:^${bitwarden}$"
|
||||
"maxsize 720 400, title:^${picture}$"
|
||||
"maxsize 720 400, title:^${save}$"
|
||||
"maxsize 720 400, title:^${discord-popout}$"
|
||||
"maxsize 1280 720, title:^${battle}$"
|
||||
"minsize 1280 720, title:^${battle}$"
|
||||
"maxsize 1280 720, title:^${upload}$"
|
||||
"minsize 1280 720, class:^${pavucontrol}$"
|
||||
"minsize 1280 720, title:^${upload}$"
|
||||
];
|
||||
|
||||
floatWindows = builtins.map (x: "float, " + x) [
|
||||
"class:^${blueman}$"
|
||||
"class:^${calculator}$"
|
||||
"class:^${pavucontrol}$"
|
||||
"class:^${emote}$"
|
||||
"class:^${mpv}$"
|
||||
"class:^${vlc}$"
|
||||
"class:^${nomacs}$"
|
||||
"class:^${flameshot}$"
|
||||
# "class:^${scrcpy}$"
|
||||
"class:^${nomacs}$"
|
||||
"class:^${proton}$"
|
||||
"title:^(${picture})$"
|
||||
"title:^(${discord-popout})$"
|
||||
"title:^${bitwarden}$"
|
||||
"title:^${save}$"
|
||||
"title:^${battle}$"
|
||||
"title:^${upload}$"
|
||||
];
|
||||
|
||||
pinWindows = builtins.map (x: "pin, " + x) [
|
||||
"title:^${picture}$"
|
||||
"title:^${discord-popout}$"
|
||||
];
|
||||
|
||||
idleInhibit = builtins.map (x: "idleinhibit, " + x) [
|
||||
"fullscreen, class:^${floorp}$"
|
||||
];
|
||||
|
||||
workspaceInit1 = builtins.map (x: "workspace 1 silent, " + x) [
|
||||
"class:^${signal}$"
|
||||
"class:^${vesktop}$"
|
||||
];
|
||||
|
||||
workspaceInit2 = builtins.map (x: "workspace 2 silent, " + x) [
|
||||
"class:^${code}$"
|
||||
# "class:^${floorp}$"
|
||||
];
|
||||
|
||||
workspaceInit3 = builtins.map (x: "workspace 3 silent, " + x) [
|
||||
"class:^${steam}$"
|
||||
"class:^${shotcut}$"
|
||||
];
|
||||
|
||||
workspaceInit4 = builtins.map (x: "workspace 4 silent, " + x) [
|
||||
"class:^${feishin}$"
|
||||
"class:^${scrcpy}$"
|
||||
];
|
||||
|
||||
centerWindows = builtins.map (x: "center, " + x) [
|
||||
"class:^${blueman}$"
|
||||
"class:^${calculator}$"
|
||||
"class:^${pavucontrol}$"
|
||||
"class:^${emote}$"
|
||||
"class:^${mpv}$"
|
||||
"class:^${vlc}$"
|
||||
"class:^${nomacs}$"
|
||||
"class:^${flameshot}$"
|
||||
# "class:^${scrcpy}$"
|
||||
"title:^(${picture})$"
|
||||
"title:^(${discord-popout})$"
|
||||
"title:^${bitwarden}$"
|
||||
"title:^${save}$"
|
||||
"title:^${battle}$"
|
||||
"title:^${upload}$"
|
||||
];
|
||||
|
||||
opaqueWindows = builtins.map (x: "opaque, " + x) [
|
||||
"class:^${floorp}$"
|
||||
"class:^${kdenlive}$"
|
||||
"class:^(krita)$"
|
||||
"class:^${shotcut}$"
|
||||
"class:^${mpv}$"
|
||||
"class:^(Brave-browser)$"
|
||||
"class:^(Gimp-2.10)$"
|
||||
"class:^(org.kde.okular)$"
|
||||
"class:^${vlc}$"
|
||||
"class:^${scrcpy}$"
|
||||
];
|
||||
in
|
||||
maxsizeWindows
|
||||
++ floatWindows
|
||||
++ pinWindows
|
||||
++ idleInhibit
|
||||
++ workspaceInit1
|
||||
++ workspaceInit2
|
||||
++ workspaceInit3
|
||||
++ workspaceInit4
|
||||
++ centerWindows
|
||||
++ opaqueWindows
|
||||
3
modules/home/gui/desktop/hypr/land/config/xwayland.nix
Executable file
3
modules/home/gui/desktop/hypr/land/config/xwayland.nix
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
force_zero_scaling = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue