this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

home/services/swayosd: drop custom css

+1 -54
+1 -54
modules/home/services/swayosd/default.nix
··· 11 11 swayosd 12 12 ]; 13 13 14 - services.swayosd = { 15 - enable = lib.mkDefault true; 16 - stylePath = "${config.xdg.configHome}/swayosd/style.css"; 17 - }; 14 + services.swayosd.enable = lib.mkDefault true; 18 15 19 16 systemd.user.services.swayosd = { 20 17 Install.WantedBy = lib.mkForce (lib.optional config.wayland.windowManager.hyprland.enable "hyprland-session.target"); 21 18 Service.Restart = lib.mkForce "no"; 22 19 Unit.BindsTo = lib.optional config.wayland.windowManager.hyprland.enable "hyprland-session.target"; 23 - }; 24 - 25 - xdg.configFile."swayosd/style.css" = { 26 - text = '' 27 - window#osd { 28 - padding: 12px 20px; 29 - border-radius: ${toString 10}px; 30 - border: 4px solid alpha(${config.lib.stylix.colors.withHashtag."base0D"}, ${toString config.stylix.opacity.popups}); 31 - background: alpha(${config.lib.stylix.colors.withHashtag."base01"}, ${toString config.stylix.opacity.popups}); 32 - } 33 - 34 - window#osd #container { 35 - margin: 16px; 36 - } 37 - 38 - window#osd image, 39 - window#osd label { 40 - color: ${config.lib.stylix.colors.withHashtag."base06"}; 41 - } 42 - 43 - window#osd progressbar:disabled, 44 - window#osd image:disabled { 45 - opacity: 0.5; 46 - } 47 - 48 - window#osd progressbar { 49 - min-height: 6px; 50 - border-radius: 999px; 51 - background: transparent; 52 - border: none; 53 - } 54 - 55 - window#osd trough { 56 - min-height: inherit; 57 - border-radius: inherit; 58 - border: none; 59 - background: alpha(${config.lib.stylix.colors.withHashtag."base06"}, 0.5); 60 - } 61 - 62 - window#osd progress { 63 - min-height: inherit; 64 - border-radius: inherit; 65 - border: none; 66 - background: ${config.lib.stylix.colors.withHashtag."base06"}; 67 - } 68 - ''; 69 - 70 - onChange = '' 71 - ${lib.getExe' pkgs.systemd "systemctl"} restart --user swayosd 72 - ''; 73 20 }; 74 21 }; 75 22 }