waybar: Make output configurable
This commit is contained in:
parent
df9596b2f3
commit
ee53170351
@ -46,7 +46,10 @@
|
||||
git.enable = true;
|
||||
#gnome-terminal.enable = true;
|
||||
tmux.enable = true;
|
||||
waybar.enable = true;
|
||||
waybar = {
|
||||
enable = true;
|
||||
output = "DP-2";
|
||||
};
|
||||
xournalpp.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
@ -5,6 +5,11 @@ let
|
||||
in {
|
||||
options.ptw.programs.waybar = {
|
||||
enable = lib.mkEnableOption "Enable and configure waybar using HomeManager";
|
||||
output = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
example = "DP-2";
|
||||
description = "The output waybar should appear on";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -15,7 +20,7 @@ in {
|
||||
style = builtins.readFile ./style.css;
|
||||
settings = [
|
||||
{
|
||||
output = [ "DP-2" ];
|
||||
output = [ "${cfg.output}" ];
|
||||
layer = "bottom";
|
||||
position = "left";
|
||||
gtk-layer-shell = true;
|
||||
|
Loading…
Reference in New Issue
Block a user