diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-06 22:03:10 +0000 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-06 22:19:49 +0000 |
commit | f71051f47158f57091306e269352d7579522e426 (patch) | |
tree | 3b112ddd10797c8669e9b68d483b205d49c3035b /home-manager/compositor/hyprland.nix | |
parent | 463f0d40c6ee02e5512269d2e370506a8ca8f965 (diff) |
bluurb
Diffstat (limited to 'home-manager/compositor/hyprland.nix')
-rw-r--r-- | home-manager/compositor/hyprland.nix | 209 |
1 files changed, 0 insertions, 209 deletions
diff --git a/home-manager/compositor/hyprland.nix b/home-manager/compositor/hyprland.nix deleted file mode 100644 index f4c35de..0000000 --- a/home-manager/compositor/hyprland.nix +++ /dev/null @@ -1,209 +0,0 @@ -{ pkgs, inputs, monitor-names, ... }: -let - wallpaper = ../static/wallpaper.jpg; -in -{ - home.packages = with pkgs; [ - rofi-wayland-unwrapped - rofi-rbw-wayland - grimblast - hyprpicker - wl-clipboard - ]; - - # Required for hyprpicker's cursor but also seems to fix some icons for astal - home.pointerCursor = { - gtk.enable = true; - package = pkgs.adwaita-icon-theme; - name = "Adwaita"; - size = 16; - }; - - services.wlsunset.enable = true; - services.wlsunset.sunrise = "06:00"; - services.wlsunset.sunset = "17:00"; - - wayland.windowManager.hyprland.enable = true; - wayland.windowManager.hyprland.systemd.enable = true; - wayland.windowManager.hyprland.plugins = [ - inputs.hy3.packages.x86_64-linux.hy3 - ]; - - wayland.windowManager.hyprland.settings = { - "$terminal" = "alacritty"; - "$mod" = "SUPER"; - - exec-once = [ - "astal-bar" - ]; - - debug = { - "disable_logs" = false; - }; - - general = { - "layout" = "hy3"; - "border_size" = 2; - "col.active_border" = "rgba(fe8423ee) rgba(e11701ee) 45deg"; - "col.inactive_border" = "rgba(595959aa)"; - }; - - monitor = [ - "Unknown-1, disable" - ",preferred,auto,auto" - ]; - - xwayland = { - force_zero_scaling = true; - }; - - animations = { - bezier = [ - "easeOutQuint,0.23,1,0.32,1" - "easeInOutCubic,0.65,0.05,0.36,1" - "linear,0,0,1,1" - "almostLinear,0.5,0.5,0.75,1.0" - "quick,0.15,0,0.1,1" - ]; - animation = [ - "global, 1, 10, default" - "border, 1, 5.39, easeOutQuint" - "windows, 1, 4.79, easeOutQuint" - "windowsIn, 1, 4.1, easeOutQuint, popin 87%" - "windowsOut, 1, 1.49, linear, popin 87%" - "fadeIn, 1, 1.73, almostLinear" - "fadeOut, 1, 1.46, almostLinear" - "fade, 1, 3.03, quick" - "layers, 1, 3.81, easeOutQuint" - "layersIn, 1, 4, easeOutQuint, fade" - "layersOut, 1, 1.5, linear, fade" - "fadeLayersIn, 1, 1.79, almostLinear" - "fadeLayersOut, 1, 1.39, almostLinear" - "workspaces, 1, 1.94, almostLinear, fade" - ]; - }; - - decoration = { - "rounding" = 5; - "inactive_opacity" = 0.8; - }; - - bind = - [ - "$mod, Return, exec, alacritty" - "$mod, Semicolon, hy3:makegroup, h" - "$mod, D, exec, ${pkgs.rofi-wayland-unwrapped}/bin/rofi -show drun" - "$mod, F, fullscreen, 1" - "$mod, H, hy3:movefocus, l" - "$mod, J, hy3:movefocus, d" - "$mod, K, hy3:movefocus, u" - "$mod, L, hy3:movefocus, r" - "$mod, P, exec, ${pkgs.grimblast}/bin/grimblast copy area" - "$mod, Q, exec, ${pkgs.hyprlock}/bin/hyprlock" - "$mod, V, hy3:makegroup, v" - "$mod, W, hy3:changegroup, toggletab" - "$mod, X, movecurrentworkspacetomonitor, +1" - - "$mod SHIFT, C, exec, ${pkgs.hyprpicker}/bin/hyprpicker -a -f hex" - "$mod SHIFT, D, exec, ${pkgs.rofi-rbw-wayland}/bin/rofi-rbw" - "$mod SHIFT, H, hy3:movewindow, l" - "$mod SHIFT, J, hy3:movewindow, d" - "$mod SHIFT, K, hy3:movewindow, u" - "$mod SHIFT, L, hy3:movewindow, r" - "$mod SHIFT, P, exec, ${pkgs.grimblast}/bin/grimblast copy screen" - "$mod SHIFT, Q, hy3:killactive" - ] - ++ ( - builtins.concatLists (builtins.genList (i: - let ws = i + 1; - in [ - "$mod, code:1${toString i}, workspace, ${toString ws}" - "$mod SHIFT, code:1${toString i}, hy3:movetoworkspace, ${toString ws}" - ] - ) - 9) - ); - - plugin = { - hy3 = { - tabs = { - "col.active" = "0xFFFE8423"; - "col.inactive" = "0xFF103543"; - "col.text.inactive" = "0xFFFECDB2"; - }; - }; - }; - }; - - programs.waybar.enable = true; - programs.waybar.settings = { - mainBar = { - layer = "top"; - position = "bottom"; - output = monitor-names; - modules-left = [ - "hyprland/workspaces" - ]; - modules-right = [ - "clock" - "battery" - ]; - - "hyprland/workspaces" = { - all-outputs = true; - format-icons = { - active = ""; - default = ""; - }; - format = "{id} {icon}"; - window-rewrite-default = "*"; - }; - }; - }; - - services.hyprpaper.enable = true; - services.hyprpaper.settings = { - preload = [ "${wallpaper}" ]; - wallpaper = [ ",${wallpaper}" ]; - }; - - programs.hyprlock.enable = true; - programs.hyprlock.settings = { - background = [ - { path = "${wallpaper}"; - blur_passes = 2; - monitor = ""; - } - ]; - - general = { - no_fade_in = true; - no_fade_out = true; - hide_cursor = false; - disable_loading_bar = true; - grace = 0; - }; - - input-field = [ - { - monitor = ""; - size = "250, 60"; - outline_thickness = 2; - dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0 - dots_center = true; - outer_color = "rgba(0, 0, 0, 0)"; - inner_color = "rgba(0, 0, 0, 0.2)"; - font_color = "$foreground"; - fade_on_empty = false; - rounding = -1; - check_color = "rgb(204, 136, 34)"; - placeholder_text = "<i><span foreground=\"##cdd6f4\">Input Password...</span></i>"; - hide_input = false; - position = "0, -200"; - halign = "center"; - valign = "center"; - } - ]; - }; -} |