Switch to swaylock and resume hook.
This commit is contained in:
parent
b8c6cf6aa4
commit
012a5487f4
@ -25,6 +25,11 @@ def autostop():
|
||||
autostop = os.path.expanduser('~/.config/qtile/stop.sh')
|
||||
subprocess.Popen([autostop])
|
||||
|
||||
@hook.subscribe.resume
|
||||
def resume():
|
||||
wallpaper = os.path.expanduser('~/.config/qtile/wallpaper.img')
|
||||
subprocess.Popen(['swaylock', '--image', wallpaper])
|
||||
|
||||
mod = "mod4"
|
||||
groups = [
|
||||
Group("1", label="\uf292"),
|
||||
@ -74,7 +79,7 @@ keys = [
|
||||
# WM control
|
||||
Key([mod], "f", lazy.window.toggle_floating()),
|
||||
Key([mod], "q", lazy.window.kill()),
|
||||
Key([mod, "control", "shift"], "l", lazy.spawn("physlock")),
|
||||
Key([mod, "control", "shift"], "l", lazy.spawn("swaylock --image ~/.config/qtile/wallpaper.img")),
|
||||
Key([mod, "control", "shift"], "q", lazy.shutdown()),
|
||||
Key([mod, "control", "shift"], "r", lazy.reload_config()),
|
||||
Key([mod], "r", lazy.reload_config()),
|
||||
|
Loading…
Reference in New Issue
Block a user