~israeldahl/jwm-settings-manager/trunk

« back to all changes in this revision

Viewing changes to changewallpaper.sh

  • Committer: Israel Dahl
  • Date: 2014-07-06 02:48:28 UTC
  • Revision ID: israeldahl@gmail.com-20140706024828-1bt17riyy2ep06bt
actually added the themes, buttons, etc...
* Alpha Version update
 * Desktop
 - Added Rox checkers, and getters and setters, but haven't finished/enabled it
 - Finished gradient support
 - finished Single color support
 - moved the image setting code to flDesktop(h/cpp)
 * Window
 - fixed Window icon code to reliably open the directory containing icons
 - added 'BoxShaped' window buttons

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# Wallpaper Changing script
 
4
# MIT license Copyright 2014 Israel Dahl <israel@torios.org>
 
5
# Made for ToriOS
 
6
 
 
7
#TODO: ADD command line arguments so user can set the background directory and time to change
 
8
 
 
9
# Get the user's pictures directory
 
10
dir=$Home+"Pictures/"
 
11
 
 
12
while [ 1 ]
 
13
do
 
14
# Pick a wallpaper
 
15
wallpaper=`find "${dir}" -type f | shuf -n1`
 
16
 
 
17
#TODO: look for only image files, and set the file extension here and in the desktop xml file
 
18
extention = ""
 
19
changer = dir+"changer"+ extention
 
20
 
 
21
#TODO: symlink instead of copy
 
22
cp ${wallpaper} changer
 
23
 
 
24
# 5 minutes
 
25
sleep 300
 
26
 
 
27
done