fix issue with vpn waybar button

This commit is contained in:
2025-05-28 11:53:48 +02:00
parent 341472929b
commit 1b9ed79067
5 changed files with 2 additions and 16 deletions

View File

@ -7,10 +7,6 @@ function status_wireguard() {
return $?
}
function askpass() {
rofi -dmenu -password -no-fixed-num-lines -p "Sudo password"
}
status_wireguard && \
SUDO_ASKPASS=~/.config/waybar/scripts/askpass.sh sudo -A systemctl stop $SERVICE_NAME || \
SUDO_ASKPASS=~/.config/waybar/scripts/askpass.sh sudo -A systemctl start $SERVICE_NAME