aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuworkspace
blob: 7d947d02745f4b7cd364607330c14598ccf92d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
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")"