Add Webarchy ultrawide browser, DNS UI, WLAN/st fixes, and media/CLI packages
- Port Webarchy GTK3/WebKit2GTK browser for 2160x1080 with flush-right vertical tab bar, DPI-scaled .Xresources SIGUSR1 theming, single-instance FIFO, and GPU crash CPU fallback (src/webarchy/webarchy.cpp, geminux-webarchy) - Cross-compile pure-C gdk-pixbuf 2.42.12 (geminux-gdk-pixbuf) and compile rootfs GSettings schemas so webkit2gtk-4.1 and gst-plugins-good install with zero Rust ELFs - Add zero-Rust geminux-mpv (mpv v0.40.0, FFmpeg n7.1.5, libplacebo, gst-libav 1.28.9) plus python3, py3-pip, mpg123, yt-dlp (quickjs), gnupg, gpg, pass, and pinentry-curses - Fix MT6797 WLAN peer deauth and CCMP EAPOL GTK rekey (patch 0007), set wifi.powersave = 2, pin active WLAN connections in geminux-net, and add the DNS tab with geminux-dnsctl - Restore st filled/hollow cursor focus across screenlock and libgemui grabs via dwm, libgemui, and st updates - Update README.md, MANUAL.md, ARCHITECTURE.md, POWER-OPTIMIZATION.md, check-rebuild.sh, and host Python tests
This commit is contained in:
1 parent
c12ed68d19
commit
e01806f3c8
82 files changed
+5499
-117
No files matched your search
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libavcodec.so.61.19.101
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libavdevice.so.61.3.100
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libavfilter.so.10.5.100
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libavformat.so.61.7.103
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libavutil.so.59.39.100
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libswresample.so.5.3.100
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
libswscale.so.8.3.100
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,51 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=mpv Media Player
|
||||
Name[ar]=مشغل وسائط mpv
|
||||
Name[ca]=Reproductor multimèdia mpv
|
||||
Name[cs]=mpv přehrávač
|
||||
Name[da]=mpv-medieafspiller
|
||||
Name[fr]=Lecteur multimédia mpv
|
||||
Name[it]=Lettore multimediale mpv
|
||||
Name[ja]=mpv メディアプレイヤー
|
||||
Name[pl]=Odtwarzacz mpv
|
||||
Name[ru]=Проигрыватель mpv
|
||||
Name[tr]=mpv Ortam Oynatıcı
|
||||
Name[zh_CN]=mpv 媒体播放器
|
||||
Name[zh_TW]=mpv 媒體播放器
|
||||
GenericName=Multimedia player
|
||||
GenericName[ar]=مُشَغِّل وسائط متعددة
|
||||
GenericName[cs]=Multimediální přehrávač
|
||||
GenericName[da]=Multimedieafspiller
|
||||
GenericName[fr]=Lecteur multimédia
|
||||
GenericName[it]=Lettore multimediale
|
||||
GenericName[ja]=マルチメディアプレイヤー
|
||||
GenericName[ru]=Мультимедийный проигрыватель
|
||||
GenericName[tr]=Çoklu ortam oynatıcı
|
||||
GenericName[zh_CN]=多媒体播放器
|
||||
GenericName[zh_TW]=多媒體播放器
|
||||
Comment=Play movies and songs
|
||||
Comment[ar]=شَغِّل الأفلام والأغاني
|
||||
Comment[ca]=Reproduïu vídeos i cançons
|
||||
Comment[cs]=Přehrává filmy a hudbu
|
||||
Comment[da]=Afspil film og sange
|
||||
Comment[de]=Filme und Musik abspielen
|
||||
Comment[es]=Reproduzca vídeos y canciones
|
||||
Comment[fr]=Lire des vidéos et des musiques
|
||||
Comment[ja]=映画や音楽を再生する
|
||||
Comment[it]=Riproduci video e canzoni
|
||||
Comment[pl]=Odtwarzaj filmy i muzykę
|
||||
Comment[ru]=Воспроизведение фильмов и музыки
|
||||
Comment[tr]=Filmleri ve şarkıları oynatın
|
||||
Comment[zh_CN]=播放电影和歌曲
|
||||
Comment[zh_TW]=播放電影和歌曲
|
||||
Icon=mpv
|
||||
TryExec=mpv
|
||||
Exec=mpv --player-operation-mode=pseudo-gui -- %U
|
||||
Terminal=false
|
||||
Categories=AudioVideo;Audio;Video;Player;TV;
|
||||
MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/aiff;audio/x-aiff;audio/m4a;audio/x-m4a;application/x-extension-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/mpeg2;audio/mpeg3;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/musepack;audio/x-musepack;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/x-m4v;video/mp4;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;audio/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;audio/x-matroska;application/x-matroska;video/webm;audio/webm;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-audio;application/x-ogm-video;application/x-shorten;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;audio/eac3;audio/amr-wb;video/mp2t;audio/flac;audio/mp4;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;audio/x-pn-au;video/3gp;video/3gpp;video/3gpp2;audio/3gpp;audio/3gpp2;video/dv;audio/dv;audio/opus;audio/vnd.dts;audio/vnd.dts.hd;audio/x-adpcm;application/x-cue;audio/m3u;audio/vnd.wave;video/vnd.avi;
|
||||
X-KDE-Protocols=appending,file,ftp,hls,http,https,mms,mpv,rist,rtmp,rtmps,rtmpt,rtmpts,rtp,rtsp,rtsps,sftp,smb,srt,srtp,webdav,webdavs
|
||||
StartupWMClass=mpv
|
||||
Keywords=mpv;media;player;video;audio;tv;
|
||||
Keywords[ar]=mpv;إم بي في;ام بي في;وسائط;مشغل;فيديو;مرئية;صوتي;تلفاز;
|
||||
@@ -0,0 +1,142 @@
|
||||
#
|
||||
# This file is part of mpv.
|
||||
#
|
||||
# mpv is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# mpv is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
_mpv_options()
|
||||
{
|
||||
if [ -z ${_mpv_options_cache+x} ]; then
|
||||
_mpv_options_cache=$(mpv --no-config --list-options)
|
||||
fi
|
||||
echo "$_mpv_options_cache"
|
||||
}
|
||||
|
||||
_mpv_get_args()
|
||||
{
|
||||
local doc=$(_mpv_options | grep -E "^\\s*$1\\s")
|
||||
local partial="$2"
|
||||
local type=$(echo "$doc" | awk '{print $2;}')
|
||||
|
||||
# We special-case profiles to ensure we read the config
|
||||
if [ "$1" = "--show-profile" ]; then
|
||||
type="ShowProfile"
|
||||
elif [ "$1" = "--profile" ]; then
|
||||
type="Profile"
|
||||
fi
|
||||
|
||||
declare -a candidates
|
||||
case $type in
|
||||
String)
|
||||
if echo "$doc" | grep -q '\[file\]' ; then
|
||||
if [ "$cur" = '=' ]; then
|
||||
# Without this, _filedir will try and complete files starting with '='
|
||||
cur=""
|
||||
fi
|
||||
_filedir 2>/dev/null || COMPREPLY=($(compgen -f))
|
||||
return 0
|
||||
else
|
||||
candidates=($(mpv --no-config $1=help | grep -v ':' | awk '{print $1;}'))
|
||||
candidates+=("help")
|
||||
fi
|
||||
;;
|
||||
Flag)
|
||||
candidates=("yes" "no" "help")
|
||||
;;
|
||||
Choices:|Object)
|
||||
candidates=($(mpv --no-config $1=help | grep -v ':' | awk '{print $1;}'))
|
||||
candidates+=("help")
|
||||
;;
|
||||
Image)
|
||||
candidates=($(mpv --no-config $1=help))
|
||||
candidates=("${candidates[@]:2}")
|
||||
candidates+=("help")
|
||||
;;
|
||||
Profile)
|
||||
candidates=($(mpv $1=help | grep -v ':' | awk '{print $1;}'))
|
||||
candidates+=("help")
|
||||
;;
|
||||
ShowProfile)
|
||||
candidates=($(mpv $1= | grep -v ':' | awk '{print $1;}'))
|
||||
;;
|
||||
*)
|
||||
# There are other categories; some of which we could do something smarter
|
||||
# about, with enough work.
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=($(compgen -W "${candidates[*]}" -- "${partial}"))
|
||||
if [ ${#COMPREPLY[@]} -gt 1 ]; then
|
||||
compopt -o nospace mpv
|
||||
fi
|
||||
}
|
||||
|
||||
# This regex detects special options where we don't want an '=' appended
|
||||
_mpv_special_regex='\s(Flag.*\[not in config files\]|Print)'
|
||||
_mpv_skip_regex='\sremoved \[deprecated\]'
|
||||
|
||||
_mpv_regular_options()
|
||||
{
|
||||
if [ -z ${_mpv_regular_options_cache+x} ]; then
|
||||
_mpv_regular_options_cache=($(_mpv_options | grep -vE "$_mpv_skip_regex" | \
|
||||
grep -vE "$_mpv_special_regex" | awk '{print "\\"$1;}' | grep '\--'))
|
||||
_mpv_regular_options_cache="${_mpv_regular_options_cache[*]}"
|
||||
fi
|
||||
echo "$_mpv_regular_options_cache"
|
||||
}
|
||||
|
||||
_mpv_special_options()
|
||||
{
|
||||
if [ -z ${_mpv_special_options_cache+x} ]; then
|
||||
_mpv_special_options_cache=($(_mpv_options | grep -vE "$_mpv_skip_regex" | \
|
||||
grep -E "$_mpv_special_regex" | awk '{print "\\"$1;}' | grep '\--'))
|
||||
_mpv_special_options_cache="${_mpv_special_options_cache[*]}"
|
||||
fi
|
||||
echo "$_mpv_special_options_cache"
|
||||
}
|
||||
|
||||
_mpv()
|
||||
{
|
||||
compopt +o nospace mpv
|
||||
|
||||
# _filedir requires the current candidate be in $cur
|
||||
local cur=${COMP_WORDS[COMP_CWORD]}
|
||||
local prev=${COMP_WORDS[((COMP_CWORD - 1))]}
|
||||
|
||||
if [ "$cur" = '=' ]; then
|
||||
# If the current word is '=' then we are looking for an argument for the
|
||||
# option specified by the previous word.
|
||||
_mpv_get_args "$prev"
|
||||
elif [ "$prev" = '=' ]; then
|
||||
# If the previous word is '=' then we are completing an argument for the
|
||||
# option specified by the word before the '='.
|
||||
local prevprev=${COMP_WORDS[((COMP_CWORD - 2))]}
|
||||
_mpv_get_args "$prevprev" "$cur"
|
||||
else
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=($(compgen -W "$(_mpv_regular_options)" -S '=' -- "${cur}"))
|
||||
local normal_count=${#COMPREPLY[@]}
|
||||
COMPREPLY+=($(compgen -W "$(_mpv_special_options)" -- "${cur}"))
|
||||
if [ $normal_count -gt 0 -o ${#COMPREPLY[@]} -gt 1 ]; then
|
||||
compopt -o nospace mpv
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
_filedir 2>/dev/null || COMPREPLY=($(compgen -f))
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
complete -F _mpv mpv
|
||||
@@ -0,0 +1,95 @@
|
||||
#
|
||||
# This file is part of mpv.
|
||||
#
|
||||
# mpv is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# mpv is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
#
|
||||
|
||||
# Add the completion for mpv. The first argument is the option with the dash
|
||||
# included and the rest of the arguments are directly passed to complete
|
||||
function _complete_mpv
|
||||
set --local opt $argv[1]
|
||||
set --local opt_type --short-option
|
||||
if string match -q -r '--' -- $opt
|
||||
set opt_type --long-option
|
||||
end
|
||||
complete --command mpv $opt_type (string trim --left --chars '-' -- $opt) $argv[2..]
|
||||
end
|
||||
|
||||
function _complete_mpv_run_help
|
||||
mpv $argv \
|
||||
# Remove the text before the option list
|
||||
| string match --regex --invert '^\w.*:' \
|
||||
| string trim
|
||||
end
|
||||
|
||||
# Print the possible values for the option
|
||||
function _complete_mpv_option -a opt
|
||||
# We insert a tab so that it is recognized as the description of the argument
|
||||
set --local value_description_rewrite 's/ /\t/'
|
||||
switch $opt
|
||||
case "--audio-device" "--vulkan-device"
|
||||
# The value is enclosed in single quotes and the description in parentheses
|
||||
set value_description_rewrite 's/\'([^\']+)\'\s+\((.*)\)$/\1\t\2/'
|
||||
end
|
||||
|
||||
_complete_mpv_run_help $opt=help \
|
||||
| sed -E $value_description_rewrite
|
||||
end
|
||||
|
||||
# Print the possible values for the image option
|
||||
function _complete_mpv_image_option -a opt
|
||||
mpv $opt=help | sed -e 's/.*: //' -e 's/ /\n/g'
|
||||
end
|
||||
|
||||
# Print the possible values for the profile option
|
||||
function _complete_mpv_profile_option -a opt
|
||||
_complete_mpv_run_help $opt=
|
||||
end
|
||||
|
||||
# Cache all the mpv options
|
||||
set --local mpv_options (mpv --no-config --list-options | string match --entire --regex '^\s*--' | string trim)
|
||||
|
||||
for opt_line in $mpv_options
|
||||
set --local opt_line_split (string split --max 1 ' ' -- $opt_line | string trim)
|
||||
set --local opt $opt_line_split[1]
|
||||
set --local doc $opt_line_split[2]
|
||||
set --local type (string split --field 1 ' ' $doc)
|
||||
if test $opt = '--show-profile'
|
||||
set type 'Profile'
|
||||
end
|
||||
switch $type
|
||||
case String
|
||||
if string match -q -r '\[file\]' $doc
|
||||
_complete_mpv $opt --force-files
|
||||
else
|
||||
_complete_mpv $opt --exclusive --arguments "help (_complete_mpv_option $opt)"
|
||||
end
|
||||
case Flag
|
||||
if string match -q -r '\[not in config files\]' $doc
|
||||
_complete_mpv $opt
|
||||
else
|
||||
_complete_mpv $opt --exclusive --arguments 'yes no help'
|
||||
end
|
||||
case 'Choices:' Object
|
||||
_complete_mpv $opt --exclusive --arguments "help (_complete_mpv_option $opt)"
|
||||
case Image
|
||||
_complete_mpv $opt --exclusive --arguments "help (_complete_mpv_image_option $opt)"
|
||||
case Profile
|
||||
_complete_mpv $opt --exclusive --arguments "help (_complete_mpv_profile_option $opt)"
|
||||
case '*'
|
||||
# Unimplemented categories
|
||||
_complete_mpv $opt
|
||||
end
|
||||
end
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 759 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
@@ -0,0 +1,198 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 63.999999 63.999999"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="mpv-gradient.svg">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4430">
|
||||
<stop
|
||||
style="stop-color:#65376e;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop4432" />
|
||||
<stop
|
||||
style="stop-color:#4c2354;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4434" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4418"
|
||||
inkscape:collect="always">
|
||||
<stop
|
||||
id="stop4420"
|
||||
offset="0"
|
||||
style="stop-color:#e6e2e8;stop-opacity:1" />
|
||||
<stop
|
||||
id="stop4422"
|
||||
offset="1"
|
||||
style="stop-color:#aaa3ad;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4402">
|
||||
<stop
|
||||
style="stop-color:#320f38;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop4404" />
|
||||
<stop
|
||||
style="stop-color:#5a2963;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4406" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4392">
|
||||
<stop
|
||||
style="stop-color:#6b3c74;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop4394" />
|
||||
<stop
|
||||
style="stop-color:#461b4d;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4396" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4382">
|
||||
<stop
|
||||
style="stop-color:#fafafa;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop4384" />
|
||||
<stop
|
||||
style="stop-color:#bababa;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4386" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4382"
|
||||
id="linearGradient5278"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(-86.873198,699.81912)"
|
||||
x1="97.187729"
|
||||
y1="305.67371"
|
||||
x2="140.38228"
|
||||
y2="335.64926" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4392"
|
||||
id="linearGradient5280"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(-32.973108,701.2155)"
|
||||
x1="50.828064"
|
||||
y1="298.31949"
|
||||
x2="78.197021"
|
||||
y2="339.65219" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4402"
|
||||
id="linearGradient5282"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(-31.48364,700.09839)"
|
||||
x1="53.620815"
|
||||
y1="305.76682"
|
||||
x2="77.824654"
|
||||
y2="331.73938" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4418"
|
||||
id="linearGradient5284"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(-87.152474,700.0053)"
|
||||
x1="110.31366"
|
||||
y1="312.28323"
|
||||
x2="126.88398"
|
||||
y2="329.41211" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4430"
|
||||
id="linearGradient5286"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(-87.152474,700.0053)"
|
||||
x1="115.97468"
|
||||
y1="317.41763"
|
||||
x2="119.37984"
|
||||
y2="322.43457" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="5.3710484"
|
||||
inkscape:cx="-19.490294"
|
||||
inkscape:cy="18.643164"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1016"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-988.3622)">
|
||||
<circle
|
||||
style="opacity:1;fill:url(#linearGradient5278);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.10161044;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99215686"
|
||||
id="path4380-0"
|
||||
cx="32"
|
||||
cy="1020.3622"
|
||||
r="27.949194" />
|
||||
<circle
|
||||
style="opacity:1;fill:url(#linearGradient5280);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0988237;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99215686"
|
||||
id="path4390-3"
|
||||
cx="32.727058"
|
||||
cy="1019.5079"
|
||||
r="25.950588" />
|
||||
<circle
|
||||
style="opacity:1;fill:url(#linearGradient5282);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99215686"
|
||||
id="path4400-3"
|
||||
cx="34.224396"
|
||||
cy="1017.7957"
|
||||
r="20" />
|
||||
<path
|
||||
style="fill:url(#linearGradient5284);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 44.481446,1020.4807 a 12.848894,12.848894 0 0 1 -12.84889,12.8489 12.848894,12.848894 0 0 1 -12.8489,-12.8489 12.848894,12.848894 0 0 1 12.8489,-12.8489 12.848894,12.848894 0 0 1 12.84889,12.8489 z"
|
||||
id="path4412-5"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="fill:url(#linearGradient5286);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 28.374316,1014.709 0,11.4502 9.21608,-5.8647 z"
|
||||
id="path4426-2"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.6 KiB |
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 63.999999 63.999999"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="mpv-symbolic.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="5.3710484"
|
||||
inkscape:cx="19.094402"
|
||||
inkscape:cy="44.778512"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1016"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-988.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.10161044;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:1;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.99215686"
|
||||
d="M 32.582031 2.9101562 A 27.949194 27.949194 0 0 0 4.6328125 30.859375 A 27.949194 27.949194 0 0 0 32.582031 58.808594 A 27.949194 27.949194 0 0 0 60.53125 30.859375 A 27.949194 27.949194 0 0 0 32.582031 2.9101562 z M 33.308594 4.0546875 A 25.950588 25.950588 0 0 1 59.259766 30.005859 A 25.950588 25.950588 0 0 1 33.308594 55.955078 A 25.950588 25.950588 0 0 1 7.359375 30.005859 A 25.950588 25.950588 0 0 1 33.308594 4.0546875 z "
|
||||
transform="translate(0,988.3622)"
|
||||
id="path4380" />
|
||||
<path
|
||||
id="path4412"
|
||||
transform="translate(0,988.3622)"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 32.214844,18.128906 a 12.848894,12.848894 0 0 0 -12.84961,12.84961 12.848894,12.848894 0 0 0 12.84961,12.847656 12.848894,12.848894 0 0 0 12.849609,-12.847656 12.848894,12.848894 0 0 0 -12.849609,-12.84961 z m -3.257813,7.078125 9.214844,5.583985 -9.214844,5.865234 0,-11.449219 z M 54.806488,28.2928 a 20,20 0 0 1 -20,20 20,20 0 0 1 -20,-20 20,20 0 0 1 20,-19.99997 20,20 0 0 1 20,19.99997 z" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>io.mpv.mpv</id>
|
||||
<name>mpv</name>
|
||||
<summary>A free, open source, and cross-platform media player</summary>
|
||||
<description>
|
||||
<p>mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.</p>
|
||||
<p>mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more.</p>
|
||||
<p>While mpv strives for minimalism and provides no real GUI, it has a small controller on top of the video for basic control.</p>
|
||||
<p>mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding can be enabled at runtime on demand.</p>
|
||||
<p>Powerful scripting capabilities can make the player do almost anything. There is a large selection of user scripts on the wiki.</p>
|
||||
<p>A straightforward C API was designed from the ground up to make mpv usable as a library and facilitate easy integration into other applications.</p>
|
||||
</description>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0-or-later AND LGPL-2.0-or-later</project_license>
|
||||
<developer_name>mpv.io</developer_name>
|
||||
<launchable type="desktop-id">mpv.desktop</launchable>
|
||||
<content_rating type="oars-1.1" />
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://mpv.io/images/mpv-screenshot-34cd36ae.jpg</image>
|
||||
<caption>Main window</caption>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="homepage">https://mpv.io/</url>
|
||||
<url type="bugtracker">https://github.com/mpv-player/mpv/issues</url>
|
||||
<url type="faq">https://github.com/mpv-player/mpv/wiki/FAQ</url>
|
||||
<url type="help">https://mpv.io/manual/stable</url>
|
||||
</component>
|
||||
@@ -0,0 +1,269 @@
|
||||
#compdef mpv
|
||||
|
||||
# ZSH completion for mpv
|
||||
#
|
||||
# For customization, see:
|
||||
# https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization
|
||||
|
||||
#
|
||||
# This file is part of mpv.
|
||||
#
|
||||
# mpv is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, or (at your option) any later version.
|
||||
#
|
||||
# mpv is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
local curcontext="$curcontext" state state_descr line
|
||||
typeset -A opt_args
|
||||
|
||||
local -a match mbegin mend
|
||||
local MATCH MBEGIN MEND
|
||||
|
||||
# By default, don't complete URLs unless no files match
|
||||
local -a tag_order
|
||||
zstyle -a ":completion:*:*:$service:*" tag-order tag_order ||
|
||||
zstyle ":completion:*:*:$service:*" tag-order '!urls'
|
||||
|
||||
local -a urls
|
||||
zstyle -a ":completion:*:*:$service:*:urls" urls urls ||
|
||||
zstyle ":completion:*:*:$service:*:urls" urls av://lavfi:testsrc av://lavfi:sine
|
||||
|
||||
typeset -ga _mpv_completion_arguments _mpv_completion_protocols
|
||||
|
||||
function _mpv_generate_arguments {
|
||||
|
||||
_mpv_completion_arguments=()
|
||||
|
||||
local -a option_aliases=()
|
||||
|
||||
local list_options_line
|
||||
for list_options_line in "${(@f)$($~words[1] --no-config --list-options)}"; do
|
||||
|
||||
[[ $list_options_line =~ $'^[ \t]+--([^ \t]+)[ \t]*(.*)' ]] || continue
|
||||
|
||||
local name=$match[1] desc=$match[2]
|
||||
|
||||
if [[ $desc == Flag* ]]; then
|
||||
|
||||
_mpv_completion_arguments+="$name"
|
||||
if [[ $name != (\{|\}|v|list-options) ]]; then
|
||||
# Negated version
|
||||
_mpv_completion_arguments+="no-$name"
|
||||
fi
|
||||
|
||||
elif [[ -z $desc ]]; then
|
||||
|
||||
# Sub-option for list option
|
||||
|
||||
if [[ $name == *-(clr|help) ]]; then
|
||||
# Like a flag
|
||||
_mpv_completion_arguments+="$name"
|
||||
else
|
||||
# Find the parent option and use that with this option's name
|
||||
_mpv_completion_arguments+="${(S)_mpv_completion_arguments[(R)${name%-*}=*]/*=/$name=}"
|
||||
fi
|
||||
|
||||
elif [[ $desc == Print* ]]; then
|
||||
|
||||
_mpv_completion_arguments+="$name"
|
||||
|
||||
elif [[ $desc =~ $'^alias for (--)?([^ \t]+)' ]]; then
|
||||
|
||||
# Save this for later; we might not have parsed the target option yet
|
||||
option_aliases+="$name $match[2]"
|
||||
|
||||
elif [[ $desc =~ $'^removed ' ]]; then
|
||||
|
||||
# skip
|
||||
|
||||
else
|
||||
|
||||
# Option takes argument
|
||||
|
||||
local entry="$name=-:${desc//:/\\:}:"
|
||||
|
||||
if [[ $desc =~ '^Choices: ([^(]*)' ]]; then
|
||||
|
||||
local -a choices=(${(s: :)match[1]})
|
||||
entry+="($choices)"
|
||||
# If "no" is one of the choices, it can also be negated like a flag
|
||||
# (--no-whatever is equivalent to --whatever=no).
|
||||
if (( ${+choices[(r)no]} )); then
|
||||
_mpv_completion_arguments+="no-$name"
|
||||
fi
|
||||
|
||||
elif [[ $desc == *'[file]'* ]]; then
|
||||
|
||||
entry+='->files'
|
||||
|
||||
elif [[ $desc = 'Object settings list'* || $name == (profile|audio-device|vulkan-device) ]]; then
|
||||
|
||||
entry+="->parse-help-$name"
|
||||
|
||||
elif [[ $name == show-profile ]]; then
|
||||
|
||||
entry+="->parse-help-profile"
|
||||
|
||||
elif [[ $name == h(|elp) ]]; then
|
||||
|
||||
entry+="->help-options"
|
||||
|
||||
fi
|
||||
|
||||
_mpv_completion_arguments+="$entry"
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
# Process aliases
|
||||
local to_from real_name arg_spec
|
||||
for to_from in $option_aliases; do
|
||||
# to_from='alias-name real-name'
|
||||
real_name=${to_from##* }
|
||||
for arg_spec in "$real_name" "$real_name=*" "no-$real_name"; do
|
||||
arg_spec=${_mpv_completion_arguments[(r)$arg_spec]}
|
||||
[[ -n $arg_spec ]] &&
|
||||
_mpv_completion_arguments+="${arg_spec/$real_name/${to_from%% *}}"
|
||||
done
|
||||
done
|
||||
|
||||
# Older versions of zsh have a bug where they won't complete an option listed
|
||||
# after one that's a prefix of it. To work around this, we can sort the
|
||||
# options by length, longest first, so that any prefix of an option will be
|
||||
# listed after it. On newer versions of zsh where the bug is fixed, we skip
|
||||
# this to avoid slowing down the first tab press any more than we have to.
|
||||
autoload -Uz is-at-least
|
||||
if ! is-at-least 5.2; then
|
||||
# If this were a real language, we wouldn't have to sort by prepending the
|
||||
# length, sorting the whole thing numerically, and then removing it again.
|
||||
local -a sort_tmp=()
|
||||
for arg_spec in $_mpv_completion_arguments; do
|
||||
sort_tmp+=${#arg_spec%%=*}_$arg_spec
|
||||
done
|
||||
_mpv_completion_arguments=(${${(On)sort_tmp}/#*_})
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function _mpv_generate_protocols {
|
||||
_mpv_completion_protocols=()
|
||||
local list_protos_line
|
||||
for list_protos_line in "${(@f)$($~words[1] --no-config --list-protocols)}"; do
|
||||
if [[ $list_protos_line =~ $'^[ \t]+(.*)' ]]; then
|
||||
_mpv_completion_protocols+="$match[1]"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function _mpv_generate_if_changed {
|
||||
# Called with $1 = 'arguments' or 'protocols'. Generates the respective list
|
||||
# on the first run and re-generates it if the executable being completed for
|
||||
# is different than the one we used to generate the cached list.
|
||||
typeset -gA _mpv_completion_binary
|
||||
local current_binary=${~words[1]:c}
|
||||
zmodload -F zsh/stat b:zstat
|
||||
current_binary+=T$(zstat +mtime $current_binary)
|
||||
if [[ $_mpv_completion_binary[$1] != $current_binary ]]; then
|
||||
# Use PCRE for regular expression matching if possible. This approximately
|
||||
# halves the execution time of generate_arguments compared to the default
|
||||
# POSIX regex, which translates to a more responsive first tab press.
|
||||
# However, we can't rely on PCRE being available, so we keep all our
|
||||
# patterns POSIX-compatible.
|
||||
zmodload -s -F zsh/pcre C:pcre-match && setopt re_match_pcre
|
||||
_mpv_generate_$1
|
||||
_mpv_completion_binary[$1]=$current_binary
|
||||
fi
|
||||
}
|
||||
|
||||
# Only consider generating arguments if the argument being completed looks like
|
||||
# an option. This way, the user should never see a delay when just completing a
|
||||
# filename.
|
||||
if [[ $words[$CURRENT] == -* ]]; then
|
||||
_mpv_generate_if_changed arguments
|
||||
fi
|
||||
|
||||
local rc=1
|
||||
|
||||
_arguments -C -S \*--$_mpv_completion_arguments '*:files:->mfiles' && rc=0
|
||||
|
||||
case $state in
|
||||
|
||||
parse-help-*)
|
||||
local option_name=${state#parse-help-}
|
||||
local no_config="--no-config"
|
||||
# Can't do non-capturing groups without pcre, so we index the ones we want
|
||||
local pattern name_group=1 desc_group=2
|
||||
case $option_name in
|
||||
audio-device|vulkan-device)
|
||||
pattern=$'^[ \t]+'\''([^'\'']*)'\'$'[ \t]+''\((.*)\)'
|
||||
;;
|
||||
profile)
|
||||
# The generic pattern would actually work in most cases for --profile,
|
||||
# but would break if a profile name contained spaces. This stricter one
|
||||
# only breaks if a profile name contains tabs.
|
||||
pattern=$'^\t([^\t]*)\t(.*)'
|
||||
# We actually want config so we can autocomplete the user's profiles
|
||||
no_config=""
|
||||
;;
|
||||
*)
|
||||
pattern=$'^[ \t]+(--'${option_name}$'=)?([^ \t]+)[ \t]*[-:]?[ \t]*(.*)'
|
||||
name_group=2 desc_group=3
|
||||
;;
|
||||
esac
|
||||
local -a values
|
||||
local current
|
||||
for current in "${(@f)$($~words[1] ${no_config} --${option_name}=help)}"; do
|
||||
[[ $current =~ $pattern ]] || continue;
|
||||
local name=${match[name_group]//:/\\:} desc=${match[desc_group]}
|
||||
if [[ -n $desc ]]; then
|
||||
values+="${name}:${desc}"
|
||||
else
|
||||
values+="${name}"
|
||||
fi
|
||||
done
|
||||
(( $#values )) && {
|
||||
compset -P '*,'
|
||||
compset -S ',*'
|
||||
_describe "$state_descr" values -r ',=: \t\n\-' && rc=0
|
||||
}
|
||||
;;
|
||||
|
||||
files)
|
||||
compset -P '*,'
|
||||
compset -S ',*'
|
||||
_files -r ',/ \t\n\-' && rc=0
|
||||
;;
|
||||
|
||||
mfiles)
|
||||
local expl
|
||||
_tags files urls
|
||||
while _tags; do
|
||||
_requested files expl 'media file' _files && rc=0
|
||||
if _requested urls; then
|
||||
while _next_label urls expl URL; do
|
||||
_urls "$expl[@]" && rc=0
|
||||
_mpv_generate_if_changed protocols
|
||||
compadd -S '' "$expl[@]" $_mpv_completion_protocols && rc=0
|
||||
done
|
||||
fi
|
||||
(( rc )) || return 0
|
||||
done
|
||||
;;
|
||||
|
||||
help-options)
|
||||
compadd ${${${_mpv_completion_arguments%%=*}:#no-*}:#*-(add|append|clr|pre|set|remove|toggle)}
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
return rc
|
||||
Reference in new issue
Block a user