cdosea-play/cdosea-play
2023-10-13 13:37:42 +01:00

25 lines
1 KiB
Bash
Executable file

#!/bin/bash
if [ "x$1" == "xupdate" ]; then
shift
exec python3 -m cdoseaplay.update $@
else
if [ "x$1" == "xautostart" ]; then
#gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
gsettings set org.gnome.desktop.background color-shading-type 'solid'
gsettings set org.gnome.desktop.background primary-color '#888888'
gsettings set org.gnome.desktop.background secondary-color '#888888'
gsettings set org.gnome.desktop.background picture-options 'none'
shift
fi
if [ "x$1" == "xsync" ]; then
shift
test -e /usr/bin/nm-online && /usr/bin/nm-online -q -t 0
exec python3 -m cdoseaplay.sync "$@"
else
exec python3 -m cdoseaplay.play "$@"
fi
fi