From 6aaea9cf4b283d41016e60735f52c8feb3cd0c9e Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 22 Aug 2023 19:46:15 +0100 Subject: Initial commit --- .config/qtile/statusbar/void-updates.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .config/qtile/statusbar/void-updates.sh (limited to '.config/qtile/statusbar/void-updates.sh') diff --git a/.config/qtile/statusbar/void-updates.sh b/.config/qtile/statusbar/void-updates.sh new file mode 100755 index 0000000..94298ae --- /dev/null +++ b/.config/qtile/statusbar/void-updates.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +case $1 in + key-update) + foot bash -c "sudo xbps-install -Suv" + qtile cmd-obj -o widget checkupdates -f force_update + ;; + *) + # Supress error codes to stop issues with CheckUpdates widget + xbps-install -Mun 2> /dev/null + exit 0 + ;; +esac -- cgit v1.2.3