Add i3, polybar and rofi config #i3
This commit is contained in:
29
polybar/.config/polybar/status.sh
Executable file
29
polybar/.config/polybar/status.sh
Executable 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
|
||||
Reference in New Issue
Block a user