From 2ea0a921e8d0c100d5f894536a93f0dfdf45f67b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Nov 2024 15:11:50 +0100 Subject: Fix restore portal session option not working, close other notifications when showing a new one --- scripts/notify-saved-name.sh | 17 ----------------- scripts/save-video-in-game-folder.sh | 26 -------------------------- 2 files changed, 43 deletions(-) delete mode 100755 scripts/notify-saved-name.sh delete mode 100755 scripts/save-video-in-game-folder.sh (limited to 'scripts') diff --git a/scripts/notify-saved-name.sh b/scripts/notify-saved-name.sh deleted file mode 100755 index c8ca399..0000000 --- a/scripts/notify-saved-name.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -[ "$GSR_SHOW_SAVED_NOTIFICATION" != "1" ] && exit 0 - -filepath="$1" -type="$2" - -file_name="$(basename "$filepath")" - -case "$type" in - "regular") - gsr-notify --text "Saved recording to '$file_name'" --timeout 3.0 --icon record --bg-color "$GSR_NOTIFY_BG_COLOR" - ;; - "replay") - gsr-notify --text "Saved replay to '$file_name'" --timeout 3.0 --icon replay --bg-color "$GSR_NOTIFY_BG_COLOR" - ;; -esac \ No newline at end of file diff --git a/scripts/save-video-in-game-folder.sh b/scripts/save-video-in-game-folder.sh deleted file mode 100755 index 3d07d6a..0000000 --- a/scripts/save-video-in-game-folder.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -filepath="$1" -type="$2" - -file_name="$(basename "$filepath")" -file_dir="$(dirname "$filepath")" - -game_name=$(gsr-window-name focused || echo "Game") -game_name="$(echo "$game_name" | tr '/\\' '_')" -target_dir="$file_dir/$game_name" -new_filepath="$target_dir/$file_name" - -mkdir -p "$target_dir" -mv "$filepath" "$new_filepath" - -[ "$GSR_SHOW_SAVED_NOTIFICATION" != "1" ] && exit 0 - -case "$type" in - "regular") - gsr-notify --text "Saved recording to '$game_name/$file_name'" --timeout 3.0 --icon record --bg-color "$GSR_NOTIFY_BG_COLOR" - ;; - "replay") - gsr-notify --text "Saved replay to '$game_name/$file_name'" --timeout 3.0 --icon replay --bg-color "$GSR_NOTIFY_BG_COLOR" - ;; -esac \ No newline at end of file -- cgit v1.2.3