mirror of
https://github.com/wlinator/dotfiles.git
synced 2024-10-02 17:03:13 +00:00
17 lines
338 B
Bash
Executable file
17 lines
338 B
Bash
Executable file
#!/bin/bash
|
|
# this script exists because running 'checkupdates' in
|
|
# polybar directly will fail when ran on multiple monitors
|
|
# with the same interval.
|
|
# !!!
|
|
# you need 'pacman-contrib'
|
|
# !!!
|
|
|
|
cd ~/.config/polybar/
|
|
|
|
{ # try
|
|
checkupdates | wc -l > updates_list.txt;
|
|
tail -1 updates_list.txt;
|
|
} || { # catch
|
|
tail -1 updates_list.txt;
|
|
}
|
|
|