qtile tweaks

This commit is contained in:
atagen 2023-09-29 01:30:54 +10:00
parent eabb1371eb
commit 0db4f9bef8

View file

@ -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":