Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 08:54
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
simple wbar refresh code
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
nilsonmorales


Joined: 15 Apr 2011
Posts: 476
Location: El salvador

PostPosted: Tue 15 Oct 2013, 21:00    Post_subject:  simple wbar refresh code  

i have no experience in bash or any programing lang just looking for a simple script to refresh the wbar when change the wallpaper
i saw this code

Code:
#!/bin/bash

shopt -s nullglob
 
cd $HOME/Wallpapers

while true; do
   files=()
   for i in *.jpg *.png; do
      [[ -f $i ]] && files+=("$i")
   done
   range=${#files[@]}

   ((range)) && feh --bg-scale "${files[RANDOM % range]}"

   # Restart wbar,if already running
   [`pidof wbar`] && killall wbar && wbar &

   sleep 10m
done


how can i use the [`pidof wbar`] && killall wbar && wbar & to refresh the wbar when change the wallpaper
thx in advance .

_________________
My blog


Back to top
View user's profile Send_private_message MSNM 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Wed 16 Oct 2013, 01:36    Post_subject:  

Hi nilsonmorales,

maybe this helps?

Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send_private_message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 476
Location: El salvador

PostPosted: Wed 16 Oct 2013, 14:07    Post_subject:  

I appreciate your help, unfortunately did not work
I think I need to add some code in the nathan wallpaper
anyway thank you.

_________________
My blog


Back to top
View user's profile Send_private_message MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0388s ][ Queries: 11 (0.0031s) ][ GZIP on ]