Add devilspie2 discord config

This commit is contained in:
Talia 2020-12-08 13:55:58 +01:00
parent c0a32f7180
commit d3270a52fa

13
devilspie2/discord.lua Normal file
View file

@ -0,0 +1,13 @@
local function opacity(opacity)
os.execute(string.format(
"xprop -id %s -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x%xffffff",
get_window_xid(), math.max(math.min(opacity, 255), 0)
))
end
if get_application_name():find "Discord$" then
unmaximize()
undecorate_window()
maximize()
set_window_workspace(get_workspace_count())
end