screen settings

This commit is contained in:
2023-09-27 08:12:21 +02:00
parent 6028216665
commit b10d4b3f17
3 changed files with 25 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
#!/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")