added waybar config
This commit is contained in:
parent
1a95061a21
commit
2dca4bf209
1 changed files with 20 additions and 19 deletions
|
@ -106,30 +106,31 @@
|
||||||
)
|
)
|
||||||
10)
|
10)
|
||||||
);
|
);
|
||||||
exec-once = waybar
|
# exec-once = waybar;
|
||||||
};
|
};
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 30;
|
height = 30;
|
||||||
output = [
|
output = [
|
||||||
"eDP-1"
|
"eDP-1"
|
||||||
"HDMI-A-1"
|
"HDMI-A-1"
|
||||||
];
|
];
|
||||||
modules-left = [ "hyprland/workspaces" "hyprland/mode" "wlr/taskbar" ];
|
modules-left = [ "hyprland/workspaces" "hyprland/mode" "wlr/taskbar" ];
|
||||||
modules-center = [ "hyprland/window" "custom/hello-from-waybar" ];
|
modules-center = [ "hyprland/window" "custom/hello-from-waybar" ];
|
||||||
modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];
|
modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];
|
||||||
|
|
||||||
"custom/hello-from-waybar" = {
|
"custom/hello-from-waybar" = {
|
||||||
format = "hello {}";
|
format = "hello {}";
|
||||||
max-length = 40;
|
max-length = 40;
|
||||||
interval = "once";
|
interval = "once";
|
||||||
exec = pkgs.writeShellScript "hello-from-waybar" ''
|
exec = pkgs.writeShellScript "hello-from-waybar" ''
|
||||||
echo "from within waybar"
|
echo "from within waybar"
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -149,6 +150,6 @@
|
||||||
chars = "\\u000c";
|
chars = "\\u000c";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue