Merge branch 'master' of github.com:LukeSmithxyz/voidrice

This commit is contained in:
Luke Smith 2020-03-13 12:33:30 -04:00
commit a2e0d2441b
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
3 changed files with 15 additions and 16 deletions

View file

@ -70,5 +70,5 @@ map <c-r> reload
map <enter> shell map <enter> shell
map x $$f map x $$f
map X !$f map X !$f
map o &mimeopen $f map o &mimeopen "$f"
map O $mimeopen --ask $f map O $mimeopen --ask "$f"

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Give a battery name (e.g. BAT0) as an argument. # Give a battery name (Check the battery name from sys/class/power_supply/ e.g. BAT0 or BAT1 and pass it as an argument.
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
3) pgrep -x dunst >/dev/null && notify-send "🔋 Battery module" "🔋: discharging 3) pgrep -x dunst >/dev/null && notify-send "🔋 Battery module" "🔋: discharging

View file

@ -1,17 +1,16 @@
#!/bin/sh #!/bin/sh
mnphs=$(pom | grep -io 'new\|waxing cresent\|first quarter\|waxing gibbous\|full\|waning gibbous\|last quarter\|waning cresent' | grep -m1 '.') mnphs=$(pom $1 | grep -o 'New\|Waxing Crescent\|First Quarter\|Waxing Gibbous\|Full\|Waning Gibbous\|Last Quarter\|Waning Crescent' | grep -m1 '.')
prcnt=$(pom | grep -o '..%') prcnt=$(pom $1 | grep -o '[[:digit:]]*%')
case "$mnphs" in
case $mnphs in "New") icon="🌑" prcnt="0%" ;;
"New") icon="🌑" ;; "Waxing Crescent") icon="🌒" ;;
"Waxing Cresent") icon="🌒" ;; "First Quarter") icon="🌓" prcnt="50%" ;;
"First Quarter") icon="🌓" ;;
"Waxing Gibbous") icon="🌔" ;; "Waxing Gibbous") icon="🌔" ;;
"Full") icon="🌕" ;; "Full") icon="🌕" prcnt="100%" ;;
"Waning Gibbous") icon="🌖" ;; "Waning Gibbous") icon="🌖" ;;
"Last Quarter") icon="🌗" ;; "Last Quarter") icon="🌗" prcnt="50%" ;;
"Waning Cresent") icon="🌘" ;; "Waning Crescent") icon="🌘" ;;
*) echo errorrrr ;; *) echo errorrrr ;;
esac esac