diff --git a/config.yaml b/config.yaml index 268efb0..29ac887 100644 --- a/config.yaml +++ b/config.yaml @@ -31,6 +31,8 @@ profiles: - fusuma - alacritty - mpd + - imv + - mpv - dav - mutt - crontab @@ -144,6 +146,14 @@ dotfiles: kanshi: src: kanshi dst: ~/.config/kanshi/config + imv: + src: imv.conf + dst: ~/.config/imv/config + mpv: + src : mpv.conf + dst: ~/.config/mpv/mpv.conf + actions: + - sponsorblock actions: notify: notify-send "Updating dotfiles" makoreload: makoctl reload @@ -160,3 +170,7 @@ actions: crontab_install: | crontab -r crontab ~/.local/share/crontab + sponsorblock: > + git clone + https://github.com/po5/mpv_sponsorblock + ~/.config/mpv/scripts diff --git a/dotfiles/imv.conf b/dotfiles/imv.conf new file mode 100644 index 0000000..10b0261 --- /dev/null +++ b/dotfiles/imv.conf @@ -0,0 +1,62 @@ +# Default config for imv + +[options] + +# Suppress built-in key bindings, and specify them explicitly in this +# config file. +suppress_default_binds = true +initial_pan = 50 0 +scaling_mode = crop + +[aliases] +# Define aliases here. Any arguments passed to an alias are appended to the +# command. +# alias = command to run + +[binds] +# Define some key bindings +q = quit +y = exec wl-copy < $imv_current_file + +# Image navigation + = prev + = prev + = next + = next +gg = goto 0 + = goto -1 + +# Panning +{{@@ key.left @@}} = pan 50 0 +{{@@ key.down @@}} = pan 0 -50 +{{@@ key.up @@}} = pan 0 50 +{{@@ key.right @@}}= pan -50 0 + +# Zooming + = zoom 1 + = zoom 1 +i = zoom 1 + = zoom -1 + = zoom -1 +o = zoom -1 + +# Other commands +x = close +f = fullscreen +d = overlay +p = exec echo $imv_current_file +c = center +{{@@ key.next @@}} = scaling next + = upscaling next +a = zoom actual +r = reset + +# Gif playback + = next_frame + = toggle_playing + +# Slideshow control +w = slideshow +1 + = slideshow -1 + +# vim: ft=dosini:commentstring=#\ %s diff --git a/dotfiles/mpv.conf b/dotfiles/mpv.conf new file mode 100644 index 0000000..3c74947 --- /dev/null +++ b/dotfiles/mpv.conf @@ -0,0 +1,2 @@ +ytdl-format='bestvideo[height<=1080][vcodec!=vp9]+bestaudio' +osd-fractions