install.fairie/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl

14 lines
485 B
Cheetah
Raw Normal View History

{{- 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 -}}