Moved scripts in .config/screenlayouts

This commit is contained in:
Stefano Cereda 2019-05-25 08:21:42 +02:00
parent 080ad9427e
commit 0777942dee
2 changed files with 4 additions and 3 deletions

View File

@ -55,13 +55,13 @@ multimon() { # Multi-monitor handler.
esac ;}
loadconf() { # Load an existing configuration file saved from arandr
scripts=$(ls ~/.screenlayout/)
scripts=$(ls ~/.config/screenlayout/)
if [ -z "$scripts" ]; then
scripts="None"
fi
chosen=$(for s in $scripts; do echo $s; done | dmenu -i -p "Select configuration file:") &&
case "$chosen" in
*sh) ~/.screenlayout/$chosen ;;
*sh) ~/.config/screenlayout/"$chosen" ;;
*) exit ;;
esac ;}

View File

@ -207,7 +207,8 @@ Naturally, you can use \f(CWyay\fP to look for and install any you want to add.
.ITEM
\f(CWMod+F2\fP \(en Refresh i3
.ITEM
\f(CWMod+F3\fP \(en Select screen/display to use
\f(CWMod+F3\fP \(en Select screen/display to use.
You can save ARandR configurations in \f(CW~/.config/screenlayout\fP and load them here
.ITEM
\f(CWMod+F4\fP \(en Hibernate (will ask to confirm)
.ITEM