From 1888ec9c9625f4deba3616fd3492613f06107e8a Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 19 Apr 2024 08:40:40 +0200 Subject: [PATCH] Fix unnecessary if statement logic --- .local/bin/xmonconf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.local/bin/xmonconf b/.local/bin/xmonconf index 77dfe14..fb820be 100755 --- a/.local/bin/xmonconf +++ b/.local/bin/xmonconf @@ -351,13 +351,12 @@ main() { fi fi - if "$profile_found"; then - disable_disconnected_monitors - else + if ! "$profile_found"; then echo "No profile found" return 1 fi + disable_disconnected_monitors move_nonexistent_i3_workspaces "$primary_monitor" 10 i3-msg restart >/dev/null }