wip
This commit is contained in:
@@ -9,7 +9,8 @@
|
|||||||
"sway/workspaces", "sway/mode"
|
"sway/workspaces", "sway/mode"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"privacy"
|
"privacy",
|
||||||
|
"custom/ssh-login"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/cider",
|
"custom/cider",
|
||||||
@@ -170,18 +171,6 @@
|
|||||||
},
|
},
|
||||||
"on-click": "pavucontrol",
|
"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": {
|
"custom/power": {
|
||||||
"format": "⏻ ",
|
"format": "⏻ ",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
@@ -194,6 +183,13 @@
|
|||||||
"hibernate": "systemctl hibernate",
|
"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",
|
"layer": "top",
|
||||||
@@ -205,14 +201,14 @@
|
|||||||
"network",
|
"network",
|
||||||
"clock",
|
"clock",
|
||||||
],
|
],
|
||||||
"network": {
|
"network": {
|
||||||
"format-ethernet": "{ipaddr}/{cidr}",
|
"format-ethernet": "{ipaddr}/{cidr}",
|
||||||
"format-disconnected": "disconnected"
|
"format-disconnected": "disconnected"
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"format": "{:%Y/%m/%d %H:%M:%S}",
|
"format": "{:%Y/%m/%d %H:%M:%S}",
|
||||||
"tooltip-format": "<big><tt>{calendar}</tt></big>",
|
"tooltip-format": "<big><tt>{calendar}</tt></big>",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user