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 Sat 25 Oct 2014, 06:41
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Desktop Icons and background with jwm ONLY(no ROX, xtdesk..)
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 17 Jan 2010, 20:50    Post_subject:  

I posted a new xfe here:
http://www.murga-linux.com/puppy/viewtopic.php?t=39223
this XFE uses < 1/2 of the resources that ROX does (but then I didn't try compiling ROX against static gtk2)

Quote:
and a more resource friendly volume control in gtkdialog tips, but here it is again

make a symlink for Xdialog-notitle and set up a group to set its properties in the .jwmrc template - I have done it for Xdialog here to make a volume slider activated by a tray button (the symlink is so that programs that NEED the title bar will still have them) This should work for Gtkdialog as well.

<Group>
<Name>Xdialog-notitle</Name>
<Option>notitle</Option>
<Option>layer:12</Option>
</Group>

This will make it stay on top and have no title bar

here is the button for /root/.jwmrc-tray (it goes after the "dock" and before swallowed applets)

<Dock/><TrayButton popup="Audio Control" icon="audio-volume-high.png">exec:SetVol</TrayButton>


Quoting myself... now that is vanity.

Code:
#!/bin/sh
VOLUME=`amixer get Master | grep 'Mono:' | cut -d '%' -f 1 | cut -d '[' -f 2`
VOLUME=`Xdialog-notitle --stdout --under-mouse --title "SetVol" --buttons-style text --icon /usr/share/mini-icons/audio-volume-high.png \
--ok-label Set --cancel-label Advanced --rangebox "Master Volume" 9 25 0 100 $VOLUME`
if [ $? -eq 1 ];then
rxvt +sb -geometry 95x20 -e alsamixer
else
amixer set Master $VOLUME"%"
fi
aplay /usr/share/audio/2barks.au &

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
pri


Joined: 09 Oct 2009
Posts: 330
Location: Bandung Indonesia

PostPosted: Sat 23 Jan 2010, 21:46    Post_subject:  

great, now i have w bar from jwm.

now how to make it not covered with program windows, like originaly jwm taskbar? can it ?

_________________
Learning by Doing
Back to top
View user's profile Send_private_message Visit_website YIM 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 22 Mar 2011, 16:17    Post_subject:  

ok, some more ideas to extend jwm:

patch jwm make a generic message using the shutdown/restart verification: using jwm -msg "your message here"

(I still haven't figured out how to make icons opaque but the trays translucent)

use jwm -restart in scripts for regenerating trays (see pupng, and puplite for drive icon examples) ... could be used for a number of things

apply these to allow jwm to start at the beginning of init and update boot process in real time (with option to stay in Xvesa/jwm only env or to configure their system and switch to a full Xorg+rox environment)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 14 May 2011, 03:29    Post_subject:  

no patching necessary

a way to do notifications with jwm using no additional resources ... basically have a tray with a button whose text is the notification (with optional image and tooltip)
use an include in .jwmrc for ".jwmrc-notify" (not existent by default)
to generate one echo the xml data to .jwmrc-notify put at level 12, halign=center, y=0, tray, button, image, short notification, long notification (tooltip)
- clicking on it deletes the .jwmrc-notify xml file and then does jwm -refresh (cool eh?)

no code yet because no time

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 14 May 2011, 06:10    Post_subject:  

technosaurus wrote:
no patching necessary

a way to do notifications with jwm using no additional resources ... basically have a tray with a button whose text is the notification (with optional image and tooltip)
use an include in .jwmrc for ".jwmrc-notify" (not existent by default)
to generate one echo the xml data to .jwmrc-notify put at level 12, halign=center, y=0, tray, button, image, short notification, long notification (tooltip)
- clicking on it deletes the .jwmrc-notify xml file and then does jwm -refresh (cool eh?)

no code yet because no time

sounds good... I'm gonna make a new Puplite at some point, wil defo keep my eye in this thread, as I used so much of it already!!
Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sat 14 May 2011, 12:10    Post_subject:  

Just fell over this thread and thought you might be interested in this:



The leftside launcher is a tray. To get the transparent appearance, I just gave it a background colour the same as the desktop, but if you wanted to make it properly transparent xcompmgr would have to be running and an opacity command would have to be set.
Damn if Ubuntu didnt copy this with Unity Smile
I also have it set to display only an icon in the task list as you can see at the top of the desktop.
This is a very effective desktop (for me anyway)
Only problem is some programs launch at the very top left of the screen putting them UNDER the taskbar and side menu. This can be fixed with a 'group' command, but there are so few I have not got to it yet.

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 14 May 2011, 13:44    Post_subject:  

DaveS wrote:
Only problem is some programs launch at the very top left of the screen putting them UNDER the taskbar and side menu. This can be fixed with a 'group' command, but there are so few I have not got to it yet.
Did you try adding layer=0 (or 1?) to the tray?
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sat 14 May 2011, 16:47    Post_subject:  

technosaurus wrote:
DaveS wrote:
Only problem is some programs launch at the very top left of the screen putting them UNDER the taskbar and side menu. This can be fixed with a 'group' command, but there are so few I have not got to it yet.
Did you try adding layer=0 (or 1?) to the tray?


Yes, I tried that, but then everything loads on top of the tray Sad
Good thought though.....

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
lithpr


Joined: 10 Mar 2011
Posts: 186

PostPosted: Wed 25 May 2011, 22:31    Post_subject:  

This thread is so full of awesome. I love all the creative "out of the box" thinking involved, and that DaveS' Launcher/Tray is beautiful. I haven't spent any time looking at/messing with JWM. I'm definitely going to be checking it out! Very inspirational.
Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Thu 26 May 2011, 00:22    Post_subject:  

lithpr wrote:
This thread is so full of awesome. I love all the creative "out of the box" thinking involved, and that DaveS' Launcher/Tray is beautiful. I haven't spent any time looking at/messing with JWM. I'm definitely going to be checking it out! Very inspirational.


More info on how to set up a launchbar in JWM here
http://www.murga-linux.com/puppy/viewtopic.php?t=56795

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Thu 26 May 2011, 15:41    Post_subject:  

lithpr wrote:
This thread is so full of awesome. I love all the creative "out of the box" thinking involved, and that DaveS' Launcher/Tray is beautiful. I haven't spent any time looking at/messing with JWM. I'm definitely going to be checking it out! Very inspirational.


Currently working on this project. seems very sophisticated
http://www.murga-linux.com/puppy/viewtopic.php?p=527539#527539

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Thu 26 May 2011, 22:44    Post_subject:  

just add this include to your jwmrc

<Include>/root/.jwmrc-notify</Include>

and here are 2 basic scripts to add a notification with icon and remove it when clicked or after 5 seconds - feel free to mod to suite

here is jwm_notify
Code:
#!/bin/sh
SHORTMSG=${1:-JWM_NOTIFICATION}
LONGMSG=${2:-$SHORTMSG}
ICON=${3:-mini-dog.xpm}
JWMNOTIFYCMD=${4:-jwm_denotify}
TIMEOUT=${5:-5}
echo '<JWM><Tray layout="vertical" halign="center" y="1" ><TrayButton popup="'$SHORTMSG'" label="'$LONGMSG'" icon="'$ICON'">exec:'$JWMNOTIFYCMD'</TrayButton></Tray></JWM>' >$HOME/.jwmrc-notify
jwm -restart
sleep $TIMEOUT
[ -e $HOME/.jwmrc-notify ] && jwm_denotify
and jwm_denotify
Code:
#!/bin/sh
rm $HOME/.jwmrc-notify && jwm -restart
Note: the "&&" here is useful since rm will fail if jwm_denotify has already been run, thus preventing a second refresh (&& only executes the next command on a success)

EDIT: this could be extended to select from a list by adding multiple traybuttons ... for example a quick app menu, or a wizard, or ???

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Fri 27 May 2011, 11:16    Post_subject:  

here is one for multiple notifications with some added fixes

jwm_denotify
Code:
#!/bin/sh
rm $HOME/.jwmrc-notify && jwm -restart
[ `which $1` ] && $@
jwm_notify
Code:
#!/bin/sh
echo '<JWM><Tray layout="vertical" halign="center" y="1" >' >$HOME/.jwmrc-notify

while ([ $# -gt 1 ]) do
SHORTMSG=${1:-JWM_NOTIFICATION}
LONGMSG=${2:-$SHORTMSG}
ICON=${3:-mini-dog.xpm}
JWMNOTIFYCMD=${4:-exit}
TIMEOUT=${5:-5}
echo '<TrayButton label="'$SHORTMSG'" popup="'$LONGMSG'" icon="'$ICON'">exec:jwm_denotify' $JWMNOTIFYCMD'</TrayButton>' >>$HOME/.jwmrc-notify
shift 4
done

echo '</Tray></JWM>' >>$HOME/.jwmrc-notify
jwm -restart
sleep $TIMEOUT
[ -e $HOME/.jwmrc-notify ] && jwm_denotify exit


usage:
jwm_notify "Short Message" "Long Message" "icon" "command" .... <timeout>
(you need all 4 for each message even if it is just blank - use "")
jwm_notify.png
 Description   a quick example ...
notice that the icon can grow extremely large if the short messages are of different lengths
Just "add spaces as necessary. " ... so they are the same length
 Filesize   12.42 KB
 Viewed   1649 Time(s)

jwm_notify.png


_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Wed 13 Jul 2011, 08:38    Post_subject: Idrivepanel
Sub_title: Place Rox desktop drive icons in a panel
 

Idrivepanel is an implementation of the ideas put forth in this thread and can be found below:
http://murga-linux.com/puppy/viewtopic.php?t=69830

This provides all of the usual mounting, unmounting, notifications and hotplug information found in the Rox desktop drive icons without using the Rox desktop

Cheers,
s
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.1043s ][ Queries: 13 (0.0183s) ][ GZIP on ]