Switching from dunst to qtile's notifications in the status bar.

This commit is contained in:
Bartek Stalewski 2022-10-18 17:13:21 +02:00
parent 0f49c1f23b
commit b45a8b3c70
5 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,4 @@
import os
import psutil
import subprocess
from libqtile import bar, extension, hook, layout, widget
@ -5,6 +6,11 @@ from libqtile.config import Click, Drag, DropDown, Group, Key, Match, ScratchPad
from libqtile.dgroups import simple_key_binder
from libqtile.lazy import lazy
@hook.subscribe.startup_once
def autostart():
home = os.path.expanduser('~/.config/qtile/autostart.sh')
subprocess.Popen([home])
groups = [
Group("1", label="\uf292"),
Group("2", label="\uf738", matches=[Match(wm_class=["firefox"])]),
@ -122,6 +128,11 @@ screens = [
record_history=False,
),
widget.Spacer(),
widget.Notify(
default_timeout=5,
background="#e8b923",
foreground="#000000",
),
widget.GenPollText(
update_interval=1,
func=lambda: subprocess.check_output("sb-mail").decode(),