Skip to content

Instantly share code, notes, and snippets.

@antsu
Last active July 17, 2018 00:04
Show Gist options
  • Save antsu/7449ef6c1a6e878b037758f8599c21bc to your computer and use it in GitHub Desktop.
Save antsu/7449ef6c1a6e878b037758f8599c21bc to your computer and use it in GitHub Desktop.
-- Install devilspie2 (not devilspie) and place this file under $HOME/.config/devilspie2
-- Set devilspie2 to autostart with your session
x, y, width, height = get_window_geometry()
name = get_window_name()
role = get_window_role()
class = get_window_class()
debug_print("Window name: "..name)
debug_print("Window role: "..role)
debug_print("Window class: "..class)
debug_print("Window dimensions: "..width.."x"..height)
if (name == "Skype" and role == "browser-window" and class == "Skype") then
if (width < 300 and height < 300) then
make_always_on_top()
set_skip_tasklist(true)
set_skip_pager(true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment