diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-10-07 14:43:37 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-10-07 14:43:37 +0300 |
commit | 7ac60e4a99344d96239f2f4da63b6c9e190045f1 (patch) | |
tree | 3aa920bff8c0c18e79c420a630c5bd177b8d8cec /dotfiles/.local/bin/menuworkspace | |
parent | 653da507074730db446bc54e8a1165c8f919d4bd (diff) | |
parent | 4213b8745e62801b9926c699edf7ad3ffd94f0b4 (diff) | |
download | swayrice-7ac60e4a99344d96239f2f4da63b6c9e190045f1.tar.gz swayrice-7ac60e4a99344d96239f2f4da63b6c9e190045f1.zip |
Merge branch 'back-to-qute'
Diffstat (limited to 'dotfiles/.local/bin/menuworkspace')
-rwxr-xr-x | dotfiles/.local/bin/menuworkspace | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/menuworkspace b/dotfiles/.local/bin/menuworkspace new file mode 100755 index 0000000..7d947d0 --- /dev/null +++ b/dotfiles/.local/bin/menuworkspace @@ -0,0 +1,12 @@ +#!/bin/sh + +# Open a "workspace" (see workspace) from a list of dirs under home + +# Source settings from .bemenurc +. ~/.config/bemenurc + +# All dirs under home, except ones under hidden dirs +dirs="$(find $HOME -type d -path "*/\.*" -prune -o -not -name ".*" -type d)" + +workspace "$(echo "$dirs" | + bemenu -i -l 25 -p "Enter link or query:" --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")" |