Qtile config file

from libqtile import bar, hook, layout, widget from libqtile.command import lazy from libqtile.config import Click, Drag, Group, Key, Screen import subprocess import os @hook.subscribe.startup_once def autostart(): home = os.path.expanduser('~/.config/qtile/autostart.sh') subprocess.call([home]) @hook.subscribe.startup def dbus_register(): x = os.environ['DESKTOP_AUTOSTART_ID'] subprocess.Popen(['dbus-send', '--session', '--print-reply=string', '--dest=org.gnome.SessionManager', '/org/gnome/SessionManager', 'org.gnome.SessionManager.RegisterClient', 'string:qtile', 'string:' + x]) wmname = 'qtile' mod = 'mod4' # Key bindings keys = [ # multiple screens Key([mod], "z", lazy.to_screen(0)), Key([mod], "e", lazy.to_screen(1)), # Window manager controls Key([mod, 'control'], 'r', lazy....

29 décembre 2016 · 2 min