Added polybar

This commit is contained in:
marc
2022-10-23 11:53:56 +02:00
parent a1d321316c
commit 34d70b26c6
5 changed files with 34 additions and 5 deletions

Binary file not shown.

View File

@@ -3,5 +3,6 @@
{ {
imports = [ imports = [
./i3.nix ./i3.nix
./polybar.nix
]; ];
} }

View File

@@ -125,6 +125,9 @@ in {
} else {}) } else {})
// (if cfg.launcher.enable then { // (if cfg.launcher.enable then {
"${mod}+space" = "exec ${cfg.launcher.command}"; "${mod}+space" = "exec ${cfg.launcher.command}";
} else {})
// (if cfg.browser.enable then {
"Control+Alt+3" = "exec ${cfg.browser.command}";
} else {}); } else {});
}; };
}; };

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;
};
};
}

View File

@@ -21,11 +21,15 @@ in
# - Dependencies ----------------------------- # - Dependencies -----------------------------
samfelag.modules = { samfelag.modules = {
desktop.i3 = { desktop = {
enable = true; i3 = {
launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run"; enable = true;
terminal.command = "${pkgs.alacritty}/bin/alacritty"; launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run";
browser.command = "${pkgs.firefox}/bin/firefox"; terminal.command = "${pkgs.alacritty}/bin/alacritty";
browser.command = "${pkgs.firefox}/bin/firefox";
};
polybar.enable = true;
}; };
app.alacritty.enable = true; app.alacritty.enable = true;