From a36aadab60c09bff3a055b0442971aa5e8a87a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 18 May 2022 01:17:06 +0300 Subject: 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. --- dotfiles/.local/bin/menuman | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'dotfiles/.local/bin/menuman') 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 -- cgit v1.2.3