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 Thu 17 Apr 2014, 20:32
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 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5
Author Message
musher0


Joined: 04 Jan 2009
Posts: 3789
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  162 Time(s) 
N_bureaux_pekwm.jpg
 Description   
 Filesize   24.42 KB
 Viewed   332 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: 3789
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: 119

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: 3789
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: 119

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: 3789
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 "regugees" 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 
Display posts from previous:   Sort by:   
Page 5 of 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5
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.0843s ][ Queries: 13 (0.0118s) ][ GZIP on ]