aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuman
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-18 01:17:06 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-18 01:17:06 +0300
commita36aadab60c09bff3a055b0442971aa5e8a87a27 (patch)
tree0026c02065a0cf35478386312aeb5cb732192469 /dotfiles/.local/bin/menuman
parent484181c25cba61469254e24bff578cff5189c8a7 (diff)
downloadswayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.tar.gz
swayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.zip
WIP: rofi
* Moved basically all menu scripts to use rofi * Updated some custom desktop entries * Updated list of packages. TODO: make a better installer script/package list. * Removed some old and extraneous scripts. * Other minor changes to config.
Diffstat (limited to 'dotfiles/.local/bin/menuman')
-rwxr-xr-xdotfiles/.local/bin/menuman11
1 files changed, 4 insertions, 7 deletions
diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman
index 98efc02..6c41415 100755
--- a/dotfiles/.local/bin/menuman
+++ b/dotfiles/.local/bin/menuman
@@ -1,18 +1,15 @@
#!/bin/sh
# Search and open man page
# Options:
-# -t use in terminal with fzf otherwise launch bemenu.
+# -t use in terminal with fzf otherwise launch gui menu
# -s search with apropos.
-# Source settings from .bemenurc
-. ~/.config/bemenurc
-
issearch=
isterminal=
printusage() {
echo "Options:" >&2
- echo " -t use in terminal with fzf otherwise launch bemenu." >&2
+ echo " -t use in terminal with fzf otherwise gui menu." >&2
echo " -s search with apropos." >&2
}
@@ -35,7 +32,7 @@ if [ ! -z "$issearch" ]; then
printf "Enter query:\t"
read query
else
- query="$(echo "" | bemenu -p "Enter apropos query:" -i --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
+ query="$(echo "" | rofi -dmenu -p "Enter apropos query" -i)"
fi
if [ -z "$query" ]; then
echo "Empty query" >&2
@@ -49,7 +46,7 @@ fi
if [ ! -z "$isterminal" ]; then
chosen=$(printf "$list" | fzf)
else
- chosen=$(printf "$list" | bemenu -p "Select man page:" -i -l 25 --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")
+ chosen=$(printf "$list" | rofi -dmenu -p "Select man page" -i)
fi
if [ -z "$chosen" ]; then