I'm looking to keep a python3 program running up on the desktop after I hit super+d. Basically trying to keep a webpage up as my background using openbox.
I know I can use devilspie as an after the fact setup to change _OB_APP_TYPE to desktop using...
devilspie snippet
Code:
(if
(matches (application_name) "mypythonscript.py")
(begin
(wintype "desktop")
)
)
but since I'm using a custom program I'd like to also have it set this type on its own without devilspie if possible. I've looked around and have tried different search terms with no avail.
mypythonscript.py
Code:
#!/usr/bin/env python3
import sys
import signal
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QUrl
from PyQt5.QtWebKitWidgets import QWebView
if __name__ == "__main__":
app = QApplication(sys.argv)
#allow ctrl+c
signal.signal(signal.SIGINT, signal.SIG_DFL)
#init browser
browser = QWebView()
browser.load(QUrl("https://www.google.com/"))
#show browser
browser.show()
#close when window closes
sys.exit(app.exec_())
openbox config snippet
Code:
<application class="mypythonscript.py">
<decor>no</decor>
<position force="yes">
<monitor>2</monitor>
</position>
<maximized>yes</maximized>
<layer>below</layer>
<desktop>all</desktop>
<skip_taskbar>yes</skip_taskbar>
<skip_pager>yes</skip_pager>
</application>
any help on this or what I should be reading, or even proper names of things if I'm using improper ones to search for would be awesome.