From 0db4f9bef81b8673c6f466a4ad54814d387ff8fe Mon Sep 17 00:00:00 2001 From: atagen Date: Fri, 29 Sep 2023 01:30:54 +1000 Subject: [PATCH] qtile tweaks --- home/dots/qtile/config.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/home/dots/qtile/config.py b/home/dots/qtile/config.py index bfa6677..a7153fa 100755 --- a/home/dots/qtile/config.py +++ b/home/dots/qtile/config.py @@ -36,7 +36,8 @@ class Apps: fm = "thunar" logout = "wlogout" noti = "swaync-client -t" - ss = "grim -g \"$(slurp)\" -t png -o \"~/Pictures/$(date +%F_%H-%m-%S).png\" && notify-send \"Screenshot taken.\"" + ss = ["slurp |", "grim", "-g -", "-t png ~/screenshots/$(date +%F_%H-%m-%S).png"] + screenrec = "kooha" passmgr = "keepassxc" music = "strawberry" @@ -54,13 +55,14 @@ class OSD: keys = [ - Key([mod], "Return", lazy.spawn(Apps.term)), + Key([mod], "return", lazy.spawn(Apps.term)), Key([mod], "d", lazy.spawn(Apps.launcher)), Key([mod], "f", lazy.spawn(Apps.browser)), Key([mod], "e", lazy.spawn(Apps.fm)), - Key([mod, "Shift"], "e", lazy.spawn(Apps.logout)), + Key([mod, "shift"], "e", lazy.spawn(Apps.logout)), Key([mod], "n", lazy.spawn(Apps.noti)), - Key([mod, "Shift"], "s", lazy.spawn(Apps.ss)), + Key([mod, "shift"], "s", lazy.spawn(Apps.ss)), + Key([mod, "control", "shift"], "s", lazy.spawn(Apps.screenrec)), Key([], "XF86AudioMute", lazy.spawn(OSD.mute)), Key([], "XF86AudioRaiseVolume", lazy.spawn(OSD.vol_up)), Key([], "XF86AudioLowerVolume", lazy.spawn(OSD.vol_down)), @@ -191,6 +193,8 @@ def autostart(): home = os.path.expanduser("~/.config/qtile/autostart.sh") subprocess.Popen([home]) +# force float and fullscreen on various windows + @hook.subscribe.client_new def float_firefox(client): if "firefox" in client.get_wm_class() and client.name == "Library":