Added `mpv-pip` alias and improved mpv configuration and integration.

master
Meliurwen 3 years ago
parent 8d75d39c7d
commit 0c36d35d99
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      common-shells/.aliases
  2. 7
      i3/.config/i3/config
  3. 3
      i3/.config/i3/scripts/webcam-toggle.sh
  4. 25
      mpv/.config/mpv/mpv.conf
  5. 2
      polybar/.config/polybar/config

@ -8,3 +8,5 @@ alias diff='diff --color'
alias ls='ls --color=tty' alias ls='ls --color=tty'
alias mutt='TERM=${TERM}-256color mutt' alias mutt='TERM=${TERM}-256color mutt'
alias neomutt='TERM=${TERM}-256color neomutt' alias neomutt='TERM=${TERM}-256color neomutt'
alias mpv-pip='mpv --profile="pip"'

@ -1,3 +1,4 @@
#!/bin/i3 -c
# i3 config file (v4) # i3 config file (v4)
# #
# Please see https://i3wm.org/docs/userguide.html for a complete reference! # Please see https://i3wm.org/docs/userguide.html for a complete reference!
@ -187,9 +188,9 @@ bindsym $mod+Mod1+x mark --add quickswap
bindsym $mod+x swap container with mark quickswap; [con_mark="quickswap"] focus bindsym $mod+x swap container with mark quickswap; [con_mark="quickswap"] focus
# Webcam 1 dropdown # Webcam 1 dropdown
for_window [title="video0 - mpv"] floating enable for_window [title="mpv-floating-window"] floating enable
for_window [title="video0 - mpv"] sticky enable for_window [title="mpv-floating-window"] sticky enable
for_window [title="video0 - mpv"] border none for_window [title="mpv-floating-window"] border none
# WebCam Toggle # WebCam Toggle
bindsym XF86WebCam exec ~/.config/i3/scripts/webcam-toggle.sh bindsym XF86WebCam exec ~/.config/i3/scripts/webcam-toggle.sh

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
pkill -f /dev/video || \ pkill -f /dev/video || \
mpv --input-ipc-server="$HOME/.cache/mpvsocket-webcam" \ mpv --title="mpv-floating-window" \
--input-ipc-server="$HOME/.cache/mpvsocket-webcam" \
--no-osc \ --no-osc \
--no-input-default-bindings \ --no-input-default-bindings \
--input-conf=/dev/null \ --input-conf=/dev/null \

@ -6,24 +6,35 @@
#ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best #ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best
ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best
# In order to communicate to the Polybar's mpv module
input-ipc-server=~/.cache/mpvsocket
# Enable hardware acceleration (Intel specific) # Enable hardware acceleration (Intel specific)
## See: ## See:
## https://github.com/mpv-player/mpv/wiki/Hardware-decoding-on-Linux ## https://github.com/mpv-player/mpv/wiki/Hardware-decoding-on-Linux
## https://wiki.archlinux.org/index.php/Mpv#Hardware_video_acceleration ## https://wiki.archlinux.org/index.php/Mpv#Hardware_video_acceleration
hwdec=vaapi hwdec=vaapi
[default]
# In order to communicate to the Polybar's mpv module
input-ipc-server=~/.cache/mpvsocket
save-position-on-quit save-position-on-quit
[pip]
profile-desc="Floating Picture in Picture window"
title="mpv-floating-window"
no-osc
geometry=-0-0
autofit=30%
# File specific # File specific
[extension.webm] [webm]
profile-cond=(get('filename', ''):match('%.webm$') ~= nil) and (duration<=20)
loop-file=yes loop-file=yes
[extension.gifv] [gifv]
profile-cond=(get('filename', ''):match('%.gifv$') ~= nil)
loop-file=yes loop-file=yes
[extension.gif] [gif]
profile-cond=(get('filename', ''):match('%.gif$') ~= nil)
loop-file=yes loop-file=yes

@ -264,7 +264,7 @@ interval = 1
format = <label> format = <label>
label = %output% label = %output%
click-left = echo 'cycle pause' | socat - ~/.cache/mpvsocket click-left = printf "%s" "cycle pause" | socat - ~/.cache/mpvsocket
[module/bluetooth] [module/bluetooth]

Loading…
Cancel
Save