18 lines
279 B
Bash
Executable File
18 lines
279 B
Bash
Executable File
#!/bin/bash
|
|
|
|
layouts=("$(ls "$HOME/.screenlayout/")")
|
|
|
|
add="add layout..."
|
|
|
|
layouts+=("$add")
|
|
|
|
choice=$(printf '%s\n' "${layouts[@]}" | dmenu -i -p 'Choose a screenlayout:') || exit 0
|
|
|
|
if [ "$choice" = "$add" ]
|
|
then
|
|
arandr &
|
|
exit 0
|
|
fi
|
|
|
|
exec "$HOME/.screenlayout/$choice"
|