This commit is contained in:
#root_informatica 2024-03-31 02:28:55 -03:00
parent e6cfdb4580
commit a8ae36634e
2 changed files with 24 additions and 2 deletions

View File

@ -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

22
xbrowser.sh Executable file
View File

@ -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