Running a command when screen locks

I use this to fire off a cryptominer when my screen locks. Works on Fedora 26 I run this command as a batch file in screen. Could be made into a daemon i suppose but screen works good enough for now dbus-monitor –session “type=signal,interface=org.gnome.ScreenSaver” | while read MSG; do ┬áLOCK_STAT=`echo $MSG | grep boolean | […]

Read More »

Compress a folder and send to to another server via SSH

This command will tar an entire folder, pass it to gzip then pass it to SSH which then in turn writes the resultant output to a file on a remote server Useful for backing up small folders to remote servers Dont forget to ssh-copy-id on the source server so password-less authentications works tar -cvf – […]

Read More »