sway/waybar: add scratchpad module to panel

This commit is contained in:
Aly Raffauf 2024-05-09 13:59:53 -04:00
parent 8f3fd54044
commit 2b37856369
2 changed files with 14 additions and 2 deletions

View file

@ -84,11 +84,16 @@
#workspaces,
#mode,
#submap,
#scratchpad,
#tray,
#clock,
#hardware {
border-radius: 10;
background: rgba ${if config.alyraffauf.desktop.theme.colors.preferDark then "(35, 38, 52, 0.8);" else "(220, 224, 232, 0.8);"}
background: rgba ${
if config.alyraffauf.desktop.theme.colors.preferDark
then "(35, 38, 52, 0.8);"
else "(220, 224, 232, 0.8);"
}
margin: 5px 10px 0px 10px;
padding: 0px 10px 0px 10px;
}
@ -151,6 +156,13 @@
"sway/window" = {
"max-length" = 100;
};
"sway/scratchpad" = {
"format" = "{icon} {count}";
"show-empty" = false;
"format-icons" = ["" ""];
"tooltip" = true;
"tooltip-format" = "{app}: {title}";
};
"river/window" = {
"max-length" = 100;
};

View file

@ -39,7 +39,7 @@
programs.waybar = {
settings = {
mainBar = {
modules-left = ["sway/workspaces" "sway/mode"];
modules-left = ["sway/workspaces" "sway/scratchpad" "sway/mode" ];
};
};
};