+focus mode +new scripts

This commit is contained in:
2023-05-11 23:49:53 +02:00
parent 22b71a2f59
commit 7bafb920c6
4 changed files with 1138 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ eleccion=""
# modificar las variables en función de la entrada
# igual renta sacar las opciones del propio xrandr usando awk y grep
if xrandr | grep "$externo connected" && xrandr | grep "$externo2 connected"; then
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 3 -theme /home/danih/Scripts/Temas/monitor.rasi <<< "Una|Dos|Tres")"
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 3 -theme /home/danih/Scripts/rofi/monitor.rasi <<< "Una|Dos|Tres")"
case "$eleccion" in
Dos)
xrandr --output "$interno" --off --output "$externo2" --above "$interno" --auto --output "$externo" --auto --rotate left --right-of "$externo2"
@@ -22,7 +22,7 @@ if xrandr | grep "$externo connected" && xrandr | grep "$externo2 connected"; th
;;
esac
elif xrandr | grep "$externo connected"; then
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 6 -theme /home/danih/Scripts/Temas/monitor.rasi <<< "Dual Side|Dual Top|Dual Side Vertical|Interna|Externa|Duplicar")"
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 6 -theme /home/danih/Scripts/rofi/monitor.rasi <<< "Dual Side|Dual Top|Dual Side Vertical|Interna|Externa|Duplicar")"
case "$eleccion" in
"Dual Top")
xrandr --output "$interno" --auto --mode 1920x1080 --output "$externo" --auto --above "$interno" --output "$externo2" --off
@@ -45,7 +45,7 @@ elif xrandr | grep "$externo connected"; then
;;
esac
elif xrandr | grep "$externo2 connected"; then
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 4 -theme /home/danih/Scripts/Temas/monitor.rasi <<< "Dual|Interna|Externa|Duplicar")"
eleccion="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p 'System' -width 12 -line-padding 3 -lines 4 -theme /home/danih/Scripts/rofi/monitor.rasi <<< "Dual|Interna|Externa|Duplicar")"
case "$eleccion" in
Dual)
xrandr --output "$interno" --auto --primary --output "$externo2" --above "$interno" --auto --output "$externo" --off