Created
December 11, 2021 04:24
-
-
Save itsMapleLeaf/41fe950ecd1b079175e9d1e88589815d to your computer and use it in GitHub Desktop.
cinnamon restart script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pkill -HUP -f "cinnamon --replace" | |
killall -HUP cinnamon | |
export DISPLAY=":0" | |
cinnamon & | |
# https://unix.stackexchange.com/questions/30370/how-to-get-the-pid-of-the-last-executed-command-in-shell-script | |
disown $! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment