Browse Source

.local/share/applications: Add video

Fix up audio and image handlers
master
tdro 1 month ago
parent
commit
0591d82b23
6 changed files with 159 additions and 150 deletions
  1. +147
    -147
      .config/mimeapps.list
  2. +2
    -2
      .local/bin/mocplay
  3. +3
    -0
      .local/bin/mplayer-wrapper
  4. +1
    -1
      .local/share/applications/audio.desktop
  5. +0
    -0
      .local/share/applications/image.desktop
  6. +6
    -0
      .local/share/applications/video.desktop

+ 147
- 147
.config/mimeapps.list
File diff suppressed because it is too large
View File


+ 2
- 2
.local/bin/mocplay View File

@@ -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 "$@"

+ 3
- 0
.local/bin/mplayer-wrapper View File

@@ -0,0 +1,3 @@
#!/bin/sh -eu
export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer"
mplayer "$@"

.local/share/applications/music.desktop → .local/share/applications/audio.desktop View File

@@ -1,5 +1,5 @@
[Desktop Entry]
Name=Music Player
Name=Audio Player
Type=Application
Exec=mocplay %F
Terminal=false

.local/share/applications/feh.desktop → .local/share/applications/image.desktop View File


+ 6
- 0
.local/share/applications/video.desktop View File

@@ -0,0 +1,6 @@
[Desktop Entry]
Name=Video Player
Type=Application
Exec=mplayer-wrapper %F
Terminal=false
NoDisplay=true

Loading…
Cancel
Save