SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2012-09-25 03:48:58

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

OK so since your reply I then started the conky config

conky -c ~/Downloads/conkyWeather_arclance_v6.2_2012-09-16/conkyrc_conkyWeather_arclance

and all that comes up is the screen at the bottom gets blacked out. Here's what it says in the terminal:

ian@Hell:~$ conky -c Downloads/conkyWeather_arclance_v6.2_2012-09-16/conkyrc_conkyWeather_arclance
Conky: llua_load: ...clance_v6.2_2012-09-16/lua/conkyWeather_arclance.lua:179: attempt to index local 'f' (a nil value)
Conky: desktop window (1c00095) is subwindow of root window (b1)
Conky: window type - normal
Conky: drawing to created window (0x5600001)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_start_xdotool execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value

Maybe I put the wrong info in? I didn't really understand the part about the location settings .

Last edited by Lateralus138 (2012-09-25 03:55:27)


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

Be excellent to each other!

#27 2012-09-25 04:30:42

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ That is a problem with the readme.
The instructions for that somehow got overwritten during a update.
Line 136 in the lua file

installDirectory = ""

should be the same as in line 171 in the python file.

I need to fix that soon.
I want to add a few more debugging statements to the scripts before I do that though.
That will make it easier to help people in the future.

Offline

#28 2012-09-25 04:49:44

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

^ That is a problem with the readme.
The instructions for that somehow got overwritten during a update.
Line 136 in the lua file

installDirectory = ""

should be the same as in line 171 in the python file.

I need to fix that soon.
I want to add a few more debugging statements to the scripts before I do that though.
That will make it easier to help people in the future.


Ok changed that line and still get:

ian@Hell:~$ conky -c Downloads/conkyWeather_arclance_v6.2_2012-09-16/conkyrc_conkyWeather_arclance
Conky: llua_load: ...clance_v6.2_2012-09-16/lua/conkyWeather_arclance.lua:136: attempt to perform arithmetic on a string value
Conky: desktop window (1e00095) is subwindow of root window (b1)
Conky: window type - normal
Conky: drawing to created window (0x5600001)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_start_xdotool execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value

...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#29 2012-09-25 04:58:00

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ It's late and I forgot that the " + " needs changed to a ".." in lua.

installDirectory = "Your Install location here".."/conkyWeather_arclance_v6.2_2012-09-16"

Last edited by arclance (2012-09-25 04:58:39)

Offline

#30 2012-09-25 15:50:37

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

Got it working finally man thanx a lot. I'm pretty sure everything is working correctly. What do you thin k would be the best method to only display this on wrokspace 2? Or if it's possible? I might try to use Devilspie and see if I can use xprop to find a variable that won't affect my other conkys, do you think that would work?


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#31 2012-09-25 16:10:05

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ That is possible, you can do it with builtin conky commands.
How you do it depends on what window manager you use.
It is easy as long as you are not using compiz.
Which window manager are you using?

Offline

#32 2012-09-25 16:22:43

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

I'm running Ubuntu 12.04 with Unity and yes Compiz (I have Crunchbang in VBox, sorry lol). I am one of the few that doesn't hate Unity I guess from what I've read everywhere. What is the reason I can't use Compiz, is it because you can't use a composite manager or can I switch to xcompmgr or something?

Last edited by Lateralus138 (2012-09-25 16:23:26)


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#33 2012-09-25 17:30:56

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ You can do it with compiz, it is just more complicated and harder to setup.
It requires using some external program to detect what workspace you are in because compiz does not really do separate workspaces.
It has "views" or something that are more like cropped screenshots of one giant workspace.

I need to do some reading on how other people have done it first.
Someone wrote a guide on this in the Ubuntu forums I just need to look at it to see how this works with compiz again.

Last edited by arclance (2012-09-25 17:32:28)

Offline

#34 2012-09-25 17:42:50

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

^ You can do it with compiz, it is just more complicated and harder to setup.
It requires using some external program to detect what workspace you are in because compiz does not really do separate workspaces.
It has "views" or something that are more like cropped screenshots of one giant workspace.

I need to do some reading on how other people have done it first.
Someone wrote a guide on this in the Ubuntu forums I just need to look at it to see how this works with compiz again.

Haha yeah I had found that link and was getting ready to post it here, you beat me too it.


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#35 2012-09-25 17:49:34

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ After reading that page I need to know what your screen resolution is.
You also need to have all your workspaces arranged in a single horizontal row for it to work.

Last edited by arclance (2012-09-25 17:49:49)

Offline

#36 2012-09-25 17:58:02

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

^ After reading that page I need to know what your screen resolution is.
You also need to have all your workspaces arranged in a single horizontal row for it to work.

Yeah I was going to TRY and make this myself if I can, but my res is 1366x768 so I imagine it will be between 1367 and 2732, it's set horizontally.


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#37 2012-09-25 18:06:48

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

Could you run

wmctrl -d

and

wmctrl -d | grep 'VP:' | awk '{print $2}' | sed 's/,0//'

for me so I can see what it looks like?
I need to see what it looks like when run with compiz.

I am going to write a lua function for this so other people can use it easily.

Last edited by arclance (2012-09-25 18:20:18)

Offline

#38 2012-09-25 18:33:34

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

Could you run

wmctrl -d

and

wmctrl -d | grep 'VP:' | awk '{print $2}' | sed 's/,0//'

for me so I can see what it looks like?
I need to see what it looks like when run with compiz.

I am going to write a lua function for this so other people can use it easily.

Yep, already ran them I was trying to mess it with myself.

wmctrl -d:

0  * DG: 5464x768  VP: 0,0  WA: 0,24 1366x744  N/A

wmctrl -d | grep 'VP:' | awk '{print $2}' | sed 's/,0//':

*

...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#39 2012-09-25 18:37:45

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

Could you run "wmctrl -d" again in another workspace.

Last edited by arclance (2012-09-25 18:37:58)

Offline

#40 2012-09-25 18:41:31

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

Could you run "wmctrl -d" again in another workspace.

Workspace 2:

0  * DG: 5464x768  VP: 1366,0  WA: 0,24 1366x744  N/A

Workspace 3

0  * DG: 5464x768  VP: 2732,0  WA: 0,24 1366x744  N/A

Workspace 4

0  * DG: 5464x768  VP: 4098,0  WA: 0,24 1366x744  N/A

...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#41 2012-09-25 18:52:56

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

Here is the basic function.

### workspace_number starts at 0
horizontal_rez = 1366
function compiz_workspace(horizontal_rez)
    local wmctrl_call = io.popen("wmctrl -d")
    local wmctrl_data = wmctrl_call:read("*a")
    wmctrl_call:close()
    wmctrl_call = nil
    local s,f,workspace_position = string.find(wmctrl_data,".-VP: (.+),0 WA:")
    workspace_number = math.floor(tonumber(workspace_position)/horizontal_rez)
    return(workspace_number)
end --# function compiz_workspace(horizontal_rez)

This updated lua script should only show up in workspace 2 for you.

Last edited by arclance (2012-09-25 18:53:13)

Offline

#42 2012-09-25 19:11:32

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

^ Do I just add this to the lua folder and do I have to link it to the other files?


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#43 2012-09-25 19:14:28

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

Use it instead of the old lua file.
Rename the old file and then save the new file with the original name of old file (conkyWeather_arclance.lua) and update the settings in the new lua file to match those in the old one.

Offline

#44 2012-09-25 19:32:47

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

Use it instead of the old lua file.
Rename the old file and then save the new file with the original name of old file (conkyWeather_arclance.lua) and update the settings in the new lua file to match those in the old one.

Ok I backed up the old file and renamed the new file and then I edited line 136 with the correct folder location and then ran it again and it only blacks out the screen on all 4 workspaces. Here's what I get in the terminal:

ian@Hell:~$ killall conky 
ian@Hell:~$ Scripts/arclane_weather.sh
using cPickle
no pull yet

timeDifference = 438.996206999
using backup
backupUsed: True
pullFailure: False
pullFailure2: False
pullFailure3: False
pullFailure4: False
pullFailureSAT: False
lastUpdate =  | 02:22:05 PM CDT
Output Written
timeDifference = 444.025279999
waiting for 455.974720001 s
Next Update At: 2012-09-25 | 02:37:05 PM CDT
ian@Hell:~$ true
Conky: desktop window (1e00095) is subwindow of root window (b1)
Conky: window type - normal
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
abstlx: 0 abstly: 466 winNum_Parent: 12724477 winNum_2: 16777217
isNight = false

Conky: llua_do_call: function conky_main execution failed: ...clance_v6.2_2012-09-16/lua/conkyWeather_arclance.lua:2664: attempt to perform arithmetic on a nil value
abstlx: 0 abstly: 466 winNum_Parent: 12724477 winNum_2: 16777217

...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#45 2012-09-25 19:44:43

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ Okay I updated the link could you try it again with the new file.
This might take a few tries since I am not using compiz so I can't test things directly.

Last edited by arclance (2012-09-25 19:45:51)

Offline

#46 2012-09-25 20:00:28

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

Of course, I don't mind being a guinea pig lol...

That got it to display correctly on Workspace 2, but it still blacks out the screen on 1, 3 and 4.

ian@Hell:~$ killall conky 
ian@Hell:~$ Scripts/arclane_weather.sh
using cPickle
no pull yet

timeDifference = 118.577543974
using backup
backupUsed: True
pullFailure: False
pullFailure2: False
pullFailure3: False
pullFailure4: False
pullFailureSAT: False
lastUpdate =  | 02:56:07 PM CDT
Output Written
timeDifference = 123.60483408
waiting for 776.39516592 s
Next Update At: 2012-09-25 | 03:11:07 PM CDT
ian@Hell:~$ true
Conky: desktop window (1c00095) is subwindow of root window (b1)
Conky: window type - normal
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
abstlx: 0 abstly: 466 winNum_Parent: 12591991 winNum_2: 16777217
isNight = false

"0"
abstlx: 0 abstly: 466 winNum_Parent: 12591991 winNum_2: 16777217
"0"
abstlx: 0 abstly: 466 winNum_Parent: 12591991 winNum_2: 16777217
"0"
abstlx: 0 abstly: 466 winNum_Parent: 12591991 winNum_2: 16777217
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
"0"
error: could not read xdotool logfile
"0"
error: could not read xdotool logfile
"0"
error: could not read xdotool logfile
"0"
error: could not read xdotool logfile
"1366"
error: could not read xdotool logfile
"1366"
error: could not read xdotool logfile
"2732"
error: could not read xdotool logfile
"1366"
error: could not read xdotool logfile
"0"
error: could not read xdotool logfile
"0"
"0"
"0"

...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#47 2012-09-25 20:04:57

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ Okay that's closer, it is detecting workspaces correctly now.
Could you post a screenshot of workspace 2 and a screenshot from one of the other workspaces so I can see what the problem looks like.

Last edited by arclance (2012-09-25 20:06:55)

Offline

#48 2012-09-25 20:28:43

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

arclance wrote:

^ Okay that's closer, it is detecting workspaces correctly now.
Could you post a screenshot of workspace 2 and a screenshot from one of the other workspaces so I can see what the problem looks like.

First of all, this is not exactly what my desktop normally looks like. I usually have 4 conkys running. I have run just my basic conky in the background to show you the blacked out part on WS1, but it is blacked out without any other conkys running too, I have txt files I pulled underneath it just to make sure. My goal is to eventually put my main conkys on workspace 1 or even 1,3 and 4 and only have the weather one on WS2. I'll use the techique from the Ubuntu link to to do that myself. I am just not real familiar with lua.

Workspace 1 Screen:
th_workspace1.png

Workspace 2 Screen:
th_workspace2.png


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

#49 2012-09-25 20:39:03

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: arclances conky weather script - v6.2.1

^ I updated the link again it should only shade the background in workspace 2 now.
There is no way to stop conkys overlapping each other with this method since conky is still running.
It is just set it to show something only for certain workspaces but the window still exists.

Offline

Be excellent to each other!

#50 2012-09-25 23:13:25

Lateralus138
Member
From: Decatur, Il.
Registered: 2012-09-19
Posts: 41
Website

Re: arclances conky weather script - v6.2.1

Sorry I have taken so long to get back to you, but I have 6 month old twins so I have been a bit busy lol

That didn't work, but I have done a workaround; more of a temporary solution. I have commented out

#own_window_transparent yes 

and added

own_window_argb_visual true
own_window_argb_value 0

this makes the background visible, but you can still not click on the desktop, move stuff around in that area etc... In order to do that I just click on Show Desktop and when I am done just click show desktop again.

As I've said this isn't a fix just a temporary workaround.

Last edited by Lateralus138 (2012-09-25 23:14:07)


...to swing on the spiral of ...our divinity and ...still be a human.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo