Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { rule = { class = "mpv" },
- callback = function(c)
- local w_area = screen[ c.screen ].workarea
- awful.util.spawn_with_shell("mocp -P")
- -- if awful.tag.getidx() == 2
- -- then c:geometry( { width = 400 , height = 300, x = w_area.width - 640, y =w_area.height - 400 } )
- -- else c:geometry( { width = 100 , height = 100, x = w_area.width - 640, y =w_area.height - 400 } )
- c:geometry( { width = 400, height = 300 } )
- c:geometry( { x = w_area.width - c:geometry().width, y = w_area.height - c:geometry().height } )
- -- c:connect_signal("property::fullscreen", function() if not c.fullscreen then c.ontop = true end end)
- end, properties = { ontop = true, floating = true, maximized_horizontal = false, maximized_vertical = false, sticky = true } },
- Exec=/usr/bin/mocp --playit %f
- Exec=/usr/bin/mocp -c -a %f -p
- function mocp_ff()
- awful.util.spawn_with_shell("mocp --seek +10")
- return false
- end
- function mocp_rew()
- awful.util.spawn_with_shell("mocp --seek -10")
- return false
- end
- mocwidget:buttons(awful.util.table.join(
- awful.button({ }, 1, function () mocp_pause() end),
- awful.button({ }, 5, function () mocp_rew() end),
- awful.button({ }, 4, function () mocp_ff() end)
- ))
- -- scrot_button
- scrot_button = awful.widget.button({ image = beautiful.scrot_icon })
- scrot_button:buttons(awful.util.table.join(
- awful.button({ }, 1, function () awful.util.spawn_with_shell("sleep 0.2; scrot -s -e 'mv $f ~/PrintScreen/'") end)
- ))
- ++scrot_button,
- ++theme.scrot_icon = config_dir .. "/themes/haru/icons2/screenshot.png"
- Layout1 = directory(0,0,75%,85%):playlist(35%,45%,65%,55%)
- gif
- ffmpeg -ignore_loop 0 -i anime.gif -i anime.mp3 -c:a libopus -c:v libvpx -b:v 200K -b:a 144k -shortest anime.webm
- 2-pass
- ffmpeg -i pdp.mp4 -c:v libvpx -pass 1 -b:v 1000K -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -an -f webm /dev/null
- ffmpeg -i pdp.mp4 -c:v libvpx -pass 2 -b:v 1M -threads 2 -speed 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libvorbis -b:a 128k -f webm out.webm
- merge
- ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a]concat=n=3:v=1:a=1[v][a]" -map [v] -map [a] output_video.mp4
- crop
- ffmpeg -i input.mp4 -vf "crop=480:270:200:100" -c:v libx264 -crf 0 -c:a copy output.mp4
- ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192K -f mp3 sound.mp3
Add Comment
Please, Sign In to add comment