This commit is contained in:
Lilith 2025-02-27 02:26:55 +01:00
parent a71a3b5593
commit cb52890889
Signed by: lilith
GPG key ID: 8712A0F317C37175
16657 changed files with 1483086 additions and 1 deletions

181
home/hyprland/default.nix Normal file
View file

@ -0,0 +1,181 @@
{ system-config, lib, ...}: {
imports = [
./hyprpaper.nix
./hyprlock.nix
# ./hyprgrass.nix
# ./utils.nix
];
wayland.windowManager = let
hyprDefaults = {
enable = true;
xwayland.enable = true;
systemd.enable = true;
settings = {
"$terminal" = "alacritty";
env = [
"HYPRCURSOR_THEME,rose-pine-hyprcursor"
];
monitor = [
",preferred,1"
];
exec-once = [
"hyprlock"
"ags"
"[workspace special:keepass silent] keepassxc"
];
windowrulev2 = [
"workspace special:keepass,class:org.keepassxc.KeePassXC,title:^(.*)(KeePassXC)(.*)$"
"workspace unset,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC"
"workspace special:chatgpt,class:firefox,title:ChatGPT Mozilla Firefox"
"float,class:firefox,title:ChatGPT Mozilla Firefox"
];
workspace = [
"special:keepass,gapsout:45"
"special:magic,gapsout:45"
"special:chatgpt,gapsout:45"
];
input = {
kb_layout = "de";
follow_mouse = 1;
touchpad.natural_scroll = true;
sensitivity = 0;
kb_options = "compose:caps";
};
general = {
gaps_in = 10;
gaps_out = 15;
border_size = 2;
layout = "dwindle";
allow_tearing = false;
};
decoration = {
rounding = 10;
blur = {
enabled = true;
size = 2;
passes = 1;
};
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
};
animations = {
enabled = true;
bezier = "myBezier, 0.0, 0.8, 0.2, 1.0";
animation = [
"windows, 1, 5, myBezier"
"windowsOut, 1, 5, default, popin 80%"
"border, 1, 10, default"
"borderangle, 1, 8, default"
"fade, 1, 7, default"
"workspaces, 1, 5, myBezier"
"specialWorkspace, 1, 5, myBezier, slidefadevert"
];
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
master = {
new_status = "master";
new_on_top = 1;
};
"$mainMod" = "SUPER";
bind = [
"$mainMod, Q, exec, $terminal"
"$mainMod, C, killactive,"
"$mainMod, backspace, exec, hyprlock"
"$mainMod, E, exec, $fileManager"
"$mainMod, A, togglefloating,"
"$mainMod, R, exec, ags -t launcher"
"$mainMod, D, pseudo,"
"$mainMod, S, togglesplit,"
"$mainMod, Tab, exec, ags -t overview"
"$mainMod, P, togglespecialworkspace, keepass"
"$mainMod, P, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi"
"$mainMod, O, togglespecialworkspace, chatgpt"
"$mainMod, O, exec, [workspace special:chatgpt] pgrep firefox | xargs ps -fp | grep -- '-P ChatGPT --url chat.openai.com' || firefox -P ChatGPT --url chat.openai.com"
", print, exec, hyprshot -m region -o /home/lilith/sync/screenshots -z"
"CTRL, print, exec, hyprshot -m output -o /home/lilith/sync/screenshots -z"
"$mainMod, H, movefocus, l"
"$mainMod, L, movefocus, r"
"$mainMod, K, movefocus, u"
"$mainMod, J, movefocus, d"
"$mainMod, 1, workspace, 1"
"$mainMod, 2, workspace, 2"
"$mainMod, 3, workspace, 3"
"$mainMod, 4, workspace, 4"
"$mainMod, 5, workspace, 5"
"$mainMod, 6, workspace, 6"
"$mainMod, 7, workspace, 7"
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
"$mainMod SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10"
"$mainMod, I, togglespecialworkspace, magic"
"$mainMod SHIFT, I, movetoworkspace, special:magic"
];
bindm = [
"$mainMod, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow"
];
binde = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86PowerOff, exec, ags -t powermenu"
];
};
};
in {
hyprland = lib.recursiveUpdate hyprDefaults system-config.hyprlandOverrides;
};
}

View file

@ -0,0 +1,44 @@
{ config, ...}:{
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
ignore_empty_input = true;
hide_cursor = true;
};
background = [
{
path = "screenshot";
# color = "rgba(25, 20, 20, 1.0)";
blur_passes = 2;
blur_size = 7;
noise = 0.0117;
contrast = 0.8916;
brightness = 0.8172;
vibrancy = 0.1696;
vibrancy_darkness = 0.0;
}
];
input-field = [
{
size = "800, 80";
position = "0, 0";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = ''<span foreground="##cad3f5">Password...</span>'';
shadow_passes = 2;
}
];
};
};
}

View file

@ -0,0 +1,22 @@
{ conf, ... }:
{
home.file.".config/hypr/wallpaper.png" = {
source = ../../wallpapers/${conf.wallpaper};
};
services.hyprpaper = let
default = "/home/lilith/.config/hypr/wallpaper.png";
in {
enable = true;
settings = {
splash = false;
preload = [ default ];
wallpaper = [
",${default}"
];
};
};
}