fixes.
This commit is contained in:
parent
e6cfdb4580
commit
a8ae36634e
|
@ -8,12 +8,12 @@ EMJ="$HOME/.emojis"
|
|||
|
||||
# check if runing inside a terminal.
|
||||
if [ -t 0 ]; then
|
||||
# pull up the file with fzfmenu and store in a termporary file.
|
||||
# pull up the file with fzfmenu and store in a termporary location.
|
||||
MENU=fzfmenu.sh
|
||||
$MENU < $EMJ | cut -d ' ' -f 3- > /tmp/emoji
|
||||
|
||||
else
|
||||
# pull up the file with fzfmenu.sh and store in a temporary file
|
||||
# pull up the file with xmenu.sh and send to clipboard.
|
||||
MENU=xmenu.sh
|
||||
$MENU < $EMJ | cut -d ' ' -f 3- | xclip -sel c
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
## overly sophisticated launcher for luakit ##
|
||||
# xlbrowser.sh by @root_informatica.
|
||||
|
||||
FLAG=$1
|
||||
|
||||
case $FLAG in
|
||||
-t) # torsock browser (verify that the tor service is running)
|
||||
if ! nc -z localhost $TORSOCk; then
|
||||
herbe "tor is NOT running" &
|
||||
exit 0
|
||||
else
|
||||
torsocks WEBKIT_DISABLE_COMPOSITING_MODE=1 luakit -u https://duckduckgo.com --nounique
|
||||
fi
|
||||
;;
|
||||
*) # default browser
|
||||
WEBKIT_DISABLE_COMPOSITING_MODE=1 luakit $FLAG
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue