Add power menu module

This commit is contained in:
Sravan Balaji
2024-09-29 20:24:33 -04:00
parent 28f8d76316
commit d53e47220f
3 changed files with 43 additions and 8 deletions

View File

@@ -45,6 +45,7 @@
- [[#battery][battery]] - [[#battery][battery]]
- [[#cpu][cpu]] - [[#cpu][cpu]]
- [[#clock][clock]] - [[#clock][clock]]
- [[#custompower-menu][custom/power-menu]]
- [[#dwltags][dwl/tags]] - [[#dwltags][dwl/tags]]
- [[#disk][disk]] - [[#disk][disk]]
- [[#memory][memory]] - [[#memory][memory]]
@@ -527,6 +528,7 @@ sleep 5
"fixed-center": true, "fixed-center": true,
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"custom/power-menu",
"dwl/tags", "dwl/tags",
], ],
"modules-center": [ "modules-center": [
@@ -623,6 +625,27 @@ window#waybar {
} }
#+END_SRC #+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 *** dwl/tags
**** Configuration **** Configuration
@@ -639,8 +662,8 @@ window#waybar {
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#tags { #tags {
color: #f8f8f2;
background: #44475a; background: #44475a;
color: #f8f8f2;
} }
#tags button { #tags button {
margin-left: 3px; margin-left: 3px;
@@ -678,8 +701,8 @@ window#waybar {
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#disk { #disk {
color: #282a36;
background: #ff79c6; background: #ff79c6;
color: #282a36;
} }
#+END_SRC #+END_SRC
@@ -700,8 +723,8 @@ window#waybar {
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#memory { #memory {
color: #282a36;
background: #8be9fd; background: #8be9fd;
color: #282a36;
} }
#+END_SRC #+END_SRC
@@ -735,8 +758,8 @@ window#waybar {
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#pulseaudio { #pulseaudio {
color: #282a36;
background: #ff5555; background: #ff5555;
color: #282a36;
} }
#+END_SRC #+END_SRC

View File

@@ -13,6 +13,7 @@
"fixed-center": true, "fixed-center": true,
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"custom/power-menu",
"dwl/tags", "dwl/tags",
], ],
"modules-center": [ "modules-center": [
@@ -46,6 +47,12 @@
"format": "󰥔 {:%H:%M}" "format": "󰥔 {:%H:%M}"
}, },
"custom/power-menu": {
"format": "󰀻",
"on-click": "rofi -show combi",
"on-click-right": "~/.scripts/control-center.sh --rofi",
},
"dwl/tags": { "dwl/tags": {
"num-tags": 9, "num-tags": 9,
"tag-labels": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ], "tag-labels": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ],

View File

@@ -24,9 +24,14 @@ window#waybar {
color: #282a36; color: #282a36;
} }
#custom-power-menu {
background: #8be9fd;
color: #282a36;
}
#tags { #tags {
color: #f8f8f2;
background: #44475a; background: #44475a;
color: #f8f8f2;
} }
#tags button { #tags button {
margin-left: 3px; margin-left: 3px;
@@ -47,18 +52,18 @@ window#waybar {
} }
#disk { #disk {
color: #282a36;
background: #ff79c6; background: #ff79c6;
color: #282a36;
} }
#memory { #memory {
color: #282a36;
background: #8be9fd; background: #8be9fd;
color: #282a36;
} }
#pulseaudio { #pulseaudio {
color: #282a36;
background: #ff5555; background: #ff5555;
color: #282a36;
} }
#tray { #tray {