qtile: cleanup config
This commit is contained in:
parent
b966c3464a
commit
027e05d772
1 changed files with 1 additions and 43 deletions
|
@ -96,46 +96,6 @@ handler = logging.handlers.RotatingFileHandler(
|
||||||
handler.setLevel(logging.WARN)
|
handler.setLevel(logging.WARN)
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
|
||||||
# @hook.subscribe.screen_change
|
|
||||||
# def restart_on_randr(qtile, ev):
|
|
||||||
# import time
|
|
||||||
#
|
|
||||||
# with open(os.path.join(os.environ['TEMPDIR', default="/tmp"], ".qtilelastrestart"), "w"):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
# lastRestart = 0
|
|
||||||
# with open(os.path.join(os.environ['TEMPDIR', default="/tmp"], ".qtilelastrestart"), "r+") as lastRestartFile:
|
|
||||||
# lastRestartStr = lastRestartFile.read()
|
|
||||||
# if len(lastRestartStr) > 0:
|
|
||||||
# lastRestart = float(lastRestartStr)
|
|
||||||
#
|
|
||||||
# print("screen changed. (last change: %s)" % lastRestart)
|
|
||||||
#
|
|
||||||
# delta=time.time()-lastRestart
|
|
||||||
# if delta > 3:
|
|
||||||
# import subprocess
|
|
||||||
# lastRestartFile.seek(0)
|
|
||||||
# lastRestartFile.write("%s" % time.time())
|
|
||||||
# lastRestartFile.truncate()
|
|
||||||
#
|
|
||||||
# subprocess.call(["autorandr","-c"])
|
|
||||||
# qtile.cmd_restart()
|
|
||||||
# else:
|
|
||||||
# print("screen is changing too fast: %s" % delta)
|
|
||||||
#
|
|
||||||
# active_screen = 0
|
|
||||||
# @hook.subscribe.client_focus
|
|
||||||
# def focus_changed(window):
|
|
||||||
# global active_screen
|
|
||||||
# pass
|
|
||||||
# active_screen = window.group.screen.index
|
|
||||||
#
|
|
||||||
# @hook.subscribe.current_screen_change
|
|
||||||
# def move_widget():
|
|
||||||
# global active_screen
|
|
||||||
# systray = widget.Systray()
|
|
||||||
# logging.warn("Screen changed to %i" % active_screen)
|
|
||||||
|
|
||||||
key_super = "mod4"
|
key_super = "mod4"
|
||||||
key_alt = "mod1"
|
key_alt = "mod1"
|
||||||
key_control = "control"
|
key_control = "control"
|
||||||
|
@ -261,8 +221,6 @@ for i in range(0, screens_count+1):
|
||||||
|
|
||||||
keys.append(Key([key_super, "shift"], "%i" % (i+1), lazy.to_screen(i)))
|
keys.append(Key([key_super, "shift"], "%i" % (i+1), lazy.to_screen(i)))
|
||||||
|
|
||||||
# subscribe.current_screen_change(func)
|
|
||||||
|
|
||||||
dgroups_key_binder = None
|
dgroups_key_binder = None
|
||||||
dgroups_app_rules = []
|
dgroups_app_rules = []
|
||||||
main = None
|
main = None
|
||||||
|
@ -286,7 +244,7 @@ def disable_floating_for_all_new_windows(window):
|
||||||
window.floating = False
|
window.floating = False
|
||||||
|
|
||||||
@hook.subscribe.client_new
|
@hook.subscribe.client_new
|
||||||
def disable_floating_for_all_new_windows(window):
|
def print_new_window(window):
|
||||||
print("new window: ", window)
|
print("new window: ", window)
|
||||||
|
|
||||||
wmname = "LG3D"
|
wmname = "LG3D"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue