This commit is contained in:
2026-02-11 19:02:22 +01:00
parent e1133cb633
commit afadeb9cb0

View File

@@ -9,7 +9,8 @@
"sway/workspaces", "sway/mode"
],
"modules-center": [
"privacy"
"privacy",
"custom/ssh-login"
],
"modules-right": [
"custom/cider",
@@ -170,18 +171,6 @@
},
"on-click": "pavucontrol",
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜",
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format": "⏻ ",
"tooltip": false,
@@ -194,6 +183,13 @@
"hibernate": "systemctl hibernate",
},
},
"custom/ssh-login": {
"format": "{}",
"interval": 1,
// "exec-if": "who",
"exec": "who | awk '{ print $2 }'",
"on-click": "pkill -9 -t $(who | awk '{ print $2 }')",
},
},
{
"layer": "top",