Added menu to switch display

This commit is contained in:
Damien Broqua 2020-06-07 22:56:23 +02:00
parent cbd6b38517
commit 474a633309
3 changed files with 41 additions and 3 deletions

26
Bin/screenlayoutrofi.sh Executable file
View file

@ -0,0 +1,26 @@
#! /bin/bash
rofi_command="rofi"
mode="laptop"
### Options ###
laptop=" Laptop only"
home=" Wide screen"
homeoffice="  Dual screen"
# Variable passed to rofi
options="$laptop\n$home\n$homeoffice"
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
case $chosen in
$latpop)
mode="laptop"
;;
$home)
mode="home"
;;
$homeoffice)
mode="homeoffice"
;;
esac
screenlayout.sh $mode