Skip to content

Commit

Permalink
Update to v1.3.6
Browse files Browse the repository at this point in the history
- Fixed variable name on 819th line which prevented focus commands from running.
  • Loading branch information
itz-me-zappex authored Sep 29, 2024
1 parent dc28651 commit 10cbf58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flux
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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 &
Expand Down

0 comments on commit 10cbf58

Please sign in to comment.