commit b15214ac1198846dd32d8e4495d7000833b49e13
parent 07b4b2ea4fba01ddd852d2c895e76c280b8db5cc
Author: gearsix <gearsix@tuta.io>
Date: Thu, 11 Nov 2021 10:35:37 +0000
moved xopen to depreciated
Diffstat:
2 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/src/depreciated/xopen.sh b/src/depreciated/xopen.sh
@@ -0,0 +1,23 @@
+# DEPRECIATED: just made an alias in bashrc (alias xopen='xdg-open')
+
+#!/bin/sh
+# xopen = xdg-open FILE
+# description: open file in xserver (doesn't support multiple files at once yet)
+# ARGUMENTS: -q, --quiet send stdout to /dev/null
+
+if [ -z $1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
+ echo "Usage: xopen [OPTIONS] {FILE|URL}..."
+ echo ""
+ echo "Call 'xdg-open' on all listed {FILE|URL}, see 'xdg --help' for more details."
+ echo ""
+ echo "OPTIONS (must be provided before {FILE|URL})"
+ echo " -q, --quiet send stdout to /dev/null because a lot of tools print too much."
+ exit
+fi
+
+if [ "$1" = "-q" ] || [ "$1" = "--quiet" ]; then
+ shift
+ xdg-open $@ &>/dev/null
+else
+ xdg-open $@
+fi
diff --git a/src/xopen.sh b/src/xopen.sh
@@ -1,21 +0,0 @@
-#!/bin/sh
-# xopen = xdg-open FILE
-# description: open file in xserver (doesn't support multiple files at once yet)
-# ARGUMENTS: -q, --quiet send stdout to /dev/null
-
-if [ -z $1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
- echo "Usage: xopen [OPTIONS] {FILE|URL}..."
- echo ""
- echo "Call 'xdg-open' on all listed {FILE|URL}, see 'xdg --help' for more details."
- echo ""
- echo "OPTIONS (must be provided before {FILE|URL})"
- echo " -q, --quiet send stdout to /dev/null because a lot of tools print too much."
- exit
-fi
-
-if [ "$1" = "-q" ] || [ "$1" = "--quiet" ]; then
- shift
- xdg-open $@ &>/dev/null
-else
- xdg-open $@
-fi