summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/newsboat/urls2
-rw-r--r--.config/x11/xinitrc2
-rwxr-xr-x.local/bin/sbar9
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 )