Skip to content

Instantly share code, notes, and snippets.

@1v
Last active April 12, 2022 05:05
Show Gist options
  • Save 1v/363393ebed0da5ed6f14678b6e031f21 to your computer and use it in GitHub Desktop.
Save 1v/363393ebed0da5ed6f14678b6e031f21 to your computer and use it in GitHub Desktop.
Bash script to run shutter on launch
cd ~/.local/bin
wget https://gist.github.com/1v/363393ebed0da5ed6f14678b6e031f21/raw/9c367b97565cc059f41ff95d9dc56db9085e13ca/shut-ter-auto-launch
chmod +x shut-ter-auto-launch

Add shut-ter-auto-launch to Startup Applications. Shutter will launch after any other GUI app is launched.

#!/bin/bash
process=shutter
makerun="shutter --min_at_startup"
while true
do
if ps ax | grep -v grep | grep $process
then
echo "Stop"
break
else
echo "Try"
nohup $makerun &
fi
sleep 5
done
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment