mirror of https://github.com/tiyn/dotfiles
parent
b14a6f31cb
commit
a51b50849f
@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Gives a dmenu prompt to search Startpage.
|
||||
# Without input, will open Startpage.com.
|
||||
# URLs will be directly handed to the browser.
|
||||
# Anything else, it search it.
|
||||
# original by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
|
||||
|
||||
pgrep -x dmenu && exit
|
||||
|
||||
choice=$(echo "Startpage" | dmenu -i -p "Search Startpage:") || exit 1
|
||||
|
||||
if [ "$choice" = "Startpage" ]; then
|
||||
$BROWSER "https://startpage.com"
|
||||
else
|
||||
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
|
||||
$BROWSER "$choice"
|
||||
else
|
||||
$BROWSER "https://startpage.com/do/search/?q=$choice"
|
||||
fi
|
||||
fi
|
@ -1,15 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$(pulsemixer --get-mute)" = "1" ] && printf "\\n" && exit
|
||||
|
||||
vol=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -lt "30" ]; then
|
||||
icon=""
|
||||
if [ "$vol" -eq "0" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
else
|
||||
icon=""
|
||||
fi
|
||||
|
||||
printf "%s %s\\n" "$vol" "$icon"
|
||||
[ "$(pulsemixer --get-mute)" = "1" ] && icon="" && vol="M"
|
||||
|
||||
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
|
||||
mic=""
|
||||
else
|
||||
mic=""
|
||||
fi
|
||||
|
||||
printf "%s %s %s\\n" "$vol" "$icon" "$mic"
|
||||
|
Loading…
Reference in new issue