Advertisement
constantin-net

mpv_in_rc.lua

Aug 29th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1.     { rule = { class = "mpv" },
  2.                         callback = function(c)
  3.                             local w_area = screen[ c.screen ].workarea
  4.                             awful.util.spawn_with_shell("mocp -P")
  5.                             c:geometry( { width = 600, height = 450 } )
  6.                             c:geometry( { x = w_area.width - c:geometry().width, y = w_area.height - c:geometry().height } )
  7.                             c:add_signal("property::fullscreen", function() if not c.fullscreen then c.ontop = true end end)
  8.                         end,
  9.                         properties = { ontop = true, floating = true, maximized_horizontal = false, maximized_vertical = false, switchtotag = false, tag = tags[1][4], sticky = true } },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement