new iso
This commit is contained in:
55
tromjaro/xfce/desktop-overlay/etc/skel/.local/bin/layout-switch
Executable file
55
tromjaro/xfce/desktop-overlay/etc/skel/.local/bin/layout-switch
Executable file
@ -0,0 +1,55 @@
|
||||
#! /bin/bash
|
||||
choice=$(zenity --width=400 --height=275 --list --radiolist --title 'Layout Switch' --text 'Changing to or from any layout that has global menus, will require your admin password' --column 'Select' --column 'Layout' FALSE 'Windows-Like' FALSE 'Unity-Like with Global Menus (default)' FALSE 'Unity-Like' FALSE 'Gnome-Like' FALSE 'ChromeOS-Like')
|
||||
case "$choice" in
|
||||
'Windows-Like')
|
||||
! pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar && exit
|
||||
killall appmenu-registrar &
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/tromjaro-layouts/Windows-Like.tar.bz2 & ;;
|
||||
'Unity-Like with Global Menus (default)')
|
||||
pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -S --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed installing vala-panel-appmenu-registrar !\Enabling the internet connection might solve the issue'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar || exit
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/tromjaro-layouts/Unity-Like-Menus.tar.bz2 & ;;
|
||||
'Unity-Like')
|
||||
! pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar && exit
|
||||
killall appmenu-registrar &
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/tromjaro-layouts/Unity-Like.tar.bz2 & ;;
|
||||
'Gnome-Like')
|
||||
! pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar && exit
|
||||
killall appmenu-registrar &
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/tromjaro-layouts/Gnome-Like.tar.bz2 & ;;
|
||||
'ChromeOS-Like')
|
||||
! pacman -Qq vala-panel-appmenu-registrar ||
|
||||
zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
|
||||
{ notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !'; exit; }
|
||||
pacman -Qq vala-panel-appmenu-registrar && exit
|
||||
killall appmenu-registrar &
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/tromjaro-layouts/ChromeOS-Like.tar.bz2 & ;;
|
||||
*) exit ;;
|
||||
esac
|
||||
|
||||
## Reset panels and windows
|
||||
xfce4-panel -r >/dev/null 2>&1
|
||||
xfwm4 --replace &
|
||||
xfce4-panel &
|
||||
sleep 5 && notify-send "$choice was enabled"
|
@ -1,35 +0,0 @@
|
||||
#! /bin/bash
|
||||
FILE1=/usr/lib/vala-panel/appmenu-registrar
|
||||
FILE2=/usr/lib/vala-panel/appmenu-registrar.OFF
|
||||
if [ -f "$FILE1" ]; then
|
||||
choice=$(zenity --width=400 --height=275 --list --radiolist --title 'Tromjaro layout switcher' --text 'Select your preferred layout:' --column 'Select' --column 'Layout' FALSE 'Classic layout' TRUE 'Modern layout')
|
||||
[ "$choice" = 'Classic layout' ] || exit
|
||||
## Enable TROMjaro Classic
|
||||
zensu mv "$FILE1" "$FILE2" || exit
|
||||
killall appmenu-registrar &
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s false &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "|HMC" &
|
||||
xfce4-panel-profiles load ~/.local/share/xfce4-panel-profiles/TROMjaroClassic.tar.bz2 &
|
||||
## Reset panels and windows
|
||||
xfce4-panel -r &
|
||||
xfwm4 --replace &
|
||||
xfce4-panel &
|
||||
sleep 4 && notify-send 'TROMjaro Classic was enabled'
|
||||
|
||||
elif [ -f "$FILE2" ]; then
|
||||
choice=$(zenity --width=400 --height=275 --list --radiolist --title 'Tromjaro layout switcher' --text 'Select your preferred layout:' --column 'Select' --column 'Layout' TRUE 'Classic layout' FALSE 'Modern layout')
|
||||
[ "$choice" = 'Modern layout' ] || exit
|
||||
## Enable TROMjaro Modern
|
||||
zensu mv "$FILE2" "$FILE1" || exit
|
||||
xfconf-query -c xfwm4 -p /general/borderless_maximize -n -t bool -s true &
|
||||
xfconf-query -c xfwm4 -p /general/button_layout -n -t string -s "CMH|" &
|
||||
xfce4-panel-profiles load ~/.local/share/xfce4-panel-profiles/TROMjaroModern.tar.bz2 &
|
||||
## Reset panels and windows
|
||||
xfce4-panel -r &
|
||||
xfwm4 --replace &
|
||||
xfce4-panel &
|
||||
sleep 4 && notify-send 'TROMjaro Modern was enabled'
|
||||
|
||||
else
|
||||
notify-send 'ERROR'
|
||||
fi
|
@ -5,8 +5,10 @@ Name=Touchpad Gestures
|
||||
GenericName=Touchpad Gestures
|
||||
Comment=Configure Touchégg multi-touch gestures
|
||||
Icon=com.github.joseexposito.touche
|
||||
Exec=com.github.joseexposito.touche
|
||||
Exec=sh -c 'env GTK_THEME="$(xfconf-query -c xsettings -p /Net/ThemeName /l)" touche'
|
||||
Actions=
|
||||
Categories=GTK;Settings;X-XFCE-HardwareSettings;X-XFCE-SettingsDialog;
|
||||
Keywords=Touchégg;Multi-touch;Gestures;Touchpad;Trackpad;Touchscreen;
|
||||
StartupNotify=true
|
||||
Path=
|
||||
Terminal=false
|
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Version=1.1
|
||||
Type=Application
|
||||
Name=Layout Switch
|
||||
GenericName=Layout Switch
|
||||
Comment=Change how TROMjaro looks like. Make it look like Unity, Windows, Gnome, and so forth.
|
||||
Icon=layout-switch
|
||||
Exec=layout-switch
|
||||
Categories=DesktopSettings;GTK;Settings;X-XFCE-PersonalSettings;X-XFCE-SettingsDialog;XFCE;
|
||||
Keywords=settings;layout;toggle;switch;
|
@ -1,14 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=Font Manager
|
||||
GenericName=Font Manager
|
||||
Comment=Preview, Compare and Manage Fonts
|
||||
Icon=org.gnome.FontManager
|
||||
DBusActivatable=true
|
||||
Exec=font-manager %u
|
||||
Terminal=false
|
||||
MimeType=font/ttf;font/ttc;font/otf;application/x-font-ttf;application/x-font-otf;
|
||||
Categories=GNOME;GTK;System;
|
||||
Keywords=Graphics;Viewer;GNOME;GTK;Publishing;
|
||||
StartupNotify=true
|
@ -1,10 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Version=1.1
|
||||
Type=Application
|
||||
Name=TROMjaro Layout Toggle
|
||||
GenericName=TROMjaro Layout Toggle
|
||||
Comment=Change the layout between TROMjaro Classic and TROMjaro Modern
|
||||
Icon=global-menu-and-hud
|
||||
Exec=tromjaro-layout-toggle
|
||||
Categories=DesktopSettings;GTK;Settings;X-XFCE-PersonalSettings;X-XFCE-SettingsDialog;XFCE;
|
||||
Keywords=settings;layout;toggle;switch;
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user