-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add launcherctl config * Update package * Update system-service.pro * Add rm2display.ipk
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
set -e | ||
case "$1" in | ||
is-active) | ||
systemctl is-active --quiet tarnish.service | ||
;; | ||
is-enabled) | ||
systemctl is-enabled --quiet tarnish.service | ||
;; | ||
logs) | ||
if [ $# -eq 2 ] && [[ "$2" == "-f" ]] || [[ "$2" == "--follow" ]]; then | ||
journalctl --follow --all --unit tarnish.service | ||
else | ||
journalctl --no-pager --all --unit tarnish.service | ||
fi | ||
;; | ||
start) | ||
systemctl start tarnish.service | ||
;; | ||
stop) | ||
systemctl stop tarnish.service | ||
;; | ||
enable) | ||
systemctl enable tarnish.service | ||
;; | ||
disable) | ||
systemctl disable tarnish.service | ||
;; | ||
apps) | ||
rot apps get applications | jq -r 'keys | .[]' | ||
;; | ||
running) | ||
rot apps get runningApplications | jq -r 'keys | .[]' | ||
;; | ||
paused) | ||
rot apps get pausedApplications | jq -r 'keys | .[]' | ||
;; | ||
launch | resume) | ||
rot apps get applications \ | ||
| jq -cr ".$2" | sed 's|/codes/eeems/oxide1/||' \ | ||
| xargs -I {} rot --object Application:{} apps call launch | ||
;; | ||
close) | ||
rot apps get applications \ | ||
| jq -cr ".$2" | sed 's|/codes/eeems/oxide1/||' \ | ||
| xargs -I {} rot --object Application:{} apps call stop | ||
;; | ||
pause) | ||
rot apps get applications \ | ||
| jq -cr ".$2" | sed 's|/codes/eeems/oxide1/||' \ | ||
| xargs -I {} rot --object Application:{} apps call pause | ||
;; | ||
*) | ||
echo "Oxide does not support this method" | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters