{ pkgs, lib, config, ... }: { home.packages = with pkgs; [ wl-clipboard wtype wlroots grim slurp imv ]; xdg.configFile."swaynag/config".text = '' font=JetBrainsMono 10 layer=top [exit] background=111320D0 text=a9b1d6 border-bottom=7BC5E4 border-bottom-size=1 button-background=282E49F0 button-border-size=2 ''; # Hyprlock programs.hyprlock.enable = true; programs.hyprlock.settings = { general = { hide_cursor = true; disable_loading_bar = true; grace = 180; }; background = [ { monitor = ""; path = "screenshot"; blur_passes = 2; blur_size = 6; brightness = 0.4; contrast = 0.5; } ]; label = [ { monitor = ""; halign = "center"; valign = "center"; position = "0, 480"; text = "cmd[update:1000] date '+%H:%M:%S'"; color = "rgb(a9b1d6)"; font_family = "Quicksand"; font_size = 102; } { monitor = ""; halign = "center"; valign = "center"; position = "0, 370"; text = "cmd[update:60000] date '+%A  %Y-%m-%d'"; color = "rgb(a9b1d6)"; font_family = "Quicksand"; font_size = 32; } { monitor = ""; halign = "center"; valign = "center"; position = "0, -240"; text = "Login: $USER"; color = "rgb(a9b1d6)"; font_family = "Quicksand"; font_size = 26; } ]; input-field = [ { monitor = ""; halign = "center"; valign = "center"; size = "800, 70"; position = "0, -160"; dots_center = true; fade_on_empty = false; font_family = "Quicksand"; font_color = "rgb(a9b1d6)"; inner_color = "rgb(1a1b26)"; outer_color = "rgb(a9b1d6)"; check_color = "rgb(e0af68)"; fail_color = "rgb(f7768e)"; outline_thickness = 3; placeholder_text = ''Password''; shadow_passes = 2; } ]; }; # Swaybg systemd.user.services.swaybg = { Install.WantedBy = [ "graphical-session.target" ]; Unit = { Description = "Sway background manager"; After = [ "graphical-session-pre.target" ]; PartOf = [ "graphical-session.target" ]; ConditionEnvironment = "WAYLAND_DISPLAY"; }; Service = { ExecStart = "${lib.getExe pkgs.swaybg} -o '*' -i ${../../assets/background.png} -m fill"; Restart = "always"; RestartSec = "5"; }; }; # Rofi programs.rofi.enable = true; programs.rofi.package = pkgs.rofi-wayland; xdg.configFile.rofi.source = ./rofi; # EWW programs.eww.enable = true; programs.eww.configDir = ./eww; systemd.user.services.eww = let eww = lib.getExe config.programs.eww.package; in { Install.WantedBy = [ "graphical-session.target" ]; Unit = { Description = "GTK-based custom widgets"; Documentation = "https://github.com/elkowar/eww"; After = [ "graphical-session-pre.target" ]; PartOf = [ "graphical-session.target" ]; ConditionEnvironment = "WAYLAND_DISPLAY"; }; Service = { ExecStart = "${eww} daemon --no-daemonize"; ExecStartPost = "${eww} open ${config.machine}_bar --screen 0"; Restart = "always"; RestartSec = "5"; }; }; # Mako services.mako = { enable = true; font = "JetBrainsMono Nerd Font 10"; format = ''%a\n%s\n\n%b''; layer = "overlay"; backgroundColor = "#111320d0"; width = 300; margin = "5"; padding = "5,10"; borderSize = 2; borderColor = "#7bc5e4"; borderRadius = 5; progressColor = "source #4e90ad"; extraConfig = '' [urgency=low] format=%s\n%b background-color=#111111c0 border-color=#787c99 progress-color=source #474f6f border-size=1 [urgency=high] background-color=#1e0909d0 border-color=#ce7284 progress-color=source #bc5469 border-size=2 default-timeout=0 ignore-timeout=1 [app-name=discord] format=%s\n\n%b border-color=#7da6ff [app-name=discordcanary] format=%s\n\n%b border-color=#7da6ff [category=multimedia] anchor=center width=430 font=JetBrainsMono Nerd Font 13 format=%s border-size=1 default-timeout=2000 [category=multimedia app-name=pamixer body=false] background-color=#111111c0 border-color=#787c99 progress-color=source #474f6f [category=multimedia app-name=pamixer body=true] background-color=#111111c0 border-color=#ce7284 progress-color=source #bc5469 [category=multimedia app-name=brightnessctl] background-color=#111111c0 border-color=#ffea63 progress-color=source #a08348 ''; }; # WLuma # systemd.user.services.wluma = lib.mkIf (config.machine== "fire") { # Install.WantedBy = [ "graphical-session.target" ]; # Unit = { # Description = "Adjust screen brightness based on screen contents and ambient lighting"; # Documentation = "https://github.com/maximbaz/wluma"; # After = [ "graphical-session-pre.target" ]; # PartOf = [ "graphical-session.target" ]; # ConditionEnvironment = "WAYLAND_DISPLAY"; # }; # Service = { # ExecStart = "${lib.getExe pkgs.wluma}"; # Restart = "always"; # RestartSec = "5"; # PrivateNetwork = "true"; # PrivateMounts = "false"; # }; # }; # xdg.configFile."wluma/config.toml".text = '' # [als.iio] # path = "/sys/bus/iio/devices" # thresholds = { 0 = "night", 20 = "dark", 80 = "dim", 250 = "normal", 500 = "bright", 800 = "outdoors" } # [[output.backlight]] # name = "eDP-1" # path = "/sys/class/backlight/intel_backlight" # capturer = "wlroots" # ''; }