Linux Lite 7.6 Final Released - Click here for more


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Workaround for Clementine Not Preventing Sleep (On AC Power)
#1

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
Don't believe half of what you see and none of what you hear

- Lou Reed
Reply
#2
Nice share Duckeenie Smile
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#3
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

[Image: EtYqOrS.png%5D]

A gun in your hand is worth more than a whole police force on the phone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)