From 272f4da363249034acfde3844f634f9a4c4cf8bd Mon Sep 17 00:00:00 2001 From: Josh Fabean Date: Tue, 27 Oct 2020 16:50:50 -0500 Subject: [PATCH] added power to waybar --- .config/waybar/config | 9 ++++++++- .config/waybar/style.css | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index d2eff72..77627df 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -25,7 +25,8 @@ "battery", "battery#bat2", "clock", - "tray" + "tray", + "custom/power" ], // Modules configuration // "sway/workspaces": { @@ -210,5 +211,11 @@ "custom/playerctl": { "format": "{}", "exec": "" + }, + "custom/power": { + "format": "⏻", + "on-click": "nwgbar -o 0.2", + "escape": true, + "tooltip": false } } diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 1c83b15..de8563e 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -143,6 +143,10 @@ label:focus { #custom-media.custom-vlc { } +#custom-power { + padding-right: 15px; + padding-top: 3px; +} #temperature { }