summary refs log tree commit diff
path: root/home/.local/bin/open
blob: 9439f07d81b817dbc75f9b3e9a1cbe4b13d4e307 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -eu

if [ -n "${SSH_CLIENT:-}" ]; then
	exec pbd -o "$@"
fi

case "$1" in
	(*.gif|*.jpeg|*.jpg|*.png)
		curl -LSs "$1" | imv -
		;;
	(https://youtu.be/*|https://www.youtube.com/watch*|https://twitch.tv/*)
		ulimit -c 0 # mpv segfaults on exit every time on OpenBSD...
		exec mpv "$1" >/dev/null 2>&1
		;;
	(*)
		exec firefox -new-tab "$1" >/dev/null 2>&1
		;;
esac
15670b5031f37a19e1a11ccc504&follow=1'>Only require CJune McEnroe 2022-01-19Add basic installJune McEnroe 2022-01-19Use cards with add_subdirectoryJune McEnroe 2022-01-19Replace build system with cmakeJune McEnroe 2022-01-19Replace build system with cmakeJune McEnroe Thanks to cr1901 for helping to test this on Windows. 2020-03-31Allow choosing freecell game on command lineJune McEnroe 2020-01-27Remove cards submoduleJune McEnroe 2019-12-19Remove READMEJune McEnroe 2019-12-16Update submodule URLJune McEnroe 2019-12-15Use symlink for README.3June McEnroe 2019-08-27Show game number in titleJune McEnroe 2019-08-27Replicate the FreeCell LCG and deal algorithmJune McEnroe 2019-08-26Move as deep a stack as possible to empty columnsJune McEnroe 2019-08-26Simplify card and stack function namesJune McEnroe 2019-08-26Clean up namingJune McEnroe 2019-08-25Rewrite FreeCellJune McEnroe With move sequencing! 2019-08-25Build with cards submoduleJune McEnroe 2019-08-25Add cards submoduleJune McEnroe 2019-08-25Remove files from cards repoJune McEnroe 2019-08-22Add READMEJune McEnroe 2019-08-22Add exampleJune McEnroe 2019-08-22Add FILES sectionJune McEnroe 2019-08-22Remove gamesJune McEnroe 2019-04-04Mark card functions inlineJune McEnroe 2019-04-04Add listClearJune McEnroe 2019-04-03Tweak mouseButtonUp code a bitJune McEnroe It's still kind of confusing. 2019-04-03Check gameAvail on double-clickJune McEnroe 2019-04-02Select and move cards on mouse upJune McEnroe 2019-04-01Add idSkipJune McEnroe In Windows 95 FREECELL.EXE, the resource IDs are changed to 403, 404 and 405. For some reason. 2019-03-31Fix weird typoJune McEnroe What the hell. 2019-03-30Add undo to freecellJune McEnroe 2019-03-29Replace path.h with asset.hJune McEnroe 2019-03-29Add king win faceJune McEnroe 2019-03-29Change king face directionJune McEnroe 2019-03-29Load king bitmaps in freecellJune McEnroe