diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-11 00:36:13 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-11 00:36:13 -0500 |
commit | 0a9053c2902adab8b94eaacdb15390441143078c (patch) | |
tree | 1f1a38272dbd554cde8cdec263187112b9c6a7e8 /misc/launch | |
download | scripts-0a9053c2902adab8b94eaacdb15390441143078c.tar.xz scripts-0a9053c2902adab8b94eaacdb15390441143078c.zip |
redid repo cus of fucking chromium rip old commit messages
Diffstat (limited to 'misc/launch')
-rwxr-xr-x | misc/launch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/misc/launch b/misc/launch new file mode 100755 index 0000000..9a6d5ce --- /dev/null +++ b/misc/launch @@ -0,0 +1,43 @@ +#!/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 + ;; + 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 |