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]]
- [[#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

View File

@@ -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": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ],

View File

@@ -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 {