Add devilspie2 discord config
This commit is contained in:
parent
c0a32f7180
commit
d3270a52fa
1 changed files with 13 additions and 0 deletions
13
devilspie2/discord.lua
Normal file
13
devilspie2/discord.lua
Normal 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
|
Loading…
Reference in a new issue