summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-11-14 14:39:04 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-11-14 14:39:04 -0500
commit5b31e04513b3dbf88d9137bff7ec4642250921d5 (patch)
tree6679d7deb27db9e57a5851a85cc669116519e6c6 /.local
parentee0203f2ac5931bd87e07dc6d0105d62a8417367 (diff)
downloadeibhear-5b31e04513b3dbf88d9137bff7ec4642250921d5.tar.gz
eibhear-5b31e04513b3dbf88d9137bff7ec4642250921d5.tar.zst
eibhear-5b31e04513b3dbf88d9137bff7ec4642250921d5.zip
pulseaudio replaced with pipewire
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/opout2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/opout b/.local/bin/opout
index 7f452df..faf6575 100755
--- a/.local/bin/opout
+++ b/.local/bin/opout
@@ -4,7 +4,7 @@
# usually the pdf of a compiled document. I find this useful especially
# running from vim.
-basename="$(echo "${*}" | sed 's/\.[^\/.]*$//')"
+basename="${1%.*}"
case "${*}" in
*.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;