AnotherFolderView Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

6
Score 63.3%
Description:

This screenlet is for these, who:
- want quick access to files from desktop, but wanna see wallpaper too
- have 3D hardware working properly
- don't know what to do with free memory
- like animations
- do not afraid of troubleshooting

On this video you can see it in action: http://dl.dropbox.com/u/4466860/afv.ogv

Requires:
python-gtkglext or python-gtkglext1
python-opengl
python-numpy or python-numeric

Run it from terminal:
python ~/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py


Note:

To move screenlet, hold CTRL key and drag screenelt when minimized.

Screenlet depends on some C code, hope it's compiled well for both x86 and x86_64 architectures. Works best on Nvidia graphics cards with proprietary drivers.

On some icon themes it may look bad.

If you have problems with VLC player, try to use OpenGL video output in player settings.
Last changelog:

9 years ago

0.2.6
- better updates icons of the folder files (only the ones that was changed). This should fix some problems, mainly for home directory
- source code refactoring

0.2.5
- recoded screenlet's expanding, now it use another separate window. It should solve positioning issues on some computers and it allows to implement better drag & drop support
- copy/move files by drag & drop (now only simple implementation, no questions like "really overwrite file?" or so)

0.2.4
- using system files thumbnails when available
- fixed tooltip's textures without GL_ARB_texture_non_power_of_two extension
- shader effects now works on ATI cards

0.2.3
- fixed problem with changing folder in settings introduced in version 0.2.2

0.2.2
- fixed non-power of 2 texture size for image file icons when GL_ARB_texture_non_power_of_two extension isn't available
- support for .gif image files
- added option for text color
- new 'Square' shader effect for image tooltips
- update on folder content change

0.2.1
- fixed Segmentation fault on x86_64 architecture caused by ctypes library

0.2
- reporting missing packages by message dialog windows
- random curve option for expanding animation
- better icons handling of image files
- improved performance (redrawing required area by glScissor function)
- c library compiled for x86_64 architecture
- tooltips for images - shows image preview and some info

0.1.4
- works better on systems on which it wasn't visible before, but maybe not on all (any feedback is welcome, especially ATI cards)

0.1.3
- works better with more icon themes

0.1.2
- checking for GL_EXT_bgra extension
- better textures handling, more output information to terminal

0.1.1
- attempt to fix problem with non power of 2 textures (not final solution)
- checking accumulation buffer size before using motion blur

0.1
- first version
- added source code of C module

Spox5

10 years ago

Good job. Screenlet pleasant to the eye :)

Report

ubuntico

10 years ago

at all...
But look very cool!

Report

C

dencer

10 years ago

It's first version, needs more tuning to work on more computers :D

Report

ubuntico

10 years ago

The problem was solved by write in terminal:

sudo apt-get install python-opengl python-gtkglext1

Very very cool Screenlet. Thanks!

Report

ubuntico

10 years ago

The Screenlet dont work yet, this my hardware:

Intel Core(TM)2 Quad Processor Q8200
MSI Motherboard
4 Gb RAM
Graphic Card Nvidia Gforce GT-9400 1 Gb
OS: Ubuntu 9.04

Report

Lemonade

10 years ago

It works for me!
Thanks!

Report

erosenninrho

10 years ago

I 've installed PyOpenGL from the website without errors, but the screenlet is still throwing (the same?) errors.

Here it goes:

Launch AnotherFolderView
Launching Screenlet from: /home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py
Logging output goes to: $HOME/.config/Screenlets/AnotherFolderViewScreenlet.log
REGISTER screenlet: AnotherFolderViewScreenlet
False
Traceback (most recent call last):
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 641, in <module>
screenlets.session.create_session(AnotherFolderViewScreenlet)
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 472, in create_session
session.start()
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 254, in start
sl.finish_loading()
File "/usr/lib/python2.6/dist-packages/screenlets/__init__.py", line 1243, in finish_loading
self.on_init()
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 146, in on_init
self.baseIcon = self.createIconWidget(self.baseFolder, os.path.basename(self.baseFolder))
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 453, in createIconWidget
label.texture = self.textTexture(name, int(60*self.scale), int(26*self.scale), self.scale)
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 386, in textTexture
self.cairoText._createTexture(width, height)
File "/home/rho/.screenlets/AnotherFolderView/cairo_opengl.py", line 59, in _createTexture
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, 0x80E1, GL_UNSIGNED_BYTE, imgData)
File "/usr/local/lib/python2.6/dist-packages/PyOpenGL-3.0.1a3-py2.6.egg/OpenGL/wrapper.py", line 1292, in __call__
return self._finalCall( *args, **named )
File "/usr/local/lib/python2.6/dist-packages/PyOpenGL-3.0.1a3-py2.6.egg/OpenGL/wrapper.py", line 783, in wrapperCall
raise err
OpenGL.error.GLError: GLError(
err = 1281,
description = 'invalid value',
baseOperation = glTexImage2D,
pyArgs = (
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...,
),
cArgs = (
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...,
),
cArguments = (
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...,
)
)

Thnaks for your work and your reply.

See you around.

R

Report

C

dencer

10 years ago

Or maybe it's because of non power of 2 textures size, some drivers/hardware still don't like that. If you really want to try to make it run, you could rewrite lines like
label.texture = self.textTexture(name, int(60*self.scale), int(26*self.scale), self.scale)
to have the same dimmensions
self.textTexture(name, int(60*self.scale), int(60*self.scale), self.scale)
Probably all 26 to 60.

Report

C

dencer

10 years ago

it was too late to think yesterday, 60 isn't power of 2, it must be 64 :D

Report

C

dencer

10 years ago

whats your hardware configuration? Do you use 64bit software? With the same data and PyOpenGL version it should behave the same, bud didn't. On 64bit processor, data could be different, so I need more info.

Report

erosenninrho

10 years ago

Hey man. This is my error:

Launch AnotherFolderView
Launching Screenlet from: /home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py
Logging output goes to: $HOME/.config/Screenlets/AnotherFolderViewScreenlet.log
REGISTER screenlet: AnotherFolderViewScreenlet
False
Traceback (most recent call last):
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 641, in <module>
screenlets.session.create_session(AnotherFolderViewScreenlet)
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 472, in create_session
session.start()
File "/usr/lib/python2.6/dist-packages/screenlets/session.py", line 254, in start
sl.finish_loading()
File "/usr/lib/python2.6/dist-packages/screenlets/__init__.py", line 1243, in finish_loading
self.on_init()
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 146, in on_init
self.baseIcon = self.createIconWidget(self.baseFolder, os.path.basename(self.baseFolder))
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 453, in createIconWidget
label.texture = self.textTexture(name, int(60*self.scale), int(26*self.scale), self.scale)
File "/home/rho/.screenlets/AnotherFolderView/AnotherFolderViewScreenlet.py", line 386, in textTexture
self.cairoText._createTexture(width, height)
File "/home/rho/.screenlets/AnotherFolderView/cairo_opengl.py", line 59, in _createTexture
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, 0x80E1, GL_UNSIGNED_BYTE, imgData)
File "/usr/lib/python2.6/dist-packages/OpenGL/wrapper.py", line 931, in wrapperCall
raise err
OpenGL.error.GLError: GLError(
err = 1281,
baseOperation = glTexImage2D,
pyArgs = [
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...
],
cArgs = [
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00...
],
cArguments = (
GL_TEXTURE_2D,
0,
GL_RGBA,
60,
26,
0,
32993,
GL_UNSIGNED_BYTE,
c_void_p(184426020),
)
)
^CTraceback (most recent call last):
File "/usr/share/screenlets-manager/screenlets-manager.py", line 1309, in <module>
app.start()
File "/usr/share/screenlets-manager/screenlets-manager.py", line 1274, in start
gtk.main()

-------------
I really want to test it!

Report

C

dencer

10 years ago

I expected troubles. Maybe it is by different version of PyOpenGL. Try easy_install -U PyOpenGL, but must have python-setuptools installed. Or check http://pyopengl.sourceforge.net/documentation/installation.html for installing latest version by distutils. Then you should have the same version as my (3.0.1a3), so I will be able to check exact line causing problems, or it will be working :)

Report

9 years ago

0.2.6
- better updates icons of the folder files (only the ones that was changed). This should fix some problems, mainly for home directory
- source code refactoring

0.2.5
- recoded screenlet's expanding, now it use another separate window. It should solve positioning issues on some computers and it allows to implement better drag & drop support
- copy/move files by drag & drop (now only simple implementation, no questions like "really overwrite file?" or so)

0.2.4
- using system files thumbnails when available
- fixed tooltip's textures without GL_ARB_texture_non_power_of_two extension
- shader effects now works on ATI cards

0.2.3
- fixed problem with changing folder in settings introduced in version 0.2.2

0.2.2
- fixed non-power of 2 texture size for image file icons when GL_ARB_texture_non_power_of_two extension isn't available
- support for .gif image files
- added option for text color
- new 'Square' shader effect for image tooltips
- update on folder content change

0.2.1
- fixed Segmentation fault on x86_64 architecture caused by ctypes library

0.2
- reporting missing packages by message dialog windows
- random curve option for expanding animation
- better icons handling of image files
- improved performance (redrawing required area by glScissor function)
- c library compiled for x86_64 architecture
- tooltips for images - shows image preview and some info

0.1.4
- works better on systems on which it wasn't visible before, but maybe not on all (any feedback is welcome, especially ATI cards)

0.1.3
- works better with more icon themes

0.1.2
- checking for GL_EXT_bgra extension
- better textures handling, more output information to terminal

0.1.1
- attempt to fix problem with non power of 2 textures (not final solution)
- checking accumulation buffer size before using motion blur

0.1
- first version
- added source code of C module

12345678910
2
product-maker Ahmose Jul 21 2011 9 excellent
product-maker kamigr Mar 07 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
legion1978
Feb 05 2011
themis
Jun 20 2010
Kreisverkehr
Jun 20 2010
Anduu
Jun 17 2010
Whise
Oct 19 2009
Spox5
Sep 12 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.6
updated Jul 14 2010
added Sep 11 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2