You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ublinux-init/ublinux/rc.desktop/all/fusion-icon

22 lines
550 B

#!/bin/sh
ENABLED=yes
[ "$ENABLED" != "yes" ] && exit 0
FUSIONICONTIMEOUT=5
FUSIONICONDEDIS=gnome-shell,gnome,i3term
[ -f /etc/ublinux/compositing-wm ] && . /etc/ublinux/compositing-wm
. /usr/lib/ublinux/functions
. /usr/lib/ublinux/os-config
SOURCE=${SYSCONF}/config; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null
DE=$(detectDE)
if [ "$COMPOSITING_WM_START" = "yes" -a "$COMPOSITING_WM" = "compiz-fusion" ] ;then
if ! echo " $FUSIONICONDEDIS " | tr ',;' " " | grep -q " $DE " ;then
sleep $FUSIONICONTIMEOUT
fusion-icon -f &
fi
fi