modified: .config/aliasrc

modified:   .config/qutebrowser/autoconfig.yml
	deleted:    .local/bin/ducksearch
	modified:   .local/bin/statusbar/music
This commit is contained in:
2020-07-07 18:50:45 +02:00
parent 226d87c2b4
commit f2ee676f6f
4 changed files with 6 additions and 27 deletions

View File

@ -1,21 +0,0 @@
#!/bin/sh
# Gives a dmenu prompt to search DuckDuckGo.
# Without input, will open DuckDuckGo.com.
# URLs will be directly handed to the browser.
# Anything else, it search it.
browser=${BROWSER:-firefox}
pgrep -x dmenu && exit
choice=$(echo "🦆" | dmenu -i -p "Search DuckDuckGo:") || exit 1
if [ "$choice" = "🦆" ]; then
$browser "https://duckduckgo.com"
else
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
$browser "$choice"
else
string="$(echo $choice | sed 's/\ /+/g')"
$browser "https://duckduckgo.com/?q=$string&t=ffab&atb=v1-1"
fi
fi

View File

@ -1,10 +1,9 @@
#!/bin/sh
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
echo ""
exit
fi
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
#echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
exit
fi