Add i3, polybar and rofi config #i3

This commit is contained in:
Colin Powell
2019-01-15 23:15:05 -05:00
parent a8e022314b
commit 821b1c1c14
8 changed files with 714 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#!/bin/bash
case $1 in
mail)
n=$(notmuch count -s inbox)
[[ $n == 0 ]] &&
echo||
echo$n
;;
wifi)
d=($(nmcli -t -f type dev))
i=$(nmcli dev wifi | sed 1d | awk '/^\*/ { print $8 }')
[[ $d == wifi ]] &&
i=${i:-} || i=
echo $i
;;
weather)
{
curl -s wttr.in/spb?lang=ru | sed '7q; 1,2d' |
sed 's/\x1b\[[0-9;]*m//g'
date
} > ${0%.*}.weather
echo
;;
esac