diff --git a/.compton.conf b/.compton.conf index 1bdf172..cb2e84a 100644 --- a/.compton.conf +++ b/.compton.conf @@ -1,4 +1,4 @@ -shadow-opacity = 0.7; +shadow-opacity = 0; shadow = true; shadow-radius = 0; shadow-offset-x = -2; diff --git a/.config/i3/config b/.config/i3/config index df06bc9..a9f3578 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -184,8 +184,8 @@ bindsym $mod+r mode "resize" #} bar { font xft:DejaVu Sans Mono 8 - #status_command i3blocks -c ~/.i3/i3blocks.conf - status_command i3status + status_command i3blocks -c ~/.config/i3/i3blocks.conf + #status_command i3status colors { # separator #268bd2 background #111111 @@ -245,6 +245,7 @@ hide_edge_borders both #exec --no-startup-id xcompmgr -c -n exec --no-startup-id compton exec --no-startup-id pasystray +exec --no-startup-id /usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333" #exec --no-startup-id unclutter -idle 5 -jitter 20 #exec --no-startup-id xrdb ~/.Xresources #exec --no-startup-id redshift -l -18:33 diff --git a/.config/i3/i3blocks.conf b/.config/i3/i3blocks.conf new file mode 100644 index 0000000..7a36b54 --- /dev/null +++ b/.config/i3/i3blocks.conf @@ -0,0 +1,28 @@ +#[click] +#full_text=Click me! +#command=echo "Got clicked with button $button" +#color=#F79494 + +# Guess the weather hourly +#[weather] +#command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo +#interval=3600 +#color=#A4C2F4 + +# exchange rate(s) +[xrate] +command=~/.config/i3/scripts/xrate.py +interval=3600 +color=#A4C2F4 + +# Query my default IP address only on startup +[ip] +#command=hostname -i | awk '{ print "IP:" $1 }' +command=curl -s ipinfo.io | awk '/city/ { split($0, e, "\""); print e[4]; }' +interval=3600 +color=#91E78B + +# Update time every 5 seconds +[time] +command=date +%T +interval=5 diff --git a/.config/i3/scripts/xrate.py b/.config/i3/scripts/xrate.py new file mode 100755 index 0000000..f3b55bb --- /dev/null +++ b/.config/i3/scripts/xrate.py @@ -0,0 +1,5 @@ +#!/usr/bin/python3.8 + +import yfinance as yf +eurzar = yf.Ticker('EURZAR=X') +print(round(eurzar.history(period="1m").Close.to_list()[0], 4)) diff --git a/.lbdbrc b/.lbdbrc index 5b783aa..0d322fc 100644 --- a/.lbdbrc +++ b/.lbdbrc @@ -1,2 +1,3 @@ export VCF_FILES=~/.rolo/contacts.vcf -export METHODS="m_vcf" +export MUTTALIAS_FILES=~/MAIL/muttrc.aliases +export METHODS="m_vcf, m_muttalias" diff --git a/.newsboat/config b/.newsboat/config index 8f906f9..29f6fea 100644 --- a/.newsboat/config +++ b/.newsboat/config @@ -5,7 +5,7 @@ macro y set browser "~/.newsboat/scripts/enq.sh %u"; open-in-browser ; set brows # general settings auto-reload yes -max-items 50 +max-items 100 # unbind keys unbind-key ENTER diff --git a/.tmux.conf b/.tmux.conf index cb8c037..1a969c8 100755 --- a/.tmux.conf +++ b/.tmux.conf @@ -152,6 +152,7 @@ set -g status-justify centre # left # outside of Xorg, otherwise dwm statusbar shows these already # set -g status-right "" # ThG: conflicts with time display set -g status-left "" +set -g status-right "" if '[ -z "$DISPLAY" ]' 'set -g status-left "[#[fg=green] #H #[default]]"' if '[ -z "$DISPLAY" ]' 'set -g status-right "[ #[fg=magenta]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] ][ #[fg=cyan,bright]%a %Y-%m-%d %H:%M #[default]]"' if '[ -z "$DISPLAY" ]' 'set -g status-right-length 50'