install.fairie/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl
2023-01-31 07:01:26 +00:00

13 lines
485 B
Cheetah

{{- if eq .host.distro.family "linux" -}}
#!/usr/bin/env bash
### Restart GNOME
if command -v gnome-shell > /dev/null; then
logg info 'Manually reload `gnome-shell`'
# logg info 'Reloading `gnome-shell`'
# killall -3 gnome-shell
# Disabled because it causes the terminal window with the logs to close
# If you don't mind this, you can enable (logs are still stored at "${XDG_DATA_HOME:-$HOME/.local/share}/megabyte-labs/betelgeuse.$(date +%s).log")
fi
{{ end -}}