+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

View File

@@ -1,11 +1,19 @@
#!/bin/bash
state=$(cat ~/Scripts/.focusState)
if test $state -eq 0; then
polybar-msg cmd hide
#polybar-msg cmd hide
killall polybar
bash ~/.config/polybar/dock/launch.sh
i3-msg gaps inner all set 0
# sed -i "s/border_radius*/border_radius 0/g" ~/.config/i3/config
# sed -i "s/default_border*/default_border pixel 1/g" ~/.config/i3/config
echo 1 > ~/Scripts/.focusState
else
polybar-msg cmd show
i3-msg gaps inner all set 30
#polybar-msg cmd show
i3-msg gaps inner all set 20
killall polybar
bash ~/.config/polybar/floating/launch.sh
# sed -i "s/border_radius*/border_radius 2/g" ~/.config/i3/config
# sed -i "s/default_border*/default_border pixel 4/g" ~/.config/i3/config
echo 0 > ~/Scripts/.focusState
fi

View File

File diff suppressed because it is too large Load Diff

View File

@@ -5,6 +5,6 @@
bg: #090909FF;
bga: #000000FF;
fg: #f5f5f5FF;
ac: #e9ecefFF;
se: #e9ecef5A;
ac: #415a77FF;
se: #415a775A;
}