Restarting immediately after the plugin rescan races Quickshell IPC handler creation and can crash the exiting shell. The normal update flow already restarts after migrations. Let this migration finish through live enablement and placement without adding timing workarounds.
13 lines
360 B
Bash
13 lines
360 B
Bash
echo "Install Elsewhen, the world clock plugin"
|
|
|
|
omarchy-pkg-add elsewhen
|
|
|
|
plugin="$HOME/.config/omarchy/plugins/omacom.elsewhen"
|
|
mkdir -p "$(dirname "$plugin")"
|
|
if [[ ! -e $plugin && ! -L $plugin ]]; then
|
|
ln -s /usr/share/omarchy/plugins/omacom.elsewhen "$plugin"
|
|
fi
|
|
|
|
omarchy-shell shell rescanPlugins
|
|
omarchy-bar put omacom.elsewhen --before omarchy.clock
|