mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-14 15:44:47 +02:00
Update notifier: Steamify's own tray icon (single-color on GNOME)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
0e0bf57ca8
commit
7a84b0dbca
4 files changed
+22
-1
No files matched your search
@@ -35,6 +35,9 @@ notify_enable() {
|
||||
sudo pacman -S --needed --noconfirm "${missing[@]}" ||
|
||||
{ err "Installing ${missing[*]} failed."; return 1; }
|
||||
fi
|
||||
# The single-color icon for GNOME's top bar tray.
|
||||
patch_file steamify-symbolic.svg | install -D -m 644 /dev/stdin \
|
||||
"${XDG_DATA_HOME:-$HOME/.local/share}/icons/hicolor/symbolic/apps/steamify-symbolic.svg"
|
||||
patch_file steamify-notifier.py | install_executable "$NOTIFY_SCRIPT" 755 ||
|
||||
{ err "Couldn't write $NOTIFY_SCRIPT."; return 1; }
|
||||
mkdir -p "$NOTIFY_UNITS"
|
||||
@@ -51,6 +54,7 @@ notify_enable() {
|
||||
notify_disable() {
|
||||
user_systemctl disable --now "$NOTIFY_NAME.timer" "$NOTIFY_NAME.service" >/dev/null 2>&1
|
||||
rm -f "$NOTIFY_UNITS/$NOTIFY_NAME.service" "$NOTIFY_UNITS/$NOTIFY_NAME.timer" "$NOTIFY_SCRIPT"
|
||||
rm -f "${XDG_DATA_HOME:-$HOME/.local/share}/icons/hicolor/symbolic/apps/steamify-symbolic.svg"
|
||||
rmdir "$STEAMIFY_BIN" 2>/dev/null || true
|
||||
user_systemctl daemon-reload
|
||||
state_clear notify
|
||||
|
||||
Reference in new issue
Block a user