aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/personal/wrapper')
-rwxr-xr-xscripts/.local/bin/personal/wrapper/dmenu19
-rwxr-xr-xscripts/.local/bin/personal/wrapper/stabbed5
-rwxr-xr-xscripts/.local/bin/personal/wrapper/tabura5
-rwxr-xr-xscripts/.local/bin/personal/wrapper/xdg-open18
4 files changed, 47 insertions, 0 deletions
diff --git a/scripts/.local/bin/personal/wrapper/dmenu b/scripts/.local/bin/personal/wrapper/dmenu
new file mode 100755
index 0000000..ef03598
--- /dev/null
+++ b/scripts/.local/bin/personal/wrapper/dmenu
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# A wrapper for dmenu to always have it spawn with certain properties
+# TODO: Get rid of this script
+
+source "$HOME/.cache/wal/colors.sh"
+
+/usr/local/bin/dmenu \
+-fn "JetBrains Mono:size=19:pixelsize=24" \
+-nb "$background" \
+-nf "$foreground" \
+-sb "$color1" \
+-sf "$background" \
+-x "10" \
+-y "10" \
+-z "2860" \
+-h "44" \
+-i
+
diff --git a/scripts/.local/bin/personal/wrapper/stabbed b/scripts/.local/bin/personal/wrapper/stabbed
new file mode 100755
index 0000000..4a14dbf
--- /dev/null
+++ b/scripts/.local/bin/personal/wrapper/stabbed
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# A wrapper for st in tabbed, renamed to prevent recursion
+
+tabbed -c st -w
diff --git a/scripts/.local/bin/personal/wrapper/tabura b/scripts/.local/bin/personal/wrapper/tabura
new file mode 100755
index 0000000..29f1401
--- /dev/null
+++ b/scripts/.local/bin/personal/wrapper/tabura
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# A wrapper for zathura in tabbed, renamed to prevent recursion
+
+tabbed -c zathura -e
diff --git a/scripts/.local/bin/personal/wrapper/xdg-open b/scripts/.local/bin/personal/wrapper/xdg-open
new file mode 100755
index 0000000..a5b43d6
--- /dev/null
+++ b/scripts/.local/bin/personal/wrapper/xdg-open
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# A wrapper for xdg-open to catch certain cases not caught by mimeapps.list
+
+case "${1%%:*}" in
+ http|https)
+ exec qutebrowser "$1"
+ ;;
+ *.pdf)
+ exec zathura "$1"
+ ;;
+ mailto)
+ exec st -e bash -i -c "mail $1"
+ ;;
+ *)
+ exec /usr/bin/xdg-open "$@"
+ ;;
+esac