Add new script and binding to fast search via DDG in qutebrowser

This commit is contained in:
samedamci 2020-03-13 12:03:40 +01:00
parent 45d6203b85
commit 23cc5cb051
4 changed files with 15 additions and 11 deletions

View File

@ -12,6 +12,9 @@
# Qutebrowser
super + b
qutebrowser
# Direct search
super + o
$HOME/.scripts/websearch
# St
super + Return
st
@ -52,11 +55,6 @@ super + bracket{left,right}
# Focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# Focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# Focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'

View File

@ -12,6 +12,9 @@
# qutebrowser
super + b
qutebrowser
# direct search
super + o
$HOME/.scripts/websearch
# st
super + Return
st
@ -57,11 +60,6 @@ super + bracket{left,right}
# Focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# Focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# Focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'

8
botfiles/.scripts/websearch Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
PHRASE=$(printf | dmenu -p "Web search:")
if [ -n "$PHRASE" ]; then
qutebrowser $PHRASE &
bspc desktop -f '^3'
fi

2
updot
View File

@ -4,7 +4,7 @@ echo "Adding configs to dotfiles repo..."
cd ~
cp .zshrc .Xresources .aliases .bashrc .zprofile .bash_profile .local/share/TelegramDesktop/tdata/shortcuts-custom.json ~/Dotfiles/botfiles/ &>/dev/null
cd ~/.scripts/
cp lockscreen.sh powermenu.sh screenshot.sh update-check.sh updater.sh wificheck.sh ~/Dotfiles/botfiles/.scripts/ &>/dev/null
cp lockscreen.sh powermenu.sh screenshot.sh update-check.sh updater.sh wificheck.sh websearch ~/Dotfiles/botfiles/.scripts/ &>/dev/null
cd ~/.config
cp -r autostart bspwm dconf dunst GIMP gtk-3.0 gtk-2.0 homepage mpd ncmpcpp neofetch nvim picom polybar qutebrowser ranger rofi sxhkd vifm vis vlc wallpapers yay zsh ~/Dotfiles/botfiles/.config/ &>/dev/null
cd ~/Dotfiles/botfiles/.config/