Linux Lite Forums
Workaround for Clementine Not Preventing Sleep (On AC Power) - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7)
+--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32)
+--- Thread: Workaround for Clementine Not Preventing Sleep (On AC Power) (/showthread.php?tid=2326)



Workaround for Clementine Not Preventing Sleep (On AC Power) - Duckeenie - 10-22-2015


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:
#!/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! Tongue


Re: Workaround for Clementine Not Preventing Sleep (On AC Power) - Valtam - 10-24-2015

Nice share Duckeenie Smile


Re: Workaround for Clementine Not Preventing Sleep (On AC Power) - N4RPS - 11-11-2015

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