2017-08-25 19:21:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
if [ "x$1" == "xupdate" ]; then
|
|
|
|
shift
|
|
|
|
exec python3 -m cdoseaplay.update $@
|
|
|
|
else
|
2017-08-30 14:07:50 +00:00
|
|
|
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
|
2017-08-29 17:27:06 +00:00
|
|
|
if [ "x$1" == "xsync" ]; then
|
2017-08-30 14:07:50 +00:00
|
|
|
shift
|
|
|
|
exec python3 -m cdoseaplay.sync "$@"
|
2017-08-29 17:27:06 +00:00
|
|
|
else
|
2017-08-30 14:07:50 +00:00
|
|
|
exec python3 -m cdoseaplay.play "$@"
|
2017-08-29 17:27:06 +00:00
|
|
|
fi
|
2017-08-25 19:21:36 +00:00
|
|
|
fi
|