aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-10-24 03:24:50 -0400
committertdro <tdro@users.noreply.github.com>2020-10-24 03:24:50 -0400
commit0591d82b230f55eba7e6ea771592b4cfe62c9c98 (patch)
tree9e415619331b505106940ffb1bd860822c7439c3 /.local
parent4fd3fa5ccc2f86423e944b4ddea14280e6b12480 (diff)
downloaddotfiles-0591d82b230f55eba7e6ea771592b4cfe62c9c98.tar.gz
dotfiles-0591d82b230f55eba7e6ea771592b4cfe62c9c98.tar.bz2
dotfiles-0591d82b230f55eba7e6ea771592b4cfe62c9c98.zip
.local/share/applications: Add video
Fix up audio and image handlers
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/mocplay4
-rwxr-xr-x.local/bin/mplayer-wrapper3
-rw-r--r--.local/share/applications/audio.desktop (renamed from .local/share/applications/music.desktop)2
-rw-r--r--.local/share/applications/image.desktop (renamed from .local/share/applications/feh.desktop)0
-rw-r--r--.local/share/applications/video.desktop6
5 files changed, 12 insertions, 3 deletions
diff --git a/.local/bin/mocplay b/.local/bin/mocplay
index b3fae33..2966ade 100755
--- a/.local/bin/mocplay
+++ b/.local/bin/mocplay
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -eu
config=$XDG_CONFIG_HOME/moc
-mocp -M "$config" -S > /dev/null 2>&1;
+mocp -M "$config" -S > /dev/null 2>&1 || true;
mocp -M "$config" -pca "$@"
diff --git a/.local/bin/mplayer-wrapper b/.local/bin/mplayer-wrapper
new file mode 100755
index 0000000..359a4f1
--- /dev/null
+++ b/.local/bin/mplayer-wrapper
@@ -0,0 +1,3 @@
+#!/bin/sh -eu
+export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer"
+mplayer "$@"
diff --git a/.local/share/applications/music.desktop b/.local/share/applications/audio.desktop
index 0ed63f0..f509fd8 100644
--- a/.local/share/applications/music.desktop
+++ b/.local/share/applications/audio.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
-Name=Music Player
+Name=Audio Player
Type=Application
Exec=mocplay %F
Terminal=false
diff --git a/.local/share/applications/feh.desktop b/.local/share/applications/image.desktop
index b76b6b6..b76b6b6 100644
--- a/.local/share/applications/feh.desktop
+++ b/.local/share/applications/image.desktop
diff --git a/.local/share/applications/video.desktop b/.local/share/applications/video.desktop
new file mode 100644
index 0000000..06ba60a
--- /dev/null
+++ b/.local/share/applications/video.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Video Player
+Type=Application
+Exec=mplayer-wrapper %F
+Terminal=false
+NoDisplay=true