From 10cbf5882b32b1eda9060103d66a77363fd5a438 Mon Sep 17 00:00:00 2001 From: itz-me-zappex <85901674+itz-me-zappex@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:44:49 +0300 Subject: [PATCH] Update to v1.3.6 - Fixed variable name on 819th line which prevented focus commands from running. --- flux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flux b/flux index 8faeee7..0a6aacb 100644 --- a/flux +++ b/flux @@ -308,7 +308,7 @@ unfocus = '' break done < <(LC_ALL='C' bash --version) echo "A daemon for X11 designed to automatically limit CPU usage of unfocused windows and run commands on focus and unfocus events. -flux 1.3.5 (bash $bash_version) +flux 1.3.6 (bash $bash_version) License: GPL-3.0 Repository: https://github.com/itz-me-zappex/flux This is free software: you are free to change and redistribute it. @@ -378,7 +378,7 @@ done < '/proc/cpuinfo' max_cpulimit="$(( cpu_threads * 100 ))" unset cpu_threads cpuinfo_line -# Create associative arrays to store values from config TODO +# Create associative arrays to store values from config declare -A config_key_name \ config_key_executable \ config_key_owner \ @@ -816,7 +816,7 @@ while read -r window_id; do fi fi # Run command on focus event if exists - if [[ -n "$v" && -n "${config_key_focus["$section_name"]}" && -z "$lazy" ]]; then + if [[ -n "$section_name" && -n "${config_key_focus["$section_name"]}" && -z "$lazy" ]]; then # Variables passthrough to interact with them using custom commands in 'focus' key export_flux_variables "$window_id" "$process_pid" "$process_name" "$process_executable" "$process_owner" "$process_command" nohup setsid bash -c "${config_key_focus["$section_name"]}" > /dev/null 2>&1 &