Added polybar
This commit is contained in:
Binary file not shown.
@@ -3,5 +3,6 @@
|
||||
{
|
||||
imports = [
|
||||
./i3.nix
|
||||
./polybar.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
home/modules/desktop/polybar.nix
Normal file
21
home/modules/desktop/polybar.nix
Normal 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;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -21,11 +21,15 @@ in
|
||||
# - Dependencies -----------------------------
|
||||
|
||||
samfelag.modules = {
|
||||
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";
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user