Compare commits
No commits in common. "133dc74fb923fac0e2373acdda98a28ca08f3af9" and "2f6fc3b59c52db68d0fbea26ce1ec2f4a02f3b8d" have entirely different histories.
133dc74fb9
...
2f6fc3b59c
@ -28,7 +28,7 @@
|
|||||||
/* Functional variables */
|
/* Functional variables */
|
||||||
--window-bg: alpha(var(--background), 0.9);
|
--window-bg: alpha(var(--background), 0.9);
|
||||||
--module-bg: alpha(var(--mid-bg), 0.8);
|
--module-bg: alpha(var(--mid-bg), 0.8);
|
||||||
--border-color: var(--light-bg);
|
--border-color: var(--mid-fg);
|
||||||
--ws-active: var(--pink);
|
--ws-active: var(--pink);
|
||||||
--ws-inactive: var(--blue);
|
--ws-inactive: var(--blue);
|
||||||
--ws-empty: var(--dark-grey);
|
--ws-empty: var(--dark-grey);
|
||||||
|
|||||||
@ -89,7 +89,7 @@ class StatusBar(Window):
|
|||||||
spacing=4,
|
spacing=4,
|
||||||
buttons_factory=lambda ws_id: RiverWorkspaceButton(id=ws_id, label=None),
|
buttons_factory=lambda ws_id: RiverWorkspaceButton(id=ws_id, label=None),
|
||||||
)
|
)
|
||||||
self.date_time = DateTime(name="date-time", formatters="%d %b - %H:%M")
|
self.date_time = DateTime(name="date-time")
|
||||||
self.system_tray = None
|
self.system_tray = None
|
||||||
if with_system_tray:
|
if with_system_tray:
|
||||||
self.system_tray = SystemTray(name="system-tray", spacing=4)
|
self.system_tray = SystemTray(name="system-tray", spacing=4)
|
||||||
|
|||||||
42
flake.nix
42
flake.nix
@ -6,8 +6,6 @@
|
|||||||
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
utils.url = "github:numtide/flake-utils";
|
utils.url = "github:numtide/flake-utils";
|
||||||
fabric.url = "github:wholikeel/fabric-nix";
|
fabric.url = "github:wholikeel/fabric-nix";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@ -38,43 +36,5 @@
|
|||||||
program = "${self.packages.${system}.default}/bin/bar";
|
program = "${self.packages.${system}.default}/bin/bar";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
// {
|
|
||||||
homeManagerModules.makku-bar =
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.services.makku-bar = {
|
|
||||||
enable = lib.mkEnableOption "makku-bar status bar";
|
|
||||||
|
|
||||||
package = lib.mkOption {
|
|
||||||
type = lib.types.package;
|
|
||||||
default = pkgs.callPackage ./derivation.nix { inherit (pkgs) lib python3Packages; };
|
|
||||||
description = "The makku-bar package to use.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.services.makku-bar.enable {
|
|
||||||
systemd.user.services.makku-bar = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Makku Status Bar";
|
|
||||||
After = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${config.services.makku-bar.package}/bin/bar";
|
|
||||||
Restart = "on-failure";
|
|
||||||
};
|
|
||||||
|
|
||||||
Install = {
|
|
||||||
WantedBy = [ "default.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user