2024-09-07 13:39:40 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
launcher = "${pkgs.xfce4-appfinder}/bin/xfce4-appfinder --disable-server";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
|
|
|
position = "bottom";
|
2024-09-29 13:35:31 +02:00
|
|
|
modules-left = [ "custom/start" "wlr/taskbar" ];
|
2024-09-07 13:39:40 +02:00
|
|
|
|
|
|
|
"custom/start" = {
|
|
|
|
format = " Start";
|
|
|
|
on-click = "xfce4-appfinder --disable-server";
|
|
|
|
};
|
|
|
|
|
2024-09-26 23:12:57 +02:00
|
|
|
modules-right = [ "tray" "backlight" "battery" "pulseaudio" "clock" ];
|
2024-09-07 13:39:40 +02:00
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
on-click = "pavucontrol";
|
2024-09-26 23:12:57 +02:00
|
|
|
format = " "; #styling only
|
|
|
|
states = {
|
|
|
|
low = 1;
|
|
|
|
medium = 40;
|
|
|
|
high = 75;
|
|
|
|
};
|
2024-09-07 13:39:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
battery = {
|
2024-09-26 23:12:57 +02:00
|
|
|
format = " "; # styling only
|
|
|
|
interval = 10;
|
|
|
|
states = {
|
|
|
|
full = 100;
|
|
|
|
good = 85;
|
|
|
|
medium = 60;
|
|
|
|
low = 40;
|
|
|
|
warning = 20;
|
|
|
|
critical = 10;
|
|
|
|
};
|
2024-09-07 13:39:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
backlight = {
|
2024-09-26 23:12:57 +02:00
|
|
|
format = "{percent}%"; # styling only
|
2024-09-07 13:39:40 +02:00
|
|
|
on-scroll-up = "light -A 1";
|
|
|
|
on-scroll-down = "light -U 1";
|
|
|
|
};
|
|
|
|
|
|
|
|
clock.format-alt = "{:%a, %d. %b %H:%M}";
|
|
|
|
|
|
|
|
tray = {
|
|
|
|
icon-size = 20;
|
|
|
|
spacing = 10;
|
|
|
|
};
|
2024-09-29 13:35:31 +02:00
|
|
|
|
|
|
|
"wlr/taskbar" = {
|
|
|
|
format = "{icon} {title}";
|
|
|
|
on-click = "activate";
|
|
|
|
rewrite = {
|
|
|
|
# Truncate any format over 16 characters.
|
|
|
|
"^(.{16}).+$" = "$1…";
|
|
|
|
};
|
|
|
|
};
|
2024-09-07 13:39:40 +02:00
|
|
|
};
|
|
|
|
}
|