Fix indentation in layout-switch script, change /default/ to (default)

This commit is contained in:
Rokosun 2022-06-09 14:43:58 +02:00
parent e39a6220c5
commit 9031da8eb4
1 changed files with 12 additions and 12 deletions

View File

@ -21,44 +21,44 @@ yad --no-buttons --center --keep-icon-size --separator='' --use-interp --title '
--field=!"$icons/macos.png"!'MacOS-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'MacOS-Like'" \
--field=!"$icons/mx.png"!'MX-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'MX-Like'" \
--field=!"$icons/gnome.png"!'Gnome-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'Gnome-Like'" \
--field=!"$icons/unity.png"!'Unity-Like /default/':BTN "kill -USR1 \$YAD_PID; echo -n 'Unity-Like /default/'" \
--field=!"$icons/unity.png"!'Unity-Like (default)':BTN "kill -USR1 \$YAD_PID; echo -n 'Unity-Like (default)'" \
--field=!"$icons/topx.png"!'TopX-Like':BTN "kill -USR1 \$YAD_PID; echo -n 'TopX-Like'"
)
case "$choice" in
'Windows-Like')
disable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
xfce4-panel-profiles load "$profiles"/Windows-Like.tar.bz2 & ;;
'Unity-Like /default/')
'Unity-Like (default)')
enable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "CMH|" &
xfce4-panel-profiles load "$profiles"/Unity-Like.tar.bz2 & ;;
'MX-Like')
'MX-Like')
disable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
xfce4-panel-profiles load "$profiles"/MX-Like.tar.bz2 & ;;
'MacOS-Like')
'MacOS-Like')
enable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "CMH|" &
xfce4-panel-profiles load "$profiles"/MacOS-Like.tar.bz2 & ;;
'Gnome-Like')
'Gnome-Like')
disable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
xfce4-panel-profiles load "$profiles"/Gnome-Like.tar.bz2 & ;;
'TopX-Like')
'TopX-Like')
disable-global-menus
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/titleless_maximize -n -t bool -s false &
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
xfce4-panel-profiles load "$profiles"/TopX-Like.tar.bz2 & ;;
*) exit ;;