well, I'm on the start of something with this:
Code:
#Gnome-tested: (original code)
#export SDL_WINDOWID=`xwininfo -root|grep "id:"|sed 's/^.*id: //'|sed 's/ (.*$//'`
#XFCE-tested:
export SDL_WINDOWID=`xwininfo -name "Desktop" | grep 'Window id' | sed 's/.*\(0x[0-9a-z]*\).*/\1/g'`
gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false
python `exec '''
import pygame
import sys
import random
import time
pygame.init()
window = pygame.display.set_mode((1280, 1024))
screen = pygame.display.get_surface()
while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT: sys.exit(0)
x = random.choice(range(640))
y = random.choice(range(480))
radius = random.choice(range(100))
col_r = random.choice(range(255))
col_g = random.choice(range(255))
col_b = random.choice(range(255))
time.sleep(.01)
rect = pygame.draw.circle(screen, (col_r, col_g, col_b), (x,y), radius)
pygame.display.update(rect)
'''`
NOTE: IDK how to run python in a shell-script, so that doesn't work...
if local directories worked, I'd post that
here's a local directory method that doesn't work
Code:
#Gnome-tested: (original code)
#export SDL_WINDOWID=`xwininfo -root|grep "id:"|sed 's/^.*id: //'|sed 's/ (.*$//'`
#XFCE-tested:
export SDL_WINDOWID=`xwininfo -name "Desktop" | grep 'Window id' | sed 's/.*\(0x[0-9a-z]*\).*/\1/g'`
gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false
python ./desktop_circles.py #this method is used in another program's launcher, which works just fine for that
#python ~/desktop/desktop_circles.py #alternate, also doesn't work
the actual code itself works, but I had to use a stupid full directory...
I'd like to get one of the 2 above methods working, favorably the 2nd.
on XFCE:
the only downside is the desktop is still active, so clicking anywhere shows your original desktop for a frame before it's over-drawn.
I personally havn't tried Gnome
now if I can figure out how Compton works, I can rasterize the windows in a 3D space.
Bookmarks