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

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

View file

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