Skip to content

Instantly share code, notes, and snippets.

@cocuh
Created April 22, 2013 05:54
Show Gist options
  • Save cocuh/5432680 to your computer and use it in GitHub Desktop.
Save cocuh/5432680 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
globals().__setitem__('c',lambda x,y:globals().__setitem__(x,y))or c('os',__import__('os'))or c('PATH',os.path.expanduser('~/Picture/wallpaper/'))or c('f',lambda c,fl,x:f(c,fl,fl)if x is None else(fl[0]if x==[]else((fl[0]if len(x)==1 else x[1])if x[0]in c else f(c,fl,x[1:]))))or c('nextwall',f(open(__import__('os').path.expanduser('~/.fehbg')).read(),sorted(os.listdir(PATH)),None))or __import__('subprocess').call(["feh","--bg-fill","{file}".format(file=PATH+nextwall)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment