Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - sevensage

#1
Conky / Re: Battery Monitor
March 12, 2013, 08:01:20 PM
Well after a couple of weeks of wondering where I went wrong somewhere along the way I created a bash script pointing to pm-suspend (no idea why) the original was calling the command directly

exec /usr/sbin/pm-suspend

so the whole thing  looks like so

BAT ${if_existing /sys/class/power_supply/AC0/online 0}${if_match ${battery_percent BAT1} <= 20}${if_match ${battery_percent BAT1} <= 17}${if_match ${battery_percent BAT1} <= 15}${color red}${exec /usr/sbin/pm-suspend}$else${color red}${execi 60 /home/mini/.scripts/criticalbat.py}$endif$else${color


feeling sheepish, thanks
#2
Artwork & Screenshots / Re: March 2013 Screenshots
March 11, 2013, 06:07:28 PM
Great screenshots guys
#3
Conky / Battery Monitor
March 11, 2013, 04:50:56 PM
Hi guys - sorry to come to you with this I have tried finding a solution / reply within the bang forums but without success. I picked up a script (from wcs) and it was working perfectly. It has a python script to warn of low battery levels and a bash script executed once levels get too low to suspend. One fine morning when booting up my netbook it started up and went into suspend mode once the battery monitor in conky loaded. I cannot for the life of me figure what is triggering this behavior, it's not the end of the world if I disable the suspend portion of it but it was working perfectly at first. Anyhoo I'm going to lay down the code and the scripts, if you guys suspect what the culprit may be, I'd really appreciate a heads up.

conky bit

BAT ${if_existing /sys/class/power_supply/AC0/online 0}${if_match ${battery_percent BAT1} <= 20}${if_match ${battery_percent BAT1} <= 17}${if_match ${battery_percent BAT1} <= 15}${color red}${exec /home/mini/.scripts/pm-suspend}$else${color red}${execi 60 /home/mini/.scripts/criticalbat.py}$endif$else${color orange}${execi 120 /home/mini/.scripts/lowbat.py}$endif$endif$endif${battery_percent BAT1}%$color


bash bit

#!/bin/bash
gksu /usr/sbin/pm-suspend


python bits
lowbat

#!/usr/bin/env python2
import pynotify
pynotify.init("foo")
pynotify.Notification("Power warning", "Battery capacity is low.", "battery-low").show()


criticalbat

#!/usr/bin/env python2
import pynotify
pynotify.init("foo")
pynotify.Notification("POWER WARNING!", "Battery capacity is critically low!", "battery-caution").show()



cheers
#4
Artwork & Screenshots / Re: February 2013 Screenshots
February 20, 2013, 10:00:54 AM
All very nice scrots, hard to choose a favorite.
#5
Introductions / Re: Hello everyone
February 19, 2013, 05:58:19 PM
Thank-you both! I will be joining you without question, I foresee a surplus sometime in June that will help toward my new 64bit system.
#6
Introductions / Hello everyone
February 19, 2013, 05:39:09 PM
Hello all, congratulations V1 on your distro, I have been admiring it from afar (32 bit system). I have been frequenting the forum nonetheless and figured it was high time I quit lurking.

cheers!