Browse Source

added power to waybar

master
Josh Fabean 3 years ago
parent
commit
272f4da363
2 changed files with 12 additions and 1 deletions
  1. +8
    -1
      .config/waybar/config
  2. +4
    -0
      .config/waybar/style.css

+ 8
- 1
.config/waybar/config View File

@ -25,7 +25,8 @@
"battery", "battery",
"battery#bat2", "battery#bat2",
"clock", "clock",
"tray"
"tray",
"custom/power"
], ],
// Modules configuration // Modules configuration
// "sway/workspaces": { // "sway/workspaces": {
@ -210,5 +211,11 @@
"custom/playerctl": { "custom/playerctl": {
"format": "{}", "format": "{}",
"exec": "" "exec": ""
},
"custom/power": {
"format": "⏻",
"on-click": "nwgbar -o 0.2",
"escape": true,
"tooltip": false
} }
} }

+ 4
- 0
.config/waybar/style.css View File

@ -143,6 +143,10 @@ label:focus {
#custom-media.custom-vlc { #custom-media.custom-vlc {
} }
#custom-power {
padding-right: 15px;
padding-top: 3px;
}
#temperature { #temperature {
} }


Loading…
Cancel
Save