Skip to content

Commit 337ee68

Browse files
committed
Fix taffybar startup and restore pill colors
1 parent 4107edc commit 337ee68

4 files changed

Lines changed: 60 additions & 4 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* Final pass overrides for end-widget pill chrome.
2+
*
3+
* This is loaded after the main bar/theme CSS so the end-widget palette stays
4+
* vivid even if earlier rules or theme rendering make the pills read too
5+
* transparent on some hosts.
6+
*/
7+
8+
.outer-pad.end-widget.end-slot-1 {
9+
background-color: rgb(50, 60, 160);
10+
background-image: none;
11+
border-color: rgb(90, 100, 210);
12+
}
13+
14+
.outer-pad.end-widget.end-slot-2 {
15+
background-color: rgb(110, 45, 160);
16+
background-image: none;
17+
border-color: rgb(155, 85, 210);
18+
}
19+
20+
.outer-pad.end-widget.end-slot-3 {
21+
background-color: rgb(25, 130, 75);
22+
background-image: none;
23+
border-color: rgb(55, 190, 115);
24+
}
25+
26+
.outer-pad.end-widget.end-slot-4 {
27+
background-color: rgb(20, 120, 140);
28+
background-image: none;
29+
border-color: rgb(50, 175, 200);
30+
}
31+
32+
.outer-pad.end-widget.end-slot-5 {
33+
background-color: rgb(160, 40, 70);
34+
background-image: none;
35+
border-color: rgb(210, 80, 115);
36+
}
37+
38+
.outer-pad.sni-tray {
39+
background-color: rgb(65, 70, 100);
40+
background-image: none;
41+
border-color: rgb(110, 115, 160);
42+
}
43+
44+
.outer-pad.end-widget,
45+
.outer-pad.sni-tray {
46+
box-shadow:
47+
inset 0 1px 0 rgba(255, 255, 255, 0.10),
48+
inset 0 0 0 1px rgba(255, 255, 255, 0.10),
49+
0 10px 24px rgba(0, 0, 0, 0.30);
50+
}

dotfiles/config/taffybar/taffybar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import url("theme.css");
22
@import url("end-widget-colors.css");
3+
@import url("end-widget-solid.css");
34

45
/* Widget/layout styling for taffybar.
56
*

nixos/taffybar.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, inputs, pkgs, makeEnable, ... }:
1+
{ config, inputs, lib, pkgs, makeEnable, ... }:
22
let
33
skipTaffybarInKde = pkgs.writeShellScript "skip-taffybar-in-kde" ''
44
current_desktop="''${XDG_CURRENT_DESKTOP:-}"
@@ -40,7 +40,7 @@ makeEnable config "myModules.taffybar" false {
4040
];
4141

4242
home-manager.sharedModules = [
43-
{
43+
({ lib, ... }: {
4444
services."status-notifier-watcher".enable = true;
4545
# home-manager's module defaults to nixpkgs' status-notifier-item, which can lag.
4646
# Point it at the pinned flake version instead.
@@ -59,13 +59,18 @@ makeEnable config "myModules.taffybar" false {
5959
package = inputs.imalison-taffybar.defaultPackage.${pkgs.stdenv.hostPlatform.system};
6060
};
6161
xdg.configFile."systemd/user/taffybar.service".force = true;
62+
home.activation.removeStaleTaffybarOverride =
63+
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
64+
rm -f "$HOME/.config/systemd/user/taffybar.service.d/override.conf"
65+
rmdir --ignore-fail-on-non-empty "$HOME/.config/systemd/user/taffybar.service.d" 2>/dev/null || true
66+
'';
6267
systemd.user.services.taffybar.Service = {
6368
ExecCondition = "${skipTaffybarInKde}";
6469
# Temporary startup debugging: keep a plain-text log outside journald so
6570
# the next login/startup leaves easy-to-inspect tray traces behind.
6671
StandardOutput = "append:/tmp/taffybar-service.log";
6772
StandardError = "append:/tmp/taffybar-service.log";
6873
};
69-
}
74+
})
7075
];
7176
}

0 commit comments

Comments
 (0)