hide gnome overview on startup

This commit is contained in:
j 2023-11-20 23:27:49 +00:00
parent 7008fa7e1f
commit 34ef701646

View file

@ -24,6 +24,14 @@ FONT_BORDER = 4
SUB_MARGIN = 2 * 36 + 6 SUB_MARGIN = 2 * 36 + 6
def hide_gnome_overview():
import dbus
bus = dbus.SessionBus()
shell = bus.get_object('org.gnome.Shell', '/org/gnome/Shell')
props = dbus.Interface(shell, 'org.freedesktop.DBus.Properties')
props.Set('org.gnome.Shell', 'OverviewActive', False)
def mpv_log(loglevel, component, message): def mpv_log(loglevel, component, message):
logger.info('[{}] {}: {}'.format(loglevel, component, message)) logger.info('[{}] {}: {}'.format(loglevel, component, message))
@ -277,4 +285,8 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
try:
hide_gnome_overview()
except:
pass
main() main()