* Add Live Activities as configurable bar items * Fix activity owner monitoring and Morph list interactions * Keep activity rows stable during updates and tighten their layout * Use subtle theme tint for activity cards * Tighten activity title and progress spacing * Use theme accent for active progress rings * Fit compact activities to measured titles and badge * Expose Live Activities display controls in Settings * Open activity terminals and streamline the Morph header * Give Morph continuous icons and prioritize workspace navigation * Show activity progress inside its ring * Inset activity progress rings and strengthen their stroke * Fix activity lifecycle, command output handling and list navigation * Reduce activity update work and harden publisher lifetimes * Set up Live Activities for the detected user shell during installation * Document Activities setup, daily use and troubleshooting * Preserve Morph idle width across empty activity updates * Fix dimming flicker, hide inactive music tab and consolidate Activities docs * Fix panel clearance across styles and match previews to theme settings * Prevent panel blur from repainting neighboring islands --------- Co-authored-by: Samuel Onoja <[email protected]>
27 lines
1.1 KiB
Fish
27 lines
1.1 KiB
Fish
# Source explicitly from config.fish. Named event handlers compose with others.
|
|
status is-interactive; or return
|
|
set -q __ferese_installed; and return
|
|
set -g __ferese_installed 1
|
|
set -g __ferese_sequence 0
|
|
function __ferese_preexec --on-event fish_preexec
|
|
set -l saved $status
|
|
set -g __ferese_sequence (math $__ferese_sequence + 1)
|
|
set -g __ferese_local "fish-$fish_pid-$__ferese_sequence"
|
|
feresectl activity hook "$__ferese_local" --command (string sub -l 4096 -- "$argv[1]") --cwd (string sub -l 1024 -- "$PWD") >/dev/null 2>&1
|
|
return $saved
|
|
end
|
|
function __ferese_postexec --on-event fish_postexec
|
|
set -l saved $status
|
|
if set -q __ferese_local
|
|
if test $saved -eq 130; or test $saved -eq 143
|
|
feresectl activity cancel "$__ferese_local" >/dev/null 2>&1
|
|
else if test $saved -eq 0
|
|
feresectl activity end "$__ferese_local" --result ok >/dev/null 2>&1
|
|
else
|
|
feresectl activity end "$__ferese_local" --result fail >/dev/null 2>&1
|
|
end
|
|
set -e __ferese_local
|
|
end
|
|
return $saved
|
|
end
|