Krolyxon
Commit c8091f5

Branches

Refs →

dotfiles-x11c8091f5

nb urls and sbar

Author
krolyxon
Date
2022-08-31 01:10 +0530
Parent
8ace9c3
Commit
c8091f57c6c9f8f3630d4ae3f508460d99bfd53b

+4 −9

3 files changed

  1. M .config/newsboat/urls +1 −1
  2. M .config/x11/xinitrc +1 −1
  3. M .local/bin/sbar +2 −7
M .config/newsboat/urls View
@@ -5,7 +5,7 @@ https://fasterthanli.me/index.xml "programming"
55 https://digdeeper.club/atom.xml
66 https://gnulinuxindia.org/index.xml
77 https://cedaei.com/index.xml
8−https://krolyxon.vern.cc/atom.xml
8+https://krolyxon.tildevarsh.in/atom.xml
99 https://lukesmith.xyz/rss.xml
1010 https://landchad.net/rss
1111 https://news.ycombinator.com/rss
M .config/x11/xinitrc View
@@ -1,10 +1,10 @@
11 #!/bin/sh
22
3−sbar &
43 #setwall &
54 xwallpaper --zoom ~/.local/share/wallpaper.jpg
65 xcompmgr &
76 xset r rate 300 50
7+sbar &
88 dunst &
99 sxhkd &
1010 # setxkbmap -option caps:swapescape
M .local/bin/sbar View
@@ -14,11 +14,7 @@ update_memory () {
1414 }
1515
1616 update_time () {
17− time="$(date "+[ %a %d %b ] [ %I:%M %P ]")"
18−}
19−
20−update_weather () {
21− weather=" $(curl -s "wttr.in?format=1" | awk '{printf $2}')"
17+ time="$(date "+[  %a %d %b ] [  %I:%M %P ]")"
2218 }
2319
2420 # update_bat () {
@@ -45,7 +41,7 @@ update_vol
4541
4642 display () {
4743 #printf "%s\n" " $event [$weather] [$memory $cpu] [$bat] [$backlight] [$vol] $time "
48− xsetroot -name " [ $weather ] [ $memory $cpu ] [ $vol ] $time "
44+ xsetroot -name " [ $vol ] [ $memory $cpu ] $time "
4945 }
5046
5147 # SIGNALLING
@@ -65,7 +61,6 @@ do
6561 [ $((sec % 5)) -eq 0 ] && update_cpu # update cpu every 15 seconds
6662 [ $((sec % 15)) -eq 0 ] && update_memory
6763 # [ $((sec % 60)) -eq 0 ] && update_bat
68− [ $((sec % 3600)) -eq 2 ] && update_weather
6964 #[ $((sec % 300)) -eq 1 ] && update_event
7065
7166 # how often the display updates ( 5 seconds )