24 lines
1,006 B
Bash
Executable file
24 lines
1,006 B
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
|
|
exec python3 -m cdoseaplay.sync "$@"
|
|
else
|
|
exec python3 -m cdoseaplay.play "$@"
|
|
fi
|
|
fi
|