diff options
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9023-disable-compiz | 27 | ||||
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9024-lxde-compositor | 29 |
2 files changed, 29 insertions, 27 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9023-disable-compiz b/config/chroot_local-includes/lib/live/config/9023-disable-compiz deleted file mode 100755 index e95c63a..0000000 --- a/config/chroot_local-includes/lib/live/config/9023-disable-compiz +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -Nocompiz () -{ - # Checking if configured - if [ -e /var/lib/live/config/nocompiz ] - then - return - fi - echo -n " nocompiz" - Configure_nocompiz -} - -Configure_nocompiz () -{ - # Boot parameters can be acted up either this way... - if ! grep -qs "nocompiz" /proc/cmdline - then - return - fi - #rm -f /home/${LIVE_USERNAME}/.config/autostart/compiz_start.desktop - touch /home/${LIVE_USERNAME}/.nocompiz - # Creating state file - touch /var/lib/live/config/nocompiz -} - -Nocompiz diff --git a/config/chroot_local-includes/lib/live/config/9024-lxde-compositor b/config/chroot_local-includes/lib/live/config/9024-lxde-compositor new file mode 100755 index 0000000..3d4245f --- /dev/null +++ b/config/chroot_local-includes/lib/live/config/9024-lxde-compositor @@ -0,0 +1,29 @@ +#!/bin/sh + +Composit () +{ + # Checking if configured + if [ -e /var/lib/live/config/composit ] + then + return + fi + echo -n " composit" + Configure_composit +} +Configure_composit () +{ + # Boot parameters can be acted up either this way... + if grep -qs "compton" /proc/cmdline + then + touch /home/${LIVE_USERNAME}/.compton + touch /home/${LIVE_USERNAME}/.nocompiz + fi + if grep -qs "nocompiz" /proc/cmdline + then + touch /home/${LIVE_USERNAME}/.nocompiz + fi + # Creating state file + touch /var/lib/live/config/composit +} + +Composit |