Skip to content

Commit

Permalink
Better handle startup and launcherctl info
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Sep 10, 2024
1 parent a0eef7f commit 19d14f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions assets/etc/systemd/system/tarnish.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Oxide system service
After=home.mount
After=blight.service
StartLimitInterval=30
StartLimitBurst=5
#OnFailure=remarkable-fail.service
Expand All @@ -21,4 +22,5 @@ Environment="PATH=/opt/bin:/opt/sbin:/opt/usr/bin:/usr/local/bin:/usr/bin:/bin:/

[Install]
Alias=launcher.service
Alias=oxide.service
WantedBy=multi-user.target
16 changes: 13 additions & 3 deletions assets/opt/share/launcherctl/oxide
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ case "$1" in
systemctl disable tarnish.service
;;
apps)
rot apps get applications | jq -r 'keys | .[]'
if ! "$0" is-active; then
\ls /opt/usr/share/applications/*.oxide | xargs basename -s .oxide
exit
fi
rot apps get applications 2>/dev/null | jq -r 'keys | .[]'
;;
running)
rot apps get runningApplications | jq -r 'keys | .[]'
if ! "$0" is-active; then
exit
fi
rot apps get runningApplications 2>/dev/null | jq -r 'keys | .[]'
;;
paused)
rot apps get pausedApplications | jq -r 'keys | .[]'
if ! "$0" is-active; then
exit
fi
rot apps get pausedApplications 2>/dev/null | jq -r 'keys | .[]'
;;
launch | resume)
rot apps get applications \
Expand Down

0 comments on commit 19d14f1

Please sign in to comment.