Added polybar

This commit is contained in:
marc committed 2022-10-23 11:53:56 +02:00
1 parent a1d321316c
commit 34d70b26c6
5 files changed
+30 -1

No files matched your search

Binary file not shown.
+1
View File
@@ -3,5 +3,6 @@
{
imports = [
./i3.nix
./polybar.nix
];
}
+3
View File
@@ -125,6 +125,9 @@ in {
} else {})
// (if cfg.launcher.enable then {
"${mod}+space" = "exec ${cfg.launcher.command}";
} else {})
// (if cfg.browser.enable then {
"Control+Alt+3" = "exec ${cfg.browser.command}";
} else {});
};
};
+21
View File
@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
cfg = config.samfelag.modules.desktop.polybar;
in {
options.samfelag.modules.desktop.polybar = {
enable = lib.mkEnableOption "polybar";
};
config = lib.mkIf cfg.enable {
# - Configuration ----------------------------
services.polybar = {
enable = true;
};
};
}
+5 -1
View File
@@ -21,13 +21,17 @@ in
# - Dependencies -----------------------------
samfelag.modules = {
desktop.i3 = {
desktop = {
i3 = {
enable = true;
launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run";
terminal.command = "${pkgs.alacritty}/bin/alacritty";
browser.command = "${pkgs.firefox}/bin/firefox";
};
polybar.enable = true;
};
app.alacritty.enable = true;
};