From c8091f57c6c9f8f3630d4ae3f508460d99bfd53b Mon Sep 17 00:00:00 2001 From: krolyxon Date: Wed, 31 Aug 2022 01:10:15 +0530 Subject: [PATCH] nb urls and sbar --- .config/newsboat/urls | 2 +- .config/x11/xinitrc | 2 +- .local/bin/sbar | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.config/newsboat/urls b/.config/newsboat/urls index f45dca6..ec8552e 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -5,7 +5,7 @@ https://fasterthanli.me/index.xml "programming" https://digdeeper.club/atom.xml https://gnulinuxindia.org/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://landchad.net/rss https://news.ycombinator.com/rss diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 1806781..f523982 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -1,10 +1,10 @@ #!/bin/sh -sbar & #setwall & xwallpaper --zoom ~/.local/share/wallpaper.jpg xcompmgr & xset r rate 300 50 +sbar & dunst & sxhkd & # setxkbmap -option caps:swapescape diff --git a/.local/bin/sbar b/.local/bin/sbar index 3a2b109..de324e4 100755 --- a/.local/bin/sbar +++ b/.local/bin/sbar @@ -14,11 +14,7 @@ update_memory () { } update_time () { - time="$(date "+[ %a %d %b ] [ %I:%M %P ]")" -} - -update_weather () { - weather=" $(curl -s "wttr.in?format=1" | awk '{printf $2}')" + time="$(date "+[  %a %d %b ] [  %I:%M %P ]")" } # update_bat () { @@ -45,7 +41,7 @@ update_vol display () { #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 @@ -65,7 +61,6 @@ do [ $((sec % 5)) -eq 0 ] && update_cpu # update cpu every 15 seconds [ $((sec % 15)) -eq 0 ] && update_memory # [ $((sec % 60)) -eq 0 ] && update_bat - [ $((sec % 3600)) -eq 2 ] && update_weather #[ $((sec % 300)) -eq 1 ] && update_event # how often the display updates ( 5 seconds )