Linux Lite Forums

Development => Scripting and Bash => Topic started by: Duckeenie on October 22, 2015, 01:34:28 AM

Title: Workaround for Clementine Not Preventing Sleep (On AC Power)
Post by: Duckeenie on October 22, 2015, 01:34:28 AM

Clementine satisfies most of my needs at the moment but it doesn't prevent sleep while playing,  which I find pretty annoying. To overcome this I pointed the application launcher to my first ever simple bash script.

Code: [Select]
#!/bin/bash
clear
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-on-ac -s 0
clementine
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-on-ac -s 15

I wanna see the Linux guru's follow this bad boy! :P
Title: Re: Workaround for Clementine Not Preventing Sleep (On AC Power)
Post by: Jerry on October 24, 2015, 06:07:06 AM
Nice share Duckeenie :)
Title: Re: Workaround for Clementine Not Preventing Sleep (On AC Power)
Post by: N4RPS on November 11, 2015, 12:05:02 AM
Hello!

I currently use Caffeine to keep my TV recordings from stopping on me, but your script looks a whole lot simpler! I also thank you.

I'll be removing Caffeine now. Besides, t's a pain to have to add Caffeine dark-theme icons every time I install it...

73 DE N4RPS
Rob