diff --git a/README.org b/README.org index 318414b..d37bcab 100644 --- a/README.org +++ b/README.org @@ -45,6 +45,7 @@ - [[#battery][battery]] - [[#cpu][cpu]] - [[#clock][clock]] + - [[#custompower-menu][custom/power-menu]] - [[#dwltags][dwl/tags]] - [[#disk][disk]] - [[#memory][memory]] @@ -527,6 +528,7 @@ sleep 5 "fixed-center": true, "reload_style_on_change": true, "modules-left": [ + "custom/power-menu", "dwl/tags", ], "modules-center": [ @@ -623,6 +625,27 @@ window#waybar { } #+END_SRC +*** custom/power-menu + +**** Configuration + +#+BEGIN_SRC jsonc :tangle waybar/config.jsonc + "custom/power-menu": { + "format": "󰀻", + "on-click": "rofi -show combi", + "on-click-right": "~/.scripts/control-center.sh --rofi", + }, +#+END_SRC + +**** Styling + +#+BEGIN_SRC css :tangle waybar/style.css +#custom-power-menu { + background: #8be9fd; + color: #282a36; +} +#+END_SRC + *** dwl/tags **** Configuration @@ -639,8 +662,8 @@ window#waybar { #+BEGIN_SRC css :tangle waybar/style.css #tags { - color: #f8f8f2; background: #44475a; + color: #f8f8f2; } #tags button { margin-left: 3px; @@ -678,8 +701,8 @@ window#waybar { #+BEGIN_SRC css :tangle waybar/style.css #disk { - color: #282a36; background: #ff79c6; + color: #282a36; } #+END_SRC @@ -700,8 +723,8 @@ window#waybar { #+BEGIN_SRC css :tangle waybar/style.css #memory { - color: #282a36; background: #8be9fd; + color: #282a36; } #+END_SRC @@ -735,8 +758,8 @@ window#waybar { #+BEGIN_SRC css :tangle waybar/style.css #pulseaudio { - color: #282a36; background: #ff5555; + color: #282a36; } #+END_SRC diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 4dc7df4..0cb2cf0 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -13,6 +13,7 @@ "fixed-center": true, "reload_style_on_change": true, "modules-left": [ + "custom/power-menu", "dwl/tags", ], "modules-center": [ @@ -46,6 +47,12 @@ "format": "󰥔 {:%H:%M}" }, + "custom/power-menu": { + "format": "󰀻", + "on-click": "rofi -show combi", + "on-click-right": "~/.scripts/control-center.sh --rofi", + }, + "dwl/tags": { "num-tags": 9, "tag-labels": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ], diff --git a/waybar/style.css b/waybar/style.css index a6cb024..60ea491 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -24,9 +24,14 @@ window#waybar { color: #282a36; } +#custom-power-menu { + background: #8be9fd; + color: #282a36; +} + #tags { - color: #f8f8f2; background: #44475a; + color: #f8f8f2; } #tags button { margin-left: 3px; @@ -47,18 +52,18 @@ window#waybar { } #disk { - color: #282a36; background: #ff79c6; + color: #282a36; } #memory { - color: #282a36; background: #8be9fd; + color: #282a36; } #pulseaudio { - color: #282a36; background: #ff5555; + color: #282a36; } #tray {