From d677d65fd391e38e6b519b83b881d2795173b57c Mon Sep 17 00:00:00 2001 From: tiynger Date: Tue, 24 Sep 2019 10:46:36 +0200 Subject: [PATCH] minor changes --- .config/i3/config | 2 -- .config/sxhkd/sxhkdrc | 2 -- .local/bin/i3cmds/googlesearch | 20 -------------------- 3 files changed, 24 deletions(-) delete mode 100755 .local/bin/i3cmds/googlesearch diff --git a/.config/i3/config b/.config/i3/config index 07b361a..e2ed92c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -53,8 +53,6 @@ bindsym $mod+Shift+b bar mode toggle bindsym $mod+Shift+f fullscreen toggle -#bindsym $mod+g taken by sxhkd - bindsym $mod+h focus left bindsym $mod+Shift+h move left 30 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index a041d95..9d0187d 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -13,8 +13,6 @@ super + e super + f $TERMINAL -e $FILE #super + shift + f taken by i3 -super + g - googlesearch #super + h taken by i3 #super + shift + h taken by i3 super + i diff --git a/.local/bin/i3cmds/googlesearch b/.local/bin/i3cmds/googlesearch deleted file mode 100755 index f8312a2..0000000 --- a/.local/bin/i3cmds/googlesearch +++ /dev/null @@ -1,20 +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 "G" | dmenu -i -p "Search Google:") || exit 1 - -if [ "$choice" = "G" ]; then - $RTV_BROWSER "https://google.com" -else - if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then - $RTV_BROWSER "$choice" - else - $RTV_BROWSER "https://google.com/search?q=$choice" - fi -fi