fix: alias, arch-updates (polybar)
add: vim mergetool
This commit is contained in:
parent
f37f66248f
commit
544bb9ed2c
7 changed files with 35 additions and 16 deletions
|
@ -13,13 +13,13 @@
|
|||
[module/arch-updates]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/arch-updates.sh
|
||||
interval = 60
|
||||
interval = 300
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #1794D1
|
||||
format = <label>
|
||||
|
||||
click-left = alacritty -e sh -c "sudo pacman -Su; read" &
|
||||
click-left = alacritty -e sh -c "yay -Syu && echo DONE || echo ERROR; read" &
|
||||
|
||||
label = %output%
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkg_updates_count=$(pacman -Qu | wc -l)
|
||||
pkg_updates_count=$(checkupdates 2> /dev/null | wc -l)
|
||||
if [ $((pkg_updates_count)) -gt 0 ]
|
||||
then
|
||||
echo $pkg_updates_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue