use shell script to update
This commit is contained in:
parent
3af383ee59
commit
3288ce8fc7
2 changed files with 7 additions and 3 deletions
|
@ -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":{
|
||||||
|
|
4
dot_config/waybar/executable_update.sh
Normal file
4
dot_config/waybar/executable_update.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sudo pacman -Syu
|
||||||
|
echo Done - Press Enter to exit
|
||||||
|
read _\
|
Loading…
Reference in a new issue