mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 23:51:54 -05:00
Aly Raffauf
c112fcd6c5
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* flake: add stylix modules * yank enough to make hosts build with stylix enabled * add initial common stylix theme * waybar: remove custom colors * rofi: reimplement theme * rofi: transparency fix * rofi: remove old theme * swayosd: use stylix colors * remove theme.colors * remove remaining theme config outside icons + gtk settings * remove darkMode toggle * restore fuzzel module * randomWallpaper: disable * configs in sway * randomWallpaper: disable hyprpaper stylix config * swaylock: restore non-theme settings * hosts: fix wallpaper * waybar: restore colors * rofi: restore theme * rofi: use proper border color * harmonize font sizes * rofi: use borderRadius setting * tmux: remove theming * hosts: add preliminary stylix configs * randomWallpaper: force hyprpaper off * fallarbor: set correct wallpaper * rofi: fix transparency issues on hyprland * sway: override stylix indicator colors
76 lines
2.1 KiB
Nix
76 lines
2.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.ar.home;
|
|
in {
|
|
config = lib.mkIf cfg.services.swayosd.enable {
|
|
home.packages = with pkgs; [
|
|
swayosd
|
|
];
|
|
|
|
services.swayosd = {
|
|
enable = lib.mkDefault true;
|
|
stylePath = "${config.xdg.configHome}/swayosd/style.css";
|
|
};
|
|
|
|
systemd.user.services.swayosd = {
|
|
Install.WantedBy = lib.mkForce (lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target");
|
|
Service.Restart = lib.mkForce "no";
|
|
Unit.BindsTo = lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target";
|
|
};
|
|
|
|
xdg.configFile."swayosd/style.css" = {
|
|
text = ''
|
|
window#osd {
|
|
padding: 12px 20px;
|
|
border-radius: ${toString cfg.theme.borderRadius}px;
|
|
border: 4px solid alpha(${config.lib.stylix.colors.withHashtag."base07"}, ${toString config.stylix.opacity.popups});
|
|
background: alpha(${config.lib.stylix.colors.withHashtag."base01"}, ${toString config.stylix.opacity.popups});
|
|
}
|
|
|
|
window#osd #container {
|
|
margin: 16px;
|
|
}
|
|
|
|
window#osd image,
|
|
window#osd label {
|
|
color: ${config.lib.stylix.colors.withHashtag."base06"};
|
|
}
|
|
|
|
window#osd progressbar:disabled,
|
|
window#osd image:disabled {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
window#osd progressbar {
|
|
min-height: 6px;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
window#osd trough {
|
|
min-height: inherit;
|
|
border-radius: inherit;
|
|
border: none;
|
|
background: alpha(${config.lib.stylix.colors.withHashtag."base06"}, 0.5);
|
|
}
|
|
|
|
window#osd progress {
|
|
min-height: inherit;
|
|
border-radius: inherit;
|
|
border: none;
|
|
background: ${config.lib.stylix.colors.withHashtag."base06"};
|
|
}
|
|
'';
|
|
|
|
onChange = ''
|
|
${lib.getExe' pkgs.systemd "systemctl"} restart --user swayosd
|
|
'';
|
|
};
|
|
};
|
|
}
|