commit 83b97aa10ff13ec859d1ddb91829934152196694
parent addd85e94e0b418a8308969334420817f946a99e
Author: Sven Möller <sven@svenmoeller.xyz>
Date: Tue, 31 May 2022 17:13:15 +0200
Config
Diffstat:
5 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/bash/.bashrc b/bash/.bashrc
@@ -26,3 +26,5 @@ alias sf="sfeed_curses ~/.sfeed/feeds/*"
alias w3m="w3m -B"
alias search="surfraw search"
alias t="todo.sh"
+
+export MENU="fzf"
diff --git a/bin/.local/bin/lh b/bin/.local/bin/lh
@@ -15,7 +15,7 @@ open () {
$DOCVIEWER "$url"
;;
*)
- $TERMINAL epy "$url"
+ $BROWSER "$url"
;;
esac
}
diff --git a/bin/.local/bin/news b/bin/.local/bin/news
@@ -1,12 +1,4 @@
#!/bin/sh
-if [ "$1" = "-g" ] ; then
- menu="dmenu -i -l 44"
- browser="lh -g"
-else
- menu="fzf"
- browser="lh"
-fi
-
-curl -s https://news.svenmoeller.xyz/index.txt | $menu\
- | grep -Eo 'https?://\S+' | xargs -r $browser
+curl -s https://news.svenmoeller.xyz/index.txt | $MENU\
+ | grep -Eo 'https?://\S+' | xargs -r $BROWSER
diff --git a/bin/.local/bin/passfill b/bin/.local/bin/passfill
@@ -1,12 +1,6 @@
#!/bin/sh
-if [ -z "$DISPLAY" ]; then
- menu=fzf
-else
- menu=dmenu
-fi
-
-account="$(gopass ls --flat | $menu | xargs -r gopass find | head -n1)"
+account="$(gopass ls --flat | $MENU | xargs -r gopass find | head -n1)"
entry="$(gopass show "$account")"
if [ -z "$DISPLAY" ]; then
diff --git a/w3m/.w3m/config b/w3m/.w3m/config
@@ -84,7 +84,7 @@ mailer /usr/bin/mail
extbrowser lh
extbrowser2 mpv
extbrowser3 qutebrowser
-extbrowser4
+extbrowser4 $TERMINAL epy
extbrowser5
extbrowser6
extbrowser7