hide gnome overview on startup
This commit is contained in:
parent
7008fa7e1f
commit
34ef701646
1 changed files with 12 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue