summaryrefslogtreecommitdiff
path: root/lock
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-07-09 00:59:44 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-07-09 00:59:44 +0300
commitdc3c38a2d3eba90470eef10c4274ed4798a57715 (patch)
tree1e44129a1c15f5f14aca5ee905349fde16f0c93c /lock
parentbee6599cc8d0c66bb4e6ed0670d30edc5066805e (diff)
Fix to the lock script for ST windows + routine changes.
Changes to be committed: modified: Vencord/settings/settings.json modified: btop/btop.conf modified: htop/htoprc modified: lock modified: tmux/tmux.conf modified: zsh/aliases
Diffstat (limited to 'lock')
-rwxr-xr-xlock6
1 files changed, 6 insertions, 0 deletions
diff --git a/lock b/lock
index 367a916..3318999 100755
--- a/lock
+++ b/lock
@@ -44,6 +44,7 @@ declare -a LIST_OF_WINDOW_TITLES_THAT_PREVENT_LOCKING=(
"Google Meet"
"Microsoft Teams"
"Discord"
+ "Dino"
"Slack"
"Plex"
"Kodi"
@@ -87,6 +88,11 @@ should_lock() {
title=$(get_window_title $id)
echo "Active window:$title"
+ if [[ $title =~ "st" ]]; then
+ echo "ST windows are not considered as a fullscreen window and will not prevent locking the screen"
+ return 0
+ fi
+
if is_fullscreen $id; then
echo "Fullscreen window detected:$title"
return 1