164 current 2025-01-02 01:55:40 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
18
home/programs/polybar/default.nix
Normal file
18
home/programs/polybar/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.polybar = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = builtins.readFile ./config.ini;
|
||||||
|
script = ''
|
||||||
|
polybar mybar & disown
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
#home.activation.polybarStartup = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
# polybar -c /home/synchronous/.config/polybar/config.ini mybar & disown
|
||||||
|
#'';
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
./cmus/default.nix
|
./cmus/default.nix
|
||||||
# ./nitrogen/defualt.nix
|
# ./nitrogen/defualt.nix
|
||||||
./rofi/default.nix
|
./rofi/default.nix
|
||||||
|
./polybar/default.nix
|
||||||
|
|
||||||
./sxhkd/default.nix
|
./sxhkd/default.nix
|
||||||
./bspwm/default.nix
|
./bspwm/default.nix
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
services.polybar = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = builtins.readFile ./config.ini;
|
|
||||||
script = ''
|
|
||||||
polybar -q -r -c /home/synchronous/.config/polybar/config.ini mybar > /tmp/polybar & disown
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
home.activation.polybarStartup = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
||||||
polybar -c /home/synchronous/.config/polybar/config.ini mybar & disown
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -6,6 +6,5 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./picom/default.nix
|
./picom/default.nix
|
||||||
./dunst/default.nix
|
./dunst/default.nix
|
||||||
./polybar/default.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user