This commit is contained in:
2021-01-27 13:33:29 +01:00
parent 21f74a1108
commit 1379bf56ab
7 changed files with 45 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
ctrl+r cycle-values video-rotate 0 90 180 270 ctrl+r cycle-values video-rotate 0 90 180 270
ctrl+b cycle deband ctrl+b cycle deband
b cycle-values scale "bilinear" "spline64"; cycle-values dscale "bilinear" "mitchell"; cycle-values cscale "bilinear" "sinc"
ctrl+s sub-reload ctrl+s sub-reload
S screenshot-to-file /tmp/mpv-screenshot.png ; run sh -c "cat /tmp/mpv-screenshot.png | wl-copy -t image/png"
x add sub-delay -0.04
X add sub-delay +0.04

View File

@@ -1,17 +1,35 @@
#profile=gpu-hq profile=gpu-hq
#gpu-api=vulkan #gpu-api=vulkan
#gpu-context=waylandvk gpu-context=wayland
#hwdec=none hwdec=none
ao=jack #ao=jack
audio-channels=stereo #audio-channels=stereo
scale=spline64
dscale=mitchell
cscale=sinc
cscale-window=blackman
cscale-radius=3
deband=yes deband=yes
screenshot-format=png
#Interpolation
#blend-subtitles=yes
#video-sync=display-resample
#interpolation=yes
#tscale=box
#tscale-window=sphinx
#tscale-radius=1.0
#tscale-clamp=0.0
sub-gray=yes # pour pas avoir des subs jaunes de merde sub-gray=yes # pour pas avoir des subs jaunes de merde
sub-gauss=0.7 # ça rend les subs un peu moins carrés, peut-être à adapter à vos envies sub-gauss=0.7 # ça rend les subs un peu moins carrés, peut-être à adapter à vos envies
sub-font="Roboto Regular"
prefetch-playlist=yes prefetch-playlist=yes
rebase-start-time=no rebase-start-time=no
ytdl-format=bestvideo[height<=?1080]+bestaudio/best ytdl-format=bestvideo[height<=?1080]+bestaudio/best
ytdl-raw-options="rm-cache-dir=:yes-playlist=" #ytdl-raw-options="rm-cache-dir=:yes-playlist="
osd-fractions=yes

View File

@@ -1,3 +0,0 @@
start=0.000000
audio-delay=-0.000000
sub-delay=-0.200000

View File

@@ -31,6 +31,7 @@ set $srclocker swaylock -c 222222 -u -i eDP-1:~/wallpapers/radiance.png\
output * pos 1920 0 res 1920 1080 output * pos 1920 0 res 1920 1080
output eDP-1 pos 0 300 res 3840 2160 output eDP-1 pos 0 300 res 3840 2160
output "Goldstar Company Ltd M2080D 0x00000101" pos 1920 0 res 1920 1080 output "Goldstar Company Ltd M2080D 0x00000101" pos 1920 0 res 1920 1080
output "Dell Inc. DELL U2717D JXRPT83GAHKS" pos 1920 0 res 2560 1440
output HDMI-A-3 pos 1920 0 res 1920 1080 output HDMI-A-3 pos 1920 0 res 1920 1080
output * bg ~/wallpapers/filianore-u.jpg fill output * bg ~/wallpapers/filianore-u.jpg fill
focus output eDP-1 focus output eDP-1
@@ -121,7 +122,10 @@ input "1739:0:Synaptics_TM3276-031" {
'swaymsg exit' 'swaymsg exit'
# Screenshot # Screenshot
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy -t image/png bindsym Print exec slurp -d | grim -g - - | wl-copy -t image/png
bindsym Ctrl+Print exec swaymsg -t get_tree | jq -r 'recurse(.nodes[], .floating_nodes[]) | select(.focused and .pid).rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - - | wl-copy -t image/png
bindsym Shift+Print exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png
# #
# Moving around: # Moving around:
# #
@@ -293,3 +297,6 @@ exec discord
exec spotify exec spotify
exec xrdb -load ~/.Xresources exec xrdb -load ~/.Xresources
# Application keybinds
bindsym Ctrl+m exec mpv $(wl-paste -t text)

View File

@@ -13,7 +13,7 @@ swaymsg -t subscribe -m '[ "window" ]' | while read -r event ; do
if [ "$app_name" = "kitty" ] ; then if [ "$app_name" = "kitty" ] ; then
app_name="" app_name=""
elif [ "$app_name" = "chromium" ] ; then elif [ "$app_name" = "chromium" ] || [ "$app_name" = "Chromium" ]; then
case "$(jq -r '.container.name' <<< $event)" in case "$(jq -r '.container.name' <<< $event)" in
*YouTube*) *YouTube*)
app_name="" app_name=""

View File

@@ -1,3 +1,6 @@
export JAVA_HOME=/usr/lib/jvm/$(archlinux-java get) export JAVA_HOME=/usr/lib/jvm/$(archlinux-java get)
export GDK_BACKEND=x11 export GDK_BACKEND=x11
export EDITOR=nvim export EDITOR=nvim
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland

3
.zshrc
View File

@@ -33,3 +33,6 @@ if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases source ~/.bash_aliases
fi fi
eval $(thefuck --alias) eval $(thefuck --alias)
alias chromium="export GDK_BACKEND=wayland && chromium --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias discord="export GDK_BACKEND=wayland && discord-canary --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"