summaryrefslogtreecommitdiff
path: root/misc/launch
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-10-18 23:09:28 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-10-18 23:09:28 -0500
commite7786d9b1904ecd2c9989c3f157df48016b0dd50 (patch)
tree6c05945a22b462556fc4f1612cee2fe778e544fe /misc/launch
parent2cf3ea2f828f6da07adff92a7dc5bce6069620ab (diff)
downloadscripts-e7786d9b1904ecd2c9989c3f157df48016b0dd50.tar.xz
scripts-e7786d9b1904ecd2c9989c3f157df48016b0dd50.zip
moved some things around
Diffstat (limited to 'misc/launch')
-rwxr-xr-xmisc/launch54
1 files changed, 0 insertions, 54 deletions
diff --git a/misc/launch b/misc/launch
deleted file mode 100755
index 0e2745e..0000000
--- a/misc/launch
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-[ -n "$2" ] && args=`echo "$@" | cut -d' ' -f2-`
-
-launchother() { $@ || echo "Launch: $@: Does not exist or exited with an error"; }
-
-case "`hostname`" in
- G3N2)
- case "$1" in
- brave) brave-bin $args & xdotool search --all --sync --class "brave-browser" set_window --class "Brave" --urgency 1 ;;
- chromium|chrome) chromium-browser $args & xdotool search --all --sync --class "Chromium-browser-chromium" set_window --class "Chrome" --urgency 1 ;;
- halt|off|poweroff|shutdown) doas poweroff ;;
- sleep|suspend|zzz) doas s2ram ;;
- reboot|res|restart) doas reboot ;;
- snes|snes9x) snes9x -fullscreen -xvideo $args ;;
- *) launchother $@ ;;
- esac
- ;;
- voidx250)
- case "$1" in
- brave) brave-browser-stable $args & xdotool search --all --sync --class "brave-browser" set_window --class "Brave" --urgency 1 ;;
- chromium|chrome) chrome $args & xdotool search --all --sync --class "Chromium-browser" set_window --class "Chrome" --urgency 1 ;;
- halt|off|poweroff|shutdown) doas poweroff ;;
- sleep|suspend|zzz) doas zzz ;;
- reboot|res|restart) doas reboot ;;
- snes|snes9x) snes9x-gtk $args ;;
- *) launchother $@ ;;
- esac
- ;;
- debx230)
- case "$1" in
- brave) brave-browser-stable $args & xdotool search --all --sync --class "brave-browser" set_window --class "Brave" --urgency 1 ;;
- chromium|chrome) chromium $args & xdotool search --all --sync --class "Chromium" set_window --class "Chrome" --urgency 1 ;;
- #halt|off|poweroff|shutdown) doas poweroff ;;
- #sleep|suspend|zzz) doas zzz ;;
- #reboot|res|restart) doas reboot ;;
- #snes|snes9x) snes9x-gtk $args ;;
- *) launchother $@ ;;
- esac
- ;;
- openbsdx230)
- case "$1" in
- brave)
- ;;
- chromium|chrome)
- ;;
- halt|off|poweroff|shutdown) doas halt ;;
- sleep|suspend|zzz) doas zzz ;;
- reboot|res|restart) doas reboot ;;
- snes|snes9x) snes9x-gtk $args ;;
- *) launchother $@ ;;
- esac
- ;;
- *) echo "Launch: The hostname \"`hostname`\" is not recognized. Please add an entry for it!" ;;
-esac