Fix taffybar startup and restore pill colors
This commit is contained in:
50
dotfiles/config/taffybar/end-widget-solid.css
Normal file
50
dotfiles/config/taffybar/end-widget-solid.css
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
/* Final pass overrides for end-widget pill chrome.
|
||||||
|
*
|
||||||
|
* This is loaded after the main bar/theme CSS so the end-widget palette stays
|
||||||
|
* vivid even if earlier rules or theme rendering make the pills read too
|
||||||
|
* transparent on some hosts.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.outer-pad.end-widget.end-slot-1 {
|
||||||
|
background-color: rgb(50, 60, 160);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(90, 100, 210);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.end-widget.end-slot-2 {
|
||||||
|
background-color: rgb(110, 45, 160);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(155, 85, 210);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.end-widget.end-slot-3 {
|
||||||
|
background-color: rgb(25, 130, 75);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(55, 190, 115);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.end-widget.end-slot-4 {
|
||||||
|
background-color: rgb(20, 120, 140);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(50, 175, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.end-widget.end-slot-5 {
|
||||||
|
background-color: rgb(160, 40, 70);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(210, 80, 115);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.sni-tray {
|
||||||
|
background-color: rgb(65, 70, 100);
|
||||||
|
background-image: none;
|
||||||
|
border-color: rgb(110, 115, 160);
|
||||||
|
}
|
||||||
|
|
||||||
|
.outer-pad.end-widget,
|
||||||
|
.outer-pad.sni-tray {
|
||||||
|
box-shadow:
|
||||||
|
inset 0 1px 0 rgba(255, 255, 255, 0.10),
|
||||||
|
inset 0 0 0 1px rgba(255, 255, 255, 0.10),
|
||||||
|
0 10px 24px rgba(0, 0, 0, 0.30);
|
||||||
|
}
|
||||||
Submodule dotfiles/config/taffybar/taffybar updated: f95f366bbd...263cd2af9c
@@ -1,5 +1,6 @@
|
|||||||
@import url("theme.css");
|
@import url("theme.css");
|
||||||
@import url("end-widget-colors.css");
|
@import url("end-widget-colors.css");
|
||||||
|
@import url("end-widget-solid.css");
|
||||||
|
|
||||||
/* Widget/layout styling for taffybar.
|
/* Widget/layout styling for taffybar.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, inputs, pkgs, makeEnable, ... }:
|
{ config, inputs, lib, pkgs, makeEnable, ... }:
|
||||||
let
|
let
|
||||||
skipTaffybarInKde = pkgs.writeShellScript "skip-taffybar-in-kde" ''
|
skipTaffybarInKde = pkgs.writeShellScript "skip-taffybar-in-kde" ''
|
||||||
current_desktop="''${XDG_CURRENT_DESKTOP:-}"
|
current_desktop="''${XDG_CURRENT_DESKTOP:-}"
|
||||||
@@ -40,7 +40,7 @@ makeEnable config "myModules.taffybar" false {
|
|||||||
];
|
];
|
||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
({ lib, ... }: {
|
||||||
services."status-notifier-watcher".enable = true;
|
services."status-notifier-watcher".enable = true;
|
||||||
# home-manager's module defaults to nixpkgs' status-notifier-item, which can lag.
|
# home-manager's module defaults to nixpkgs' status-notifier-item, which can lag.
|
||||||
# Point it at the pinned flake version instead.
|
# Point it at the pinned flake version instead.
|
||||||
@@ -59,6 +59,11 @@ makeEnable config "myModules.taffybar" false {
|
|||||||
package = inputs.imalison-taffybar.defaultPackage.${pkgs.stdenv.hostPlatform.system};
|
package = inputs.imalison-taffybar.defaultPackage.${pkgs.stdenv.hostPlatform.system};
|
||||||
};
|
};
|
||||||
xdg.configFile."systemd/user/taffybar.service".force = true;
|
xdg.configFile."systemd/user/taffybar.service".force = true;
|
||||||
|
home.activation.removeStaleTaffybarOverride =
|
||||||
|
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
rm -f "$HOME/.config/systemd/user/taffybar.service.d/override.conf"
|
||||||
|
rmdir --ignore-fail-on-non-empty "$HOME/.config/systemd/user/taffybar.service.d" 2>/dev/null || true
|
||||||
|
'';
|
||||||
systemd.user.services.taffybar.Service = {
|
systemd.user.services.taffybar.Service = {
|
||||||
ExecCondition = "${skipTaffybarInKde}";
|
ExecCondition = "${skipTaffybarInKde}";
|
||||||
# Temporary startup debugging: keep a plain-text log outside journald so
|
# Temporary startup debugging: keep a plain-text log outside journald so
|
||||||
@@ -66,6 +71,6 @@ makeEnable config "myModules.taffybar" false {
|
|||||||
StandardOutput = "append:/tmp/taffybar-service.log";
|
StandardOutput = "append:/tmp/taffybar-service.log";
|
||||||
StandardError = "append:/tmp/taffybar-service.log";
|
StandardError = "append:/tmp/taffybar-service.log";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user