13 lines
369 B
Bash
Executable File
13 lines
369 B
Bash
Executable File
#!/usr/bin/env bash
|
|
prefix=${PASSWORD_STORE_DIR-~/.config/screenlayout}
|
|
screen_files=( "$prefix"/*.sh )
|
|
screen_files=( "${screen_files[@]#"$prefix"/}" )
|
|
screen_files=( "${screen_files[@]%.sh}" )
|
|
|
|
screen_file=$(printf '%s\n' "${screen_files[@]}" | rofi -dmenu -theme nord -font 'pango:monospace 18'"$@")
|
|
|
|
[[ -n $screen_file ]] || exit
|
|
|
|
$("${prefix}/${screen_file}.sh")
|
|
|