{ lib, config, osConfig, ... }: { wayland.windowManager.hyprland = { systemd.enable = false; # Required for UWSM systemd.enableXdgAutostart = false; configType = "lua"; settings = let wpDir = "${config.home.homeDirectory}/Pictures/wallpapers"; in { on._args = [ "hyprland.start" (lib.generators.mkLuaInline ( '' function() '' + lib.concatMapStringsSep "\n" (cmd: ''hl.exec_cmd("${cmd}")'') ( [ "swaync" "hyprswitch init --size-factor 5 &" "wl-paste --type text --watch cliphist store #Stores only text data" "wl-paste --type image --watch cliphist store #Stores only image data" ] ++ ( { # TODO: the hyprpaper hm-module still generates the old config format, use ipc temporarily "sisko" = [ "hyprctl hyprpaper wallpaper 'DP-1, ${wpDir}/Ultrawide_Stray_City.png'" "hyprctl hyprpaper wallpaper 'DP-2, ${wpDir}/cyberpunk-gas-station-1.jpg'" ]; "fa-t14-2025" = [ "hyprctl hyprpaper wallpaper ', ${wpDir}/mktv-wallpaper-01.png'" ]; } ."${osConfig.networking.hostName}" ) ) + '' end '' )) ]; monitor = [ # Sisko { output = "desc:Philips Consumer Electronics Company 49M2C8900 AU42525000628"; mode = "highres@highrr"; position = "0x0"; scale = "1"; supports_hdr = 1; } { output = "desc:LG Electronics LG ULTRAWIDE 407NTABCV312"; mode = "highres@highrr"; position = "600x-1440"; scale = "1"; supports_hdr = 1; } # fa-t14-2025 { output = "desc:Lenovo Group Limited 0x403D"; mode = "highres@highrr"; position = "0x0"; scale = "1"; supports_hdr = 1; } { output = "desc:Samsung Electric Company LS32D70xE HK2XC00156"; mode = "3840x2160@30.00"; position = "-3840x0"; scale = "1"; } { output = "desc:Samsung Electric Company C24F390 H4ZM501656"; mode = "1920x1080@60.00"; position = "-5760x0"; scale = "1"; } # Other { output = ""; mode = "preferred"; position = "auto"; scale = "auto"; } ]; config = { general = { gaps_in = 8; gaps_out = 12; border_size = 1; "col.active_border" = { colors = [ "rgba(33ccffee)" "rgba(00ff99ee)" ]; angle = 45; }; "col.inactive_border" = "rgba(595959aa)"; resize_on_border = false; allow_tearing = false; layout = "dwindle"; }; decoration = { rounding = 8; active_opacity = 1.0; inactive_opacity = 1.0; shadow = { enabled = true; range = 4; render_power = 3; color = "rgba(1a1a1aee)"; }; blur = { enabled = true; size = 3; passes = 1; vibrancy = 0.1696; }; }; animations.enabled = false; # TODO dwindle = { preserve_split = true; }; master = { new_status = "master"; }; binds = { movefocus_cycles_fullscreen = 1; }; misc = { force_default_wallpaper = 0; disable_hyprland_logo = true; }; input = { kb_layout = lib.mkDefault "us"; kb_variant = lib.mkDefault "intl"; kb_model = ""; kb_options = "ctrl:nocaps"; kb_rules = ""; follow_mouse = 1; sensitivity = 0; touchpad = { natural_scroll = false; }; }; }; }; }; }