aboutsummaryrefslogtreecommitdiff
path: root/util/fbsetbg
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-06-06 02:18:34 (GMT)
committerrathnor <rathnor>2003-06-06 02:18:34 (GMT)
commit6d91153212f2215042d3c91631f2b11329bfc226 (patch)
treeb6fdd28af4d33dc5bf30ef648c382866d6902e40 /util/fbsetbg
parent49c57942f36e0f01fd80313a4095be9e0b757704 (diff)
downloadfluxbox_pavel-6d91153212f2215042d3c91631f2b11329bfc226.zip
fluxbox_pavel-6d91153212f2215042d3c91631f2b11329bfc226.tar.bz2
some updates from Han
Diffstat (limited to 'util/fbsetbg')
-rw-r--r--util/fbsetbg20
1 files changed, 14 insertions, 6 deletions
diff --git a/util/fbsetbg b/util/fbsetbg
index 18e170a..045e172 100644
--- a/util/fbsetbg
+++ b/util/fbsetbg
@@ -23,7 +23,7 @@
23# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25# 25#
26# $Id: fbsetbg,v 1.6 2003/05/12 19:58:47 fluxgen Exp $ 26# $Id: fbsetbg,v 1.7 2003/06/06 02:18:34 rathnor Exp $
27 27
28# 28#
29# Portability notes: 29# Portability notes:
@@ -38,12 +38,13 @@
38# compensate for that. 38# compensate for that.
39# 39#
40 40
41wpsetters='Esetroot wmsetbg display qiv xv xsri xli xsetbg' 41# The wallpapersetter is selected in this order
42wpsetters='Esetroot wmsetbg display qiv xv xsri xli xsetbg' # broken icewmbg'
42lastwallpaper=${HOME}/.fluxbox/lastwallpaper 43lastwallpaper=${HOME}/.fluxbox/lastwallpaper
43 44
44 45
45WHOAMI=`whoami` 46WHOAMI=`whoami`
46[ "$WHOAMI" = "root" ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin 47[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
47 48
48 49
49# Functions 50# Functions
@@ -131,7 +132,6 @@ debugfbsetbg (){
131} 132}
132 133
133# Find the default wallpapersetter 134# Find the default wallpapersetter
134# The precise order is up for debate.
135for wpsetter in $wpsetters; do 135for wpsetter in $wpsetters; do
136 if find_it $wpsetter; then 136 if find_it $wpsetter; then
137 WPSETTER=$wpsetter 137 WPSETTER=$wpsetter
@@ -151,7 +151,7 @@ case $WPSETTER in
151 aspect=$full 151 aspect=$full
152 debugstory="This is a RedHat specific app. I can't find docs about it." 152 debugstory="This is a RedHat specific app. I can't find docs about it."
153 ;; 153 ;;
154 display) 154 display)
155 full="`xwininfo -root|grep geom` -window root" 155 full="`xwininfo -root|grep geom` -window root"
156 tile='-window root' 156 tile='-window root'
157 center='-backdrop -window root' 157 center='-backdrop -window root'
@@ -200,6 +200,14 @@ case $WPSETTER in
200 aspect='-maxpect -smooth -root -quit' 200 aspect='-maxpect -smooth -root -quit'
201 debugstory=$standardrant 201 debugstory=$standardrant
202 ;; 202 ;;
203 icewmbg)
204 tile='-s'
205 full=$tile
206 center=$tile
207 aspect=$tile
208 debugstory="icewmbg does support transparency, but only tiling. And I noticed odd
209errormessages with aterm. Don't use it unless you have to."
210 ;;
203 '') 211 '')
204 message "I can't find an app to set the wallpaper with. You can install one in 212 message "I can't find an app to set the wallpaper with. You can install one in
205many many ways but I will give you some simple advice: install Eterm and 213many many ways but I will give you some simple advice: install Eterm and
@@ -232,7 +240,7 @@ case "${COMMAND_LINE_ARGUMENT}" in
232 option=`head -n1 $lastwallpaper` 240 option=`head -n1 $lastwallpaper`
233 wallpaper=`tail -n1 $lastwallpaper` 241 wallpaper=`tail -n1 $lastwallpaper`
234 else 242 else
235 message 'No previous wallpaper recorded.' 243 message 'No previous wallpaper recorded. You have never used fbsetbg before.'
236 fi 244 fi
237 ;; 245 ;;
238 h) display_help ; exit 0 ;; 246 h) display_help ; exit 0 ;;