hyprland + waybar + GTK (Catpuccin)
This commit is contained in:
@@ -9,16 +9,17 @@ in
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
height = 20;
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
margin-top = 0;
|
||||
margin-left = 0;
|
||||
margin-bottom = 0;
|
||||
padding-bottom = 0;
|
||||
margin-right = 0;
|
||||
spacing = 10;
|
||||
modules-left = [
|
||||
bar = {
|
||||
height = 20;
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
margin-top = 0;
|
||||
margin-left = 0;
|
||||
margin-bottom = 0;
|
||||
padding-bottom = 0;
|
||||
margin-right = 0;
|
||||
spacing = 10;
|
||||
modules-left = [
|
||||
"cpu"
|
||||
"memory"
|
||||
"wireplumber"
|
||||
@@ -26,91 +27,92 @@ in
|
||||
"battery"
|
||||
"network"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-center = [
|
||||
];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
modules-right = [
|
||||
];
|
||||
modules-right = [
|
||||
"custom/mode"
|
||||
"custom/ctimeremaining"
|
||||
"custom/cclock"
|
||||
"tray"
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
on-click = "activate";
|
||||
format = "{name}";
|
||||
all-outputs = false;
|
||||
active-only = false;
|
||||
};
|
||||
"hyprland/window" = {
|
||||
};
|
||||
"hyprland/window" = {
|
||||
format = "{}";
|
||||
separate-outputs = true;
|
||||
};
|
||||
"custom/cclock" = {
|
||||
};
|
||||
"custom/cclock" = {
|
||||
exec = "/home/nx2/scripts/cclock.sh";
|
||||
restart-interval = 60;
|
||||
};
|
||||
"custom/ctimeremaining" = {
|
||||
};
|
||||
"custom/ctimeremaining" = {
|
||||
exec = "python /home/nx2/scripts/NxGCalEvent/get-remaining-time.py";
|
||||
restart-interval = 60;
|
||||
};
|
||||
"custom/mode" = {
|
||||
};
|
||||
"custom/mode" = {
|
||||
exec = "cat /tmp/waybar-mode";
|
||||
interval = "once";
|
||||
signal = 8;
|
||||
};
|
||||
};
|
||||
|
||||
cpu = {
|
||||
cpu = {
|
||||
interval = 1;
|
||||
format = " {}%";
|
||||
max-length = 10;
|
||||
};
|
||||
memory = {
|
||||
};
|
||||
memory = {
|
||||
interval = 5;
|
||||
format = " {avail:.0f}G free";
|
||||
};
|
||||
battery = {
|
||||
};
|
||||
battery = {
|
||||
interval = 60;
|
||||
tooltip = false;
|
||||
format = "{icon} {capacity}%";
|
||||
states = {
|
||||
warning = 25;
|
||||
critical = 10;
|
||||
warning = 25;
|
||||
critical = 10;
|
||||
};
|
||||
format-icons = [
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
];
|
||||
format-charging = "{icon} +{capacity}%";
|
||||
format-plugged = "{icon} P{capacity}%";
|
||||
format-full = "{icon} F{capacity}%";
|
||||
};
|
||||
backlight = {
|
||||
};
|
||||
backlight = {
|
||||
device = "DP-1";
|
||||
format = "{icon} {percent}%";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
};
|
||||
network = {
|
||||
};
|
||||
network = {
|
||||
format-wifi = "直 {essid}";
|
||||
format-ethernet = " Wired";
|
||||
format-disconnected = "睊 Disconnected";
|
||||
};
|
||||
wireplumber = {
|
||||
};
|
||||
wireplumber = {
|
||||
format = " {volume}%";
|
||||
format-muted = "婢 Muted";
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
@@ -187,4 +189,4 @@ in
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user