lemonbar and poly bar

This commit is contained in:
Sakooooo 2023-07-12 15:42:51 +03:00
parent 1a5d331416
commit d7306aba7c
Signed by: sako
GPG key ID: 3FD715D87D7725E0
5 changed files with 56 additions and 6 deletions

0
config/lemonbar/.gitkeep Normal file
View file

View file

@ -15,7 +15,10 @@
modules = {
desktop = {
kitty.enable = true;
bspwm.enable = true;
bspwm = {
enable = true;
polybar.enable = true;
};
dunst.enable = true;
browsers = {
qutebrowser.enable = true;

View file

@ -4,6 +4,10 @@ let
cfg = config.modules.desktop.bspwm;
in
{
imports = [
./polybar
./lemonbar
];
options.modules.desktop.bspwm = {
enable = mkEnableOption false;
};
@ -48,7 +52,6 @@ in
};
};
users.users.sako.packages = with pkgs; [
polybar
rofi
# network
networkmanagerapplet
@ -74,10 +77,6 @@ in
sxhkd = {
source = ../../../config/sxhkd;
};
polybar = {
source = ../../../config/polybar;
recursive = true;
};
};
};
};

View file

@ -0,0 +1,24 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.bspwm.lemonbar;
in
{
options.modules.desktop.bspwm.lemonbar = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
lemonbar-xft
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
lemonbar = {
source = ../../../config/lemonbar;
recursive = true;
};
};
};
};
}

View file

@ -0,0 +1,24 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.bspwm.polybar;
in
{
options.modules.desktop.bspwm.polybar = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
polybar
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
polybar = {
source = ../../../config/polybar;
recursive = true;
};
};
};
};
}