Skip to content

Instantly share code, notes, and snippets.

@arooni
Created January 24, 2021 16:37
Show Gist options
  • Save arooni/b91438a6af00c6d9c215e554e63b359e to your computer and use it in GitHub Desktop.
Save arooni/b91438a6af00c6d9c215e554e63b359e to your computer and use it in GitHub Desktop.
[I] ~  functions fix-gnome-nice
# Defined in /home/david/.config/fish/config.fish @ line 1070
function fix-gnome-nice
# see : https://askubuntu.com/questions/455301/how-can-i-restart-gnome-shell-after-it-freezes-or-becomes-unresponsive
#gnome-shell --replace
# env DISPLAY=:0 gnome-shell -r &
#killall -HUP gnome-shell
#killall -3 gnome-shell
dbus-send --type=method_call --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'global.reexec_self()'
end
[I] ~  functions fix-gnome-mean
# Defined in /home/david/.config/fish/config.fish @ line 1080
function fix-gnome-mean
# sudo service lightdm restart
echo "kill this process with sudo killall -9 david for ultimate gnome success"
cat /etc/X11/default-display-manager
end
[I] ~ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment