use shell script to update
This commit is contained in:
parent
3af383ee59
commit
3288ce8fc7
2 changed files with 7 additions and 3 deletions
|
@ -111,8 +111,8 @@
|
|||
"interval": 3600,
|
||||
"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": "⏻",
|
||||
|
|
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