Compare commits

...

2 Commits

Author SHA1 Message Date
f5b118af1a
feat(nix-hm): use waybar from git 2024-02-13 09:29:46 -06:00
c642b599e3
feat(waybar): show degraded systemd units 2024-02-13 09:29:20 -06:00
4 changed files with 62 additions and 4 deletions

View File

@ -20,6 +20,7 @@
],
"modules-right": [
"custom/pacman-update",
"systemd-failed-units",
"tray",
"backlight",
"network",
@ -106,7 +107,8 @@
},
"backlight": {
"format": "󰃠 {percent}%",
"scroll-step": 5.0
"scroll-step": 5.0,
"device": "intel_backlight"
},
"network": {
"on-click-right": "~/.config/waybar/scripts/set-rfkill.bash",
@ -225,6 +227,11 @@
"firefoxdeveloperedition": "firefox-developer-edition"
}
},
"systemd-failed-units": {
"format": "✗ Degraded Units: {nr_failed}",
"system": true,
"user": true
},
"tray": {
"icon-size": 14
}

View File

@ -72,6 +72,7 @@ tooltip label,
#taskbar,
#tray,
#backlight,
#systemd-failed-units,
#tray menu,
#custom-lock {
background-color: #16161d;
@ -268,6 +269,15 @@ tooltip {
color: #7e9cd8;
}
#systemd-failed-units.ok {
color: #98BB6C;
}
#systemd-failed-units.degraded {
color: #FF5D62;
font-weight: bolder;
}
/* Tray */
#tray {
-gtk-icon-shadow: 0 0 2px #957fb8;

View File

@ -107,6 +107,22 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -504,6 +520,7 @@
"kanagawa-gtk": "kanagawa-gtk",
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_3",
"waybar": "waybar",
"wezterm": "wezterm"
}
},
@ -622,6 +639,27 @@
"type": "github"
}
},
"waybar": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1707827123,
"narHash": "sha256-goHgM2gDzlDcgxXKMQchAjmeuqaoWGPGwl4thC8V3Dg=",
"owner": "Alexays",
"repo": "Waybar",
"rev": "28cd9dff47fa586c2a7910e6c18eefb6a93a0dd0",
"type": "github"
},
"original": {
"owner": "Alexays",
"repo": "Waybar",
"type": "github"
}
},
"wezterm": {
"inputs": {
"flake-utils": "flake-utils_6",

View File

@ -19,6 +19,10 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
waybar = {
url = "github:Alexays/Waybar";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
emacs-overlay.url = "github:nix-community/emacs-overlay";
wezterm = {
@ -34,9 +38,7 @@
lib = nixpkgs.lib;
in {
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
targets.genericLinux = {
enable = true;
};
targets.genericLinux = { enable = true; };
homeConfigurations.${username} =
home-manager.lib.homeManagerConfiguration rec {
pkgs = nixpkgs.legacyPackages.${system};
@ -50,6 +52,7 @@
inputs.deepfilternet.overlays.default
inputs.kanagawa-gtk.overlays.default
(final: prev: {
waybar = inputs.waybar.packages.${system}.default;
lxappearance = prev.lxappearance.overrideAttrs (oldAttrs: {
postInstall = ''
wrapProgram $out/bin/lxappearance --prefix GDK_BACKEND : x11