+focus mode +new scripts
This commit is contained in:
@@ -9,7 +9,7 @@ eleccion=""
|
|||||||
# modificar las variables en función de la entrada
|
# modificar las variables en función de la entrada
|
||||||
# igual renta sacar las opciones del propio xrandr usando awk y grep
|
# igual renta sacar las opciones del propio xrandr usando awk y grep
|
||||||
if xrandr | grep "$externo connected" && xrandr | grep "$externo2 connected"; then
|
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
|
case "$eleccion" in
|
||||||
Dos)
|
Dos)
|
||||||
xrandr --output "$interno" --off --output "$externo2" --above "$interno" --auto --output "$externo" --auto --rotate left --right-of "$externo2"
|
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
|
esac
|
||||||
elif xrandr | grep "$externo connected"; then
|
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
|
case "$eleccion" in
|
||||||
"Dual Top")
|
"Dual Top")
|
||||||
xrandr --output "$interno" --auto --mode 1920x1080 --output "$externo" --auto --above "$interno" --output "$externo2" --off
|
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
|
esac
|
||||||
elif xrandr | grep "$externo2 connected"; then
|
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
|
case "$eleccion" in
|
||||||
Dual)
|
Dual)
|
||||||
xrandr --output "$interno" --auto --primary --output "$externo2" --above "$interno" --auto --output "$externo" --off
|
xrandr --output "$interno" --auto --primary --output "$externo2" --above "$interno" --auto --output "$externo" --off
|
||||||
|
|||||||
@@ -1,11 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
state=$(cat ~/Scripts/.focusState)
|
state=$(cat ~/Scripts/.focusState)
|
||||||
if test $state -eq 0; then
|
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
|
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
|
echo 1 > ~/Scripts/.focusState
|
||||||
else
|
else
|
||||||
polybar-msg cmd show
|
#polybar-msg cmd show
|
||||||
i3-msg gaps inner all set 30
|
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
|
echo 0 > ~/Scripts/.focusState
|
||||||
fi
|
fi
|
||||||
|
|||||||
1122
Tools/eduroam-linux-UdS-eduroam.py
Normal file
1122
Tools/eduroam-linux-UdS-eduroam.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,6 @@
|
|||||||
bg: #090909FF;
|
bg: #090909FF;
|
||||||
bga: #000000FF;
|
bga: #000000FF;
|
||||||
fg: #f5f5f5FF;
|
fg: #f5f5f5FF;
|
||||||
ac: #e9ecefFF;
|
ac: #415a77FF;
|
||||||
se: #e9ecef5A;
|
se: #415a775A;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user