From 38a4e8e941ee07a15b0aa5d388a69df061585ec9 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 11 Jun 2024 20:51:49 -0500 Subject: separate sway-de folder causes problems with overlapping stow responsibilities --- sway-de/sway/.local/bin/dnf-needs-restarting | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 sway-de/sway/.local/bin/dnf-needs-restarting (limited to 'sway-de/sway/.local/bin') diff --git a/sway-de/sway/.local/bin/dnf-needs-restarting b/sway-de/sway/.local/bin/dnf-needs-restarting deleted file mode 100755 index 7fc6542..0000000 --- a/sway-de/sway/.local/bin/dnf-needs-restarting +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -if command -v dnf > /dev/null; then - DNFCMD="dnf" -fi -if command -v jq > /dev/null; then - JQCMD="jq" -fi -if [ -z "${DNFCMD+x}" ] || [ -z "${JQCMD+x}" ]; then - echo "{\"tooltip\": \"requires 'jq' and 'dnf'\", \"text\": \"\"}" - exit 1 -fi - -set -u - -if ! output="$($DNFCMD needs-restarting -r)"; then - icon="" -else - icon="" -fi - -# this is a literal expression for `jq` -# shellcheck disable=SC2016 -$JQCMD --unbuffered -n -c '{tooltip: $ARGS.positional[0], text: $ARGS.positional[1]}' --args "$output" "$icon" -- cgit v1.2.3