2023-06-21 08:11:21 +00:00
|
|
|
{
|
2023-06-25 23:12:37 +00:00
|
|
|
layer = "top";
|
2023-06-21 08:11:21 +00:00
|
|
|
position = "top";
|
|
|
|
height = 32;
|
|
|
|
|
2023-06-25 23:12:37 +00:00
|
|
|
modules-left = [
|
2023-06-21 08:11:21 +00:00
|
|
|
"custom/launcher"
|
|
|
|
"hyprland/window"
|
|
|
|
];
|
2023-06-25 23:12:37 +00:00
|
|
|
modules-center = [ "wlr/workspaces" ];
|
|
|
|
modules-right = [
|
|
|
|
"backlight"
|
|
|
|
"pulseaudio" # use pipewire, test needed.
|
|
|
|
"cpu"
|
|
|
|
"memory"
|
|
|
|
"tray"
|
|
|
|
"battery"
|
|
|
|
"clock"
|
2023-06-21 08:11:21 +00:00
|
|
|
"custom/power"
|
|
|
|
];
|
2023-06-25 23:12:37 +00:00
|
|
|
|
|
|
|
pulseaudio = {
|
|
|
|
tooltip = false;
|
|
|
|
scroll-step = 5;
|
|
|
|
format = "{icon} {volume}%";
|
|
|
|
format-muted = "{icon} {volume}%";
|
|
|
|
on-click ="pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
|
|
|
format-icons = {
|
|
|
|
default = ["" "" ""];
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 08:11:21 +00:00
|
|
|
|
|
|
|
"wlr/workspaces" = {
|
|
|
|
format = "{icon}";
|
|
|
|
on-click = "activate";
|
|
|
|
format-icons = {
|
|
|
|
"1" = "";
|
|
|
|
"2" = "";
|
|
|
|
"3" = "";
|
|
|
|
"4" = "";
|
|
|
|
"5" = "";
|
|
|
|
urgent = "";
|
|
|
|
active = "";
|
|
|
|
default = "";
|
|
|
|
};
|
|
|
|
sort-by-number = true;
|
|
|
|
};
|
|
|
|
|
2023-06-25 23:12:37 +00:00
|
|
|
network = {
|
|
|
|
tooltip = false;
|
|
|
|
format-wifi = " {essid}";
|
|
|
|
format-ethernet = "";
|
|
|
|
};
|
2023-06-21 08:11:21 +00:00
|
|
|
|
2023-06-25 23:12:37 +00:00
|
|
|
backlight = {
|
|
|
|
tooltip = false;
|
|
|
|
format = " {}%";
|
|
|
|
interval = 1;
|
2023-06-21 08:11:21 +00:00
|
|
|
on-scroll-up = "light -A 5";
|
2023-06-25 23:12:37 +00:00
|
|
|
on-scroll-down = "light -U 5";
|
|
|
|
};
|
2023-06-21 08:11:21 +00:00
|
|
|
|
|
|
|
battery = {
|
|
|
|
states = {
|
|
|
|
good = 95;
|
|
|
|
warning = 30;
|
2023-06-25 23:12:37 +00:00
|
|
|
critical = 20;
|
2023-06-21 08:11:21 +00:00
|
|
|
};
|
|
|
|
format = "{icon} {capacity}%";
|
|
|
|
format-charging = " {capacity}%";
|
|
|
|
format-plugged = " {capacity}%";
|
|
|
|
format-alt = "{time} {icon}";
|
2023-06-25 23:12:37 +00:00
|
|
|
format-icons = ["" "" "" "" ""];
|
2023-06-21 08:11:21 +00:00
|
|
|
};
|
|
|
|
|
2023-06-25 23:12:37 +00:00
|
|
|
tray = {
|
|
|
|
icon-size = 16;
|
|
|
|
spacing = 10;
|
|
|
|
};
|
2023-06-21 08:11:21 +00:00
|
|
|
|
|
|
|
clock = {
|
|
|
|
format = "{ = %I =%M %p %d/%m/%Y}";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu = {
|
|
|
|
interval = 15;
|
|
|
|
format = " {}%";
|
|
|
|
max-length = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
memory = {
|
|
|
|
interval = 30;
|
|
|
|
format = " {}%";
|
|
|
|
max-length = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
"custom/launcher" ={
|
|
|
|
format = " ";
|
|
|
|
on-click = "rofi -show drun";
|
|
|
|
on-click-right = "killall rofi";
|
|
|
|
};
|
|
|
|
|
|
|
|
"custom/power" ={
|
|
|
|
format = " ";
|
|
|
|
on-click = "bash ~/.config/rofi/leave/leave.sh";
|
|
|
|
};
|
|
|
|
}
|