(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 Sep 2020, 13:48
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Dmenu (advanced) - Dynamic Menu System
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 3 of 3 [41 Posts]   Goto page: Previous 1, 2, 3
Author Message
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 11 Nov 2009, 04:25    Post subject:  

progress report:
i've been able to apply a 'working' xft and vertical patch (allready tested). i've also applied the history-patch by hand, but i have to test this one. if this works, i will try to apply the dockapp-patch and test it. i think i will get the results tomorrow (i think).

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2647

PostPosted: Wed 11 Nov 2009, 07:03    Post subject:  

Please attach working patches.
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 11 Nov 2009, 08:27    Post subject:  

amigo,
yes if im ready, i will do a diff with all working patches.

Or are you interested in seperate ones? this could be done for

1. xft+vertical
2. add history to 1.
3. add dockapps to xft+vertical+history (if i get this one correct...)

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 11 Nov 2009, 15:47    Post subject:  

so here we go. all patches went ok (dockapp not tested, don't know what it does, amigo???). so you will find a pet, the patched source and a diff from original source to completely patched source in post 1.

because of this package i've now removed the patched version with only vertical and history.

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2647

PostPosted: Thu 12 Nov 2009, 16:01    Post subject:  

I would appreciate separate patches if it isn't too much trouble, although I could probably sort them out. The dockapp patch sets the wm_class so that some window managers will no draw shadows, borders, titlebars, etc for dmenu. See archlinux wiki "dmenu-patch-as-DockApp"

You could drop the patches off here in Sprendlingen if you are in the heighborhood Smile

Thanks for working on these to get them all working together.
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 13 Nov 2009, 06:02    Post subject:  

amigo wrote:
I would appreciate separate patches if it isn't too much trouble, although I could probably sort them out.

will look at it this weekend. will have to resort some things as i've also fixed some typos.

Quote:
The dockapp patch sets the wm_class so that some window managers will no draw shadows, borders, titlebars, etc for dmenu. See archlinux wiki "dmenu-patch-as-DockApp"

makes sense
Quote:
You could drop the patches off here in Sprendlingen if you are in the heighborhood Smile

do you live there? yes i'm working in frankfurt, living in dietzenbach Very Happy
Quote:
Thanks for working on these to get them all working together.

it has been a personal need, as this little tool gives (me) such a usability 'boost'. in addition, working on that has helped me to understand diff and patch a little more...

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 13 Nov 2009, 11:13    Post subject:  

ok amigo,

i've uploaded the seperated patches to post 1.

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2647

PostPosted: Fri 13 Nov 2009, 11:35    Post subject:  

Thanks, -you *are* in the neighborhood.
I guess you don't have 'rpm' installed, so I'll pass you a tiny script which is useful with diff when you are only altering a couple of files, 'gendiff':

Code:
#!/bin/sh

[ -z "$1" -o -z "$2" ] && {
# usage
  echo "usage: $0 <directory> <diff-extension>" 1>&2
  exit 1
}

find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
    U=-u
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
#    diff ${U} $f `echo $f | sed s/$2\$//`
    if [ -r "$f" ]; then
   diff ${U} "${f}" "${f%$2}"
    else
   diff ${U} /dev/null "${f%$2}"
    fi
done


With gendiff, you simply create a copy of the file you are going to patch -say with a suffix of '.00'. Then you edit the original-named file. Then you call gendiff something like this:
cd toplevel of sources
gendiff . .00 > ../name-of.patch
or
gendiff name-of-toplevel .00 > name-of.patch

If several files are patched/edited together with the same suffix, they all get put in the patch generated. It's a good way to separate the patches into bug-fix, added-feature, or formatting patches. Makes them easier to understand and use by others and to remind oneself.
Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1742

PostPosted: Fri 13 Nov 2009, 12:02    Post subject:  

Hey Gilbert

nice script thanks !
I took the liberty to post it again so it doesn't get lost .(I am om slitaz doing live cd testing )

Code:
#!/bin/sh

#script name gendiff
#place in /usr/bin


#reference http://www.murga-linux.com/puppy/viewtopic.php?p=361474#361474
#"amigo"

#With gendiff, you simply create a copy of the file
#you are going to patch -say with a suffix of '.00'.
#Then you edit the original-named file. Then you call gendiff something like this:
#cd toplevel of sources
#gendiff . .00 > ../name-of.patch
#or
#gendiff name-of-toplevel .00 > name-of.patch

#If several files are patched/edited together
#with the same suffix, they all get put in the
#patch generated. It's a good way to separate
#the patches into bug-fix,
#added-feature, or formatting patches.
#Makes them easier to understand and use by others
#and to remind oneself.



[ -z "$1" -o -z "$2" ] && {
# usage
  echo "usage: $0 <directory> <diff-extension>" 1>&2
  exit 1
}

find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
    U=-u
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
#    diff ${U} $f `echo $f | sed s/$2\$//`
    if [ -r "$f" ]; then
   diff ${U} "${f}" "${f%$2}"
    else
   diff ${U} /dev/null "${f%$2}"
    fi
done
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 13 Nov 2009, 16:23    Post subject:  

@ amigo
thanks for the script. have saved it to my 'snippets'.

@big_bass
feel free (i've copied your commented version Wink ).

are you actually building slitzer-pup?

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Wed 11 Mar 2015, 05:57    Post subject:  

Hi!

Here is dmenu2, dated Nov. 2013. This version can be used
horizontally or vertically. It also has transparency, if you like, and some
new features.

Also included is my configuration in the dmenu_run launcher:
Code:
#!/bin/sh
# dmenu_run
# Adapt. par musher0, 11 mars 2015
####
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
   cache=$cachedir/dmenu_run
else
   cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
fi
(
   IFS=:
   if stest -dqr -n "$cache" $PATH; then
      stest -flx $PATH | sort -u | tee "$cache" | dmenu -i -l 15 -p dmenu-wmx -t -name dmenu2-wmx -i -l 15 -p dmenu2-wmx -nb '#8B795E' -nf '#FFFFF0' -sb '#FFFFF0' -sf '#8B795E' -b -y 605 -x 515 -o 0.7 -h 24 -w 300 -fn 'Monaco-11:italic' "$@"
   else
       dmenu -t -name dmenu2-wmx -i -l 15 -p dmenu2-wmx -nb '#8B795E' -nf '#FFFFF0' -sb '#FFFFF0' -sf '#8B795E' -b -y 605 -x 515 -o 0.7 -h 24 -w 300 -fn 'Monaco-11:italic' "$@" < "$cache"
   fi
) | ${SHELL:-"/bin/sh"} &


One (small) problem I encountered with that script was that I couldn't
make the dmenu parameters into a re-usable variable like you can for
urxvt, for example. I couldn't figure out why. It would have saved a few
bytes.

Another small annoyance was that the -y (yoffset) parameter didn't work.
I would have like dmenu to appear just below my conky one-liner.
(Edit, March 12. It does now. The trick is to insert the -b [bottom]
parameter as well as the -y parameter, and to calculate where you want
your dmenu to appear from the bottom. Calculating the y offset directly
from the top of the screen doesn't work.)


But it's minor stuff, it doesn't really matter, it works great even if you
have to type things twice.

The result is in the screen capture below. One thing I like about dmenu is
that when it has finished presenting the files that begin with the letters
you've input, it provides suggestions where the same letters are inside
the file name. That really helps when you can't remember exactly the
name of a file that you don't use that often.

If you search the web a bit, you'll find that some people at archlinux have
a thread for dmenu scripts. Apparently you can use dmenu to launch a lot
of things, including songs, which transforms dmenu into a juke box.

Enjoy!

musher0
dmenu2-vertical-15h_on_wmx_2015-03-12.jpg
 Description   
 Filesize   16.85 KB
 Viewed   1200 Time(s)

dmenu2-vertical-15h_on_wmx_2015-03-12.jpg

dmenu2-0.2.pet
Description 
pet

 Download 
Filename  dmenu2-0.2.pet 
Filesize  16.77 KB 
Downloaded  428 Time(s) 

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [41 Posts]   Goto page: Previous 1, 2, 3
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1296s ][ Queries: 14 (0.0303s) ][ GZIP on ]