use shell script to update

This commit is contained in:
kuoi 2022-08-22 10:14:34 +01:00
parent 3af383ee59
commit 3288ce8fc7
2 changed files with 7 additions and 3 deletions

View File

@ -109,10 +109,10 @@
"custom/update":{
"format": "{} ",
"interval": 3600,
"exec": "checkupdates | wc -l",
"exec": "checkupdates | wc -l",
"exec-if": "exit 0",
"on-click": "tilix -e 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar",
"signal": 8
"on-click": "tilix -e '/home/guoyi/.config/waybar/update.sh'",
"signal": 8
},
"custom/power":{
"format": "⏻",

View File

@ -0,0 +1,4 @@
#!/bin/sh
sudo pacman -Syu
echo Done - Press Enter to exit
read _\