This commit is contained in:
Stephan Raabe
2023-02-24 11:05:07 +01:00
parent 79eff7ef55
commit 6c20fdbf8f
4 changed files with 38 additions and 11 deletions
+18 -10
View File
@@ -62,6 +62,13 @@ if (os.path.isfile("/usr/bin/VBoxService")):
else:
terminal = "alacritty"
# --------------------------------------------------------
# Check for Desktop/Laptop
# --------------------------------------------------------
# Use output from /sys/class/dmi/id/chassis_type
# 3 = Desktop
# --------------------------------------------------------
# Set default apps
# --------------------------------------------------------
@@ -255,15 +262,6 @@ screens = [
text='|',
foreground=ColorC,
),
# widget.CPU(),
# widget.DF(
# visible_on_warn=False,
# mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e htop')},
# ),
# widget.TextBox(
# text='|',
# foreground=ColorC,
# ),
widget.Volume(
fmt='Vol: {}',
),
@@ -272,7 +270,17 @@ screens = [
foreground=ColorC,
),
widget.Battery(),
# widget.Backlight(),
widget.TextBox(
text='|',
foreground=ColorC,
),
widget.GenPollText(
name = "checkupdates",
fmt="Updates: {}",
update_interval = 3600,
func = lambda: subprocess.check_output("/home/raabe/dotfiles/scripts/checkupdates.sh").decode()[:-1],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e yay')},
),
widget.TextBox(
text='|',
foreground=ColorC,