1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

general updates

This commit is contained in:
tiynger
2019-09-11 12:11:37 +02:00
parent 796d19be19
commit c8c4dc4e92
6 changed files with 37 additions and 140 deletions

View File

@@ -10,11 +10,11 @@ pgrep -x dmenu && exit
choice=$(echo "🦆" | dmenu -i -p "Search DuckDuckGo:") || exit 1
if [ "$choice" = "🦆" ]; then
$browser "https://duckduckgo.com"
$RTV_BROWSER "https://duckduckgo.com"
else
if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
$browser "$choice"
$RTV_BROWSER "$choice"
else
$browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
$RTV_BROWSER "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
fi
fi

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# Toggle touchpad. Requires xf86-input-synaptics.
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
synclient TouchpadOff=1 && echo "TouchPad deactivated."
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
synclient TouchpadOff=1 && notify-send "TouchPad deactivated."