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 Fri 31 Oct 2014, 15:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
PekWM 1.15 Released
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [76 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
musher0


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

PostPosted: Tue 06 Aug 2013, 19:27    Post subject:  

Hello, all.

Here is a little script to change the number of desktops in pekwm on the
fly. AFAIK, it is version-neutral. It requires replaceit as a dependency
(can be downloaded from http://www.pldaniels.com/replaceit/).
It goes in ~/.pekwm and should be named "def-pwm-wkspaces.sh".

Code:
#!/bin/sh
# Nom et emplacement de ce script : ~/.pekwm/def-pwm-wkspaces.sh
# Dépendances : replaceit, pekwm
# (c) Christian L'Écuyer (alias / aka musher0),
# Gatineau (Qc), Canada, 7 juin 2013.
# Tous droits réservés, sauf usage privé et personnel ("ad usum privatum")
# dans le contexte de ToutouLinux. / All rights reserved, except private
# and personnal use ("ad usum privatum") in the context of PuppyLinux.
####
case "$@" in
   1)WS="Workspaces =\"1\""
      WPR="WorkspacesPerRow =\"1\""
      WSN="WorkspaceNames =\"- 1 -\"" ;;
   2)WS="Workspaces =\"2\""
      WPR="WorkspacesPerRow =\"2\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -\"" ;;
   3)WS="Workspaces =\"3\""
      WPR="WorkspacesPerRow =\"3\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -\"" ;;
   4)WS="Workspaces =\"4\""
      WPR="WorkspacesPerRow =\"4\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -\"" ;;
   5)WS="Workspaces =\"5\""
      WPR="WorkspacesPerRow =\"5\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -;- 5 -\"" ;;
   6)WS="Workspaces =\"6\""
      WPR="WorkspacesPerRow =\"6\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -;- 5 -;- 6 -\"" ;;
   7)WS="Workspaces =\"7\""
      WPR="WorkspacesPerRow =\"7\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -;- 5 -;- 6 -;- 7 -\"" ;;
   8)WS="Workspaces =\"8\""
      WPR="WorkspacesPerRow =\"8\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -;- 5 -;- 6 -;- 7 -;- 8 -\"" ;;
   9)WS="Workspaces =\"9\""
      WPR="WorkspacesPerRow =\"9\""
      WSN="WorkspaceNames =\"- 1 -;- 2 -;- 3 -;- 4 -;- 5 -;- 6 -;- 7 -;- 8 -;- 9-\"" ;;
   *) exit ;;
esac
R="replaceit --input=/root/.pekwm/config --wholeline"
$R Workspaces "    $WS" -"#"
$R WorkspacesPerRow "    $WPR"
$R WorkspaceNames "    $WSN"

### 30 ###


To make it accessible, place the following at the end of the pekwm sub-menu in the pekwm menu. (See attached picture if you don't know where that is.)

Code:
      Submenu = " Number of desktops" {
# Pour un sous-titre en français, mettez un dièse devant la ligne
# ci-dessus, et enlevez le dièse devant la ligne ci-dessous.
#              Submenu = " Nombre de bureaux" {
         Entry = " - 1 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 1;Restart" }
         Entry = " - 2 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 2;Restart" }
         Entry = " - 3 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 3;Restart" }
         Entry = " - 4 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 4;Restart" }
         Entry = " - 5 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 5;Restart" }
         Entry = " - 6 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 6;Restart" }
         Entry = " - 7 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 7;Restart" }
         Entry = " - 8 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 8;Restart" }
         Entry = " - 9 - " { Actions = "Exec ~/.pekwm/def-pwm-wkspaces.sh 9;Restart" }
      }


You click on the number of desktops you require, pekwm re-launches (not the full re-start), and the number of desktops is adjusted (they will show in your taskbar).

Enjoy.

musher0
def-pwm-wkspaces.sh.zip
Description 
zip

 Download 
Filename  def-pwm-wkspaces.sh.zip 
Filesize  775 Bytes 
Downloaded  230 Time(s) 
N_bureaux_pekwm.jpg
 Description   
 Filesize   24.42 KB
 Viewed   535 Time(s)

N_bureaux_pekwm.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 21 Aug 2013, 15:15    Post subject:  

I updated my hack of openbox-menu at https://bitbucket.org/nfisher1226/pekwm-menu. This is a compiled app in C, and the link is just to the source. Please note Simargl did essentially the same thing a while back but based on an earlier release of openbox-menu and with the capability to display icons removed. Since you can easily turn off icon display in your pekwm config I left it in the program. It requires glib, gtk (for the icon lookup) and menu-cache (from lxde, but can be used separately). Nice and fast.

Usage is exactly as you would use any other Dynamic menu with pekwm.

This is essentially just a sync with upstream but while I was at it I fixed a couple compiler warnings.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
musher0


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

PostPosted: Wed 11 Sep 2013, 16:56    Post subject:
Subject description: pekwm and rox-panels, a happy reunion
 

Hello, pekwm lovers. Smile

There is a way to make ROX panels pekwm friendly simply by inserting
some commands in the "mouse" configuration file. Under the heading
"ScreenEdge", then "Bottom", you can add a line like:

Code:
   ButtonRelease = "Mod1 1" { Actions = "Exec rox -b=bottom-panel &" }

to add a rox panel at the bottom.
The action required is Alt-LeftClick at the bottom of the screen.

And then to remove it:
Code:
   ButtonRelease = "Mod1 2" { Actions = "Exec rox -b= &" }

Here, the action required is Alt-MiddleClick at the bottom of the screen.

Or you can compose one switch script that will open or close the bottom
panel, depending on the contents of the "panels" file.

You can put whatever program you like in the bottom panel, not
forgetting ROX-Applets FreeFS, Load, Mem and Tasklist that will help you
build an informative panel similar the jwm or icewm panels.

This is probably the simplest route: since ROX is already in all Puppies,
the memory overhead will be minimal, as compared to lxpanel or fbpanel
or xfce-panel.

Please see: http://bkhome.org/blog/?viewDetailed=01241 and
http://distro.ibiblio.org/quirky/pet_packages-quirky/

Avoid the rox pager since it is unstable when closing and re-opening a rox
panel. If you intend to use a ROX panel at the bottom permanently,
it won't matter, but if you want to open and close a rox panel at the
bottom, use the very steady stalonetray instead. When you close it,
stalonetray preserves its icons from one time to the next.
http://stalonetray.sourceforge.net/

You can mimic the above approach for left-side and/or right-side panels,
since pekwm's mouse config has headers for left and right as well. And
then you put the other programs that you need in those panels.

That's all for now! TWYL.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
jimwg

Joined: 18 Aug 2013
Posts: 121

PostPosted: Mon 23 Sep 2013, 06:21    Post subject:  

deleted
Back to top
View user's profile Send private message 
Gnuxo

Joined: 09 Feb 2012
Posts: 365

PostPosted: Wed 02 Oct 2013, 03:26    Post subject:  

I didn't realize this but another new version of Pekwm was released.
Version 1.17.

https://www.pekwm.org/projects/pekwm/news
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 02 Oct 2013, 12:48    Post subject:  

Gnuxo wrote:
I didn't realize this but another new version of Pekwm was released.
Version 1.17.
https://www.pekwm.org/projects/pekwm/news


Thanks, gnuxo.

However, I had trouble compiling that version on my wary 5.5, so
member Médor suggested that I use the git from
https://www.pekwm.org/projects/pekwm/repository
(the first "git" entry, just below the 1st paragraph). That git version
compiled just fine after use of "autogen.sh".

This new pekwm offers a screen capture utility, but there are many of
those already on Puppy, which are much more efficient and have
more options than the one in pekwm 1.17. I must say that the pekwm
utility creates very high quality pictures, but since screen captures are
usually used for examples on message boards, such a high quality of
picture is overkill.

Also, this brings up the question: should a screen capture utility be part of
a window manager? If so, you could just replace the pekwm capture with
one of Puppy's, and voilà!, you'd have upgraded pekwm? Rolling Eyes

IMO, pekwm version 1.17 is not worth changing to. One can stick to
version 1.16 until the authors of pekwm introduce more significant
changes.

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Gnuxo

Joined: 09 Feb 2012
Posts: 365

PostPosted: Wed 02 Oct 2013, 14:33    Post subject:  

No, I actually don't care for screen capture, other then to report bugs online.
But I was hoping that there would some performance improvements.
Not to say that pekwm needs them, it's fast enough. But if it got even faster, that wouldn't be a bad thing.
Back to top
View user's profile Send private message 
jimwg

Joined: 18 Aug 2013
Posts: 121

PostPosted: Wed 02 Oct 2013, 20:20    Post subject:
Subject description: pekwm and rox-panels, a happy reunion
 

musher0 wrote:
Hello, pekwm lovers. Smile

There is a way to make ROX panels pekwm friendly simply by inserting
some commands in the "mouse" configuration file. .... That's all for now! TWYL.

musher0



If there were a script that could totally and automatically configure all this for newbies to have custom desktop backgrounds you will make Puppy all that more outrageously attractive to Mac refugees!

Thanks for your great long work for the linux community!

Jim in NYC
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Thu 03 Oct 2013, 13:34    Post subject:
Subject description: pekwm and rox-panels, a happy reunion
 

jimwg wrote:
musher0 wrote:
Hello, pekwm lovers. Smile

There is a way to make ROX panels pekwm friendly simply by inserting
some commands in the "mouse" configuration file. .... That's all for now! TWYL.

musher0



If there were a script that could totally and automatically configure all this for newbies to have custom desktop backgrounds you will make Puppy all that more outrageously attractive to Mac refugees!

Thanks for your great long work for the linux community!

Jim in NYC


Hi, jimwg.

Thanks for the thanks! Smile

Shame on me, I am not advanced enough as a programmer to provide
you and other "refugees" with automated configuration of pekwm. I'm
doing what I can to popularize a wonderful window manager, that's all.

Like a lot of people here, I'm just an "amateur with a passion". I'm
learning everyday, though, so who knows.

An additional difficulty is that pekwm is very configurable, so that would
represent a lot of coding...

Maybe you could leave a message on the pekwm board. The authors
there certainly would have the knowledge to offer us some automatic
configuring. Just a thought.

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Thu 22 May 2014, 19:55    Post subject:  

Hello, all.

As you may know the sharing site I was using, limelinx, has shut down.

While I am retracing the pet packages I made for pekwm, those interested in pekwm
may wish to try one of the ready-made debian or ubuntu packages available at
http://pkgs.org/search/pekwm.

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Sun 25 May 2014, 08:46    Post subject:  

Hello, pekwimmers and wood-peckers! Smile

I was unhappy with kittykat's desktop.sh, suggested on the pekwm "Companions"
page (https://www.pekwm.org/projects/3/wikis/Companions) as a utility
to iconify all open windows on a particular desktop.

Problem is: kittykat's script does only part of the job. It hides only non-sticky
windows. I needed something that took charge of any and all windows located on a
particular desktop. So I made my own.

(May 27, 2014. Beginning of edit.)
~~~~~~~~~~~~~~~~~~~~~~~
Code:
#!/bin/sh
# /root/my-applications/bin/cache-fen3.sh ("Homme fort" / "Strong Man")

# # Objectif : icônifier ou masquer les fenêtres ouvertes sur un bureau
 # quand on se sert d'un gest. de fen. qui n'a pas cette fonction. /
# # Purpose: iconify or shade windows open on a desktop when using a
 # window manager that does not have that function.

# # Requires / Requiert : wmctrl (http://tomas.styblo.name/wmctrl/)

# # (c) Christian L'Écuyer (alias / aka musher0), Gatineau (Qc), Canada,
 # 25 mai / May 25, 2014. Tous droits réservés / All rights reserved.
 # Edited / Révisé 26 et 27 mai 2014 / May 26 & 27, 2014 par CLÉ.
####

a="hidden"
# Please note that on some wm's, this really means "hidden", not
# just "iconified"... So, don't panic! (:-)
# a="shaded"
 # Le paramètre "shaded" ne performe pas toujours aussi bien : il peut
 # ignorer certaines fenêtres, telle l'Analog-Clock de GTK-Basic. / 
 # The "shaded" setting doesn't always perform as well: it may ignore
 # some windows, such as GTK-Basic's Analog-Clock.

bur="`wmctrl -d | awk '$2 == "*" { print $1 }'`" 
 # Dit sur quel bureau nous sommes. / Says on which desktop we are.
 # ( +/- tiré du script de kittykat. Le reste est de moi.) /
 # (Line from kittykat's script +/- verbatim. The rest is from me.)

for i in `wmctrl -l | grep -v '+AT' | awk -v bur=$bur '$2 == bur || $2 == -1 { print $NF }'`
 # Ci-dessus / Above, < ... || $2 == -1 ... >
 # ramasse aussi les fenêtres "collantes". / also picks up sticky windows.
 # Les fenêtres de ROX-Filer avec "+AT" dans sont traités ci-dessous. /
 # The ROX-Filer windows with "+AT" in the title are processed below.
 do
   wmctrl -r "$i" -b toggle,$a
 done

# Vérifions maintenant les dossiers ouverts de ROX-Filer. / We now check for open ROX-Filer folders.
wmctrl -l | grep '+AT' | awk -v bur=$bur '$2 == bur || $2 == -1 { print $(NF-1)" "$NF }' | tr "\n" ";" > /tmp/rxflr
nchamps="`wmctrl -l | awk '$NF ~ /\+AT/ { print $(NF-1)" "$NF }' | wc -l`"
for i in `seq $nchamps`
do
   wmctrl -r "`awk -F";" -v i=$i '{ print $i }' /tmp/rxflr`" -b toggle,$a
done
rm -f /tmp/rxflr
# Le cas de / Geany's / case ! # Ses fenêtres secondaires / Its secondary windows.
[ "`wmctrl -l | awk '$NF ~ /Find/'`" ] && wmctrl -r "Find" -b toggle,$a
[ "`wmctrl -l | awk '$NF ~ /Replace/'`" ] && wmctrl -r "Replace" -b toggle,$a


As you can see, I added the possibility to use the script to shade windows instead
of hiding them. I left it at a possibility for now, for the reason mentioned in the comment.

Now this will work as advertised only if you have ticked "Short Title Flags" in the
ROX-Filer options.
An attached illustration shows where that setting can be set in
the ROX-Filer Options panel.

(End of edit.)
~~~~~~~~

It can be used with pekwm, with any wm lacking such a function, or with any wm that
does not have one as vigourous! It's well commented, so I'll leave you to it. Smile

Enjoy! (Or shed a tear Crying or Very sad for all the years you lost trying to figure out how to do
this... Just kidding, speaking for myself! ) Smile

BFN.

musher0
cache-fen3.sh.zip
Description  Same script, zipped.
zip

 Download 
Filename  cache-fen3.sh.zip 
Filesize  1.35 KB 
Downloaded  42 Time(s) 
ShortTitleFlags.jpg
 Description   
 Filesize   22.55 KB
 Viewed   97 Time(s)

ShortTitleFlags.jpg

before.jpg
 Description   
 Filesize   61.32 KB
 Viewed   152 Time(s)

before.jpg

after.jpg
 Description   
 Filesize   61.63 KB
 Viewed   151 Time(s)

after.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Tue 27 May 2014, 11:37; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Sun 25 May 2014, 12:45    Post subject:  

Hello again !

In reference to the above, please note that there is a limitation in wmctrl concerning
multiple windows of the same executable on a desktop.

wmctrl will not iconify two urxvt terminals. If there are one or three or more, it will
iconify only the first one.

(Edited Monday, May 25th, 2014.)
~~~~~~~~~~~~~~~~~~~~~
If anyone knows of a workaround, I'll be grateful.

I thought it was the same with ROX-Filer windows until I discovered that wmctrl likes
to work with specifics when it comes to opened windows of a same program. So
see please amended script in above post: it now can hide or shade 16 likely folders a
ROX-Filer window may show.

(End of edit)
~~~~~~~~
BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Mon 26 May 2014, 21:25    Post subject:  

Hello.

Tonight, I edited my previous two posts in light of some new experiments I did with
wmctrl. Please re-read.

The edited script covers more cases than the previous one.

Thanks for your understanding.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Tue 27 May 2014, 00:34    Post subject:  

Another update, using an array and a for...do...done loop while dealing with ROX windows.
~~~~~~~~~~~
Edit: Processing only 25 folders out of the 48,716 on this Puppy Precise-5.7.1... Oh well... Smile
~~~~~~~~~~~
This script is now at version 2. BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


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

PostPosted: Tue 27 May 2014, 11:32    Post subject:  

Hello, everyone.

The cache-fen script now has a new version codenamed "Strong Man"... Because this one
can handle any of the nearly 49,000 folders that ROX-Filer can show on your computer,
not just a meager 25 . Consequently, the fourth post above has been edited.

Enjoy!

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 5 of 6 [76 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
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.1155s ][ Queries: 12 (0.0049s) ][ GZIP on ]