nb urls and sbar

This commit is contained in:
krolyxon 2022-08-31 01:10:15 +05:30
parent 8ace9c34bb
commit c8091f57c6
3 changed files with 4 additions and 9 deletions

View File

@ -5,7 +5,7 @@ https://fasterthanli.me/index.xml "programming"
https://digdeeper.club/atom.xml https://digdeeper.club/atom.xml
https://gnulinuxindia.org/index.xml https://gnulinuxindia.org/index.xml
https://cedaei.com/index.xml https://cedaei.com/index.xml
https://krolyxon.vern.cc/atom.xml https://krolyxon.tildevarsh.in/atom.xml
https://lukesmith.xyz/rss.xml https://lukesmith.xyz/rss.xml
https://landchad.net/rss https://landchad.net/rss
https://news.ycombinator.com/rss https://news.ycombinator.com/rss

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
sbar &
#setwall & #setwall &
xwallpaper --zoom ~/.local/share/wallpaper.jpg xwallpaper --zoom ~/.local/share/wallpaper.jpg
xcompmgr & xcompmgr &
xset r rate 300 50 xset r rate 300 50
sbar &
dunst & dunst &
sxhkd & sxhkd &
# setxkbmap -option caps:swapescape # setxkbmap -option caps:swapescape

View File

@ -14,11 +14,7 @@ update_memory () {
} }
update_time () { update_time () {
time="$(date "+[ %a %d %b ] [ %I:%M %P ]")" time="$(date "+[  %a %d %b ] [  %I:%M %P ]")"
}
update_weather () {
weather=" $(curl -s "wttr.in?format=1" | awk '{printf $2}')"
} }
# update_bat () { # update_bat () {
@ -45,7 +41,7 @@ update_vol
display () { display () {
#printf "%s\n" " $event [$weather] [$memory $cpu] [$bat] [$backlight] [$vol] $time " #printf "%s\n" " $event [$weather] [$memory $cpu] [$bat] [$backlight] [$vol] $time "
xsetroot -name " [ $weather ] [ $memory $cpu ] [ $vol ] $time " xsetroot -name " [ $vol ] [ $memory $cpu ] $time "
} }
# SIGNALLING # SIGNALLING
@ -65,7 +61,6 @@ do
[ $((sec % 5)) -eq 0 ] && update_cpu # update cpu every 15 seconds [ $((sec % 5)) -eq 0 ] && update_cpu # update cpu every 15 seconds
[ $((sec % 15)) -eq 0 ] && update_memory [ $((sec % 15)) -eq 0 ] && update_memory
# [ $((sec % 60)) -eq 0 ] && update_bat # [ $((sec % 60)) -eq 0 ] && update_bat
[ $((sec % 3600)) -eq 2 ] && update_weather
#[ $((sec % 300)) -eq 1 ] && update_event #[ $((sec % 300)) -eq 1 ] && update_event
# how often the display updates ( 5 seconds ) # how often the display updates ( 5 seconds )