Advertisement
antsu

devilspie2-fix-skype-floating-window.lua

Jul 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. -- Install devilspie2 (not devilspie) and place this file under $HOME/.config/devilspie2
  2. -- Set devilspie2 to autostart with your session
  3.  
  4. x, y, width, height = get_window_geometry()
  5. name = get_window_name()
  6. role = get_window_role()
  7. class = get_window_class()
  8.  
  9. debug_print("Window name: "..name)
  10. debug_print("Window role: "..role)
  11. debug_print("Window class: "..class)
  12. debug_print("Window dimensions: "..width.."x"..height)
  13.  
  14. if (name == "Skype" and role == "browser-window" and class == "Skype") then
  15.     if (width < 300 and height < 300) then
  16.         make_always_on_top()
  17.         set_skip_tasklist(true)
  18.         set_skip_pager(true)
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement