Random Homebrew: PSPaint
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

your desktop look

Everything related to computers that doesn't go in other categories

Re: your desktop look

Postby codestation » Sat Jun 30, 2012 12:27 am

Xian Nox wrote:Apparently it can't read the power and HDD temp, and data is being mysterious. This should have something to do with it:
Code: Select all
sh: /home/code/.bin/watts: No such file or directory

Also, any way to limit it to only one desktop?


Power comes from this:
Code: Select all
#include <stdio.h>

#define CURRENT_SYS "/sys/class/power_supply/BAT0/current_now"
#define VOLTAGE_SYS "/sys/class/power_supply/BAT0/voltage_now"
#define POWER_SYS "/sys/class/power_supply/BAT0/power_now"

FILE *fds, *fdv;
unsigned int current;
unsigned int voltage;
unsigned int power;

int main(int argc, char **argv) {
    if((fds = fopen(CURRENT_SYS,"r"))) {
        if((fdv = fopen(VOLTAGE_SYS,"r"))) {
            fscanf(fds, "%d", &current);
            fscanf(fdv, "%d", &voltage);
            current /= 1000;
            voltage /= 1000;
            printf("%.2f\n", current * voltage / 1000000.0);
            fclose(fdv);
        }
        fclose(fds);
    } else {
        if((fdv = fopen(POWER_SYS,"r"))) {
            fscanf(fdv, "%d", &power);
            printf("%.2f\n", power / 1000000.0f);
            fclose(fdv);
        }
    }
    return 0;
}


Somewhat useful on laptops, useless on desktops. HDD temperature comes from the hddtemp daemon listening on 127.0.0.1:7634, "data" just points to /mnt/data so just change every instance of it or delete the config (check settings_rings).
Never tried to limit it to one desktop but you can try messing around with the window behavior rules in systemsettings.
Plugin list
Working on: Python (django, sqlalchemy, PyQt, etc) + Lua
Repositories: github, bitbucket, google code
Just feel the code..
opencma/vitamtp for Archlinux
User avatar
codestation
Big Beholder
 
Posts: 1277
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: your desktop look

Postby Xian Nox » Sat Jun 30, 2012 12:42 pm

Got it to run only on one desktop quite easily. (Configure Desktop > Window Behavior > Window Rules > New > Window class: exact match conky; size and position -> desktop: Force desktop 4 > Ok > Apply)
Got hddtemp as well, started the service, and it hdd temp appeared magically.
What is this about?
Code: Select all
cat: /usr/portage/metadata/timestamp.chk: No such file or directory
Spoiler
Disturbed0ne wrote:PS. EVERYONE should like girls. they're just so soft. :oops:
Moderator 80% corrupt. That's funny, I don't feel corrupt. In fact, I feel pretty good.
What looks like a blog of mine can be seen here.
User avatar
Xian Nox
Moderator
 
Posts: 6027
Joined: Fri Nov 05, 2010 5:27 pm
Location: /home/xian/n-field

Re: your desktop look

Postby FrEdDy » Sat Jun 30, 2012 12:55 pm

Xian Nox wrote:Got it to run only on one desktop quite easily. (Configure Desktop > Window Behavior > Window Rules > New > Window class: exact match conky; size and position -> desktop: Force desktop 4 > Ok > Apply)
Got hddtemp as well, started the service, and it hdd temp appeared magically.
What is this about?
Code: Select all
cat: /usr/portage/metadata/timestamp.chk: No such file or directory

Portage is the gentoo package manager, I guess he reads some kind of data about installed packages?
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES
User avatar
FrEdDy
HBL Collaborator
 
Posts: 349
Joined: Mon Sep 27, 2010 7:08 pm

Re: your desktop look

Postby codestation » Sat Jun 30, 2012 1:15 pm

FrEdDy wrote:Portage is the gentoo package manager, I guess he reads some kind of data about installed packages?

Exactly, i use it to know the last time that i updated my package list (Last sync). For example in Archlinux i used
Code: Select all
date -d "$(stat /var/lib/pacman/*db.tar* --format %y | sort | tail -n 1)"

For opensuse you could try to search where the package metadata is stored and read the last modified datetime from that.
Plugin list
Working on: Python (django, sqlalchemy, PyQt, etc) + Lua
Repositories: github, bitbucket, google code
Just feel the code..
opencma/vitamtp for Archlinux
User avatar
codestation
Big Beholder
 
Posts: 1277
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: your desktop look

Postby naki-the-curious » Mon Jul 02, 2012 10:05 pm

Sorry to break the linux talk, but here's my desktop :)

Spoiler
Image
My PSPs:
Spoiler
PSP 3002 (03g) 6.60 PRO-C (thanks Coldbird & Virtuous flame!)
PSP 2002 (02g) 6.60 ME-1.8 (thanks Neur0n!)

If you want anything translated to/from japanese (to/from english) for your Homebrew, send me a PM and I'll see if I can help :)
User avatar
naki-the-curious
 
Posts: 573
Joined: Sat Apr 30, 2011 8:53 am
Location: Japan/New Zealand

Re: your desktop look

Postby Xian Nox » Tue Jul 03, 2012 12:02 am

naki-the-curious wrote:Sorry to break the linux talk, but here's my desktop :)

Spoiler
Image

This is a rainmeter theme, I assume?
Spoiler
Disturbed0ne wrote:PS. EVERYONE should like girls. they're just so soft. :oops:
Moderator 80% corrupt. That's funny, I don't feel corrupt. In fact, I feel pretty good.
What looks like a blog of mine can be seen here.
User avatar
Xian Nox
Moderator
 
Posts: 6027
Joined: Fri Nov 05, 2010 5:27 pm
Location: /home/xian/n-field

Re: your desktop look

Postby naki-the-curious » Tue Jul 03, 2012 1:54 am

Xian Nox wrote:This is a rainmeter theme, I assume?

yeah, its a mix of the enigma, serenity and illustro themes
My PSPs:
Spoiler
PSP 3002 (03g) 6.60 PRO-C (thanks Coldbird & Virtuous flame!)
PSP 2002 (02g) 6.60 ME-1.8 (thanks Neur0n!)

If you want anything translated to/from japanese (to/from english) for your Homebrew, send me a PM and I'll see if I can help :)
User avatar
naki-the-curious
 
Posts: 573
Joined: Sat Apr 30, 2011 8:53 am
Location: Japan/New Zealand

Re: your desktop look

Postby ryan2468 » Tue Jul 03, 2012 6:42 am

Spoiler
Image
ryan2468
 
Posts: 50
Joined: Mon Apr 11, 2011 12:49 am

Re: your desktop look

Postby Disturbed0ne » Sat Aug 04, 2012 7:37 am

I've updated my desktop since the last one I posted.

Spoiler
Image
User avatar
Disturbed0ne
Moderator
 
Posts: 5052
Joined: Sun Jan 16, 2011 5:44 am
Location: In a van, down by the river!

Re: your desktop look

Postby m0skit0 » Mon Aug 06, 2012 9:45 am

Please spoil and say the OS. I don't want to waste 0.01 seconds opening spoilers for Windows actually :lol:
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4784
Joined: Mon Sep 27, 2010 6:01 pm

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest