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