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 Sun 30 Aug 2015, 05:55
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 6 of 6 [82 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
Author Message
musher0


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

PostPosted: Sun 01 Jun 2014, 08:40    Post subject:  

Hello, all.

I found this yesterday: http://akita.scottjarvis.com/pekwm-0.1.16-i486.pet
in the akita repo, and it works great in my PuppyPrecise-5.7.1. Just underneath that
entry, you will also find some pekwm themes and some pekwm documentation.

So, following the advice of my medieval buddy Ockham (see under my sig), I will not
be "needlessly creating" another logical entity for pekwm! Very Happy

Of course: thanks to Scott Jarvis (aka "scottman") for this, and generally for his steady
work evolving Puppy 4.20 into the "akita" derivative.

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: 5771
Location: Gatineau (Qc), Canada

PostPosted: Mon 05 Jan 2015, 09:11    Post subject:
Subject description: urxvt terminal a la "kuake" in pekwm
 

Hello, all.

I discovered that you could have an urxvt console "a la kuake" in pekm. "kuake-
type" consoles drop down from the top edge of the screen when you hover your
mouse at the very top (line 0).

Now it's not a clone, but close enough. I for one find it quite handy to have so to
speak immediate access to a terminal to do a files listing, or generally to use any
CLI utility, and always at the same place on the screen.

-- How-to --
A) The configuration file at /root/.pekwm/mouse. It's there expressly to allow the
customization of such mouse movements or key/mouse-button bindings.

1) I used the mouse scripting capacity that pekwm provides in its "mouse" config file.
I added the following in the mouse config file.
Code:
ScreenEdge {
   Up {
   ButtonRelease = "Mod4 1" { Actions = "Exec /root/my-applications/bin/console.sh &" }
   }
}


2) I had to enter the full path and filename, because the variables in pekwm's
"vars" config file do not seem to work here. I have
Quote:
$MBINS="~/my-applications/bin"

in my vars config file, but it didn't work. However the variables in vars work fine
in the pekwm menu.

2) You have to re-start pekwm from the initial black console with
Code:
xwin pekwm

for the new mouse definition to be effective. The "Reload" and "Restart" in the
pekwm menu do not appear to be powerful enough to reinitialize pekwm's mouse
configuration.

3) "Mod4" designates the "window" key. The "1" after it means the left button of
the mouse.

So for this terminal to appear, you have to move your cursor to the very top of the
screen and press the window key on your keyboard and the left mouse button
at the same time.

B) An "on/off" script for urxvt.
Code:
#!/bin/ash
# $MBINS/console.sh et $MBINS/console (lien)
# Also required (dependency): wmctrl
# musher0, 4 janv. 2015.
####
A="`wmctrl -lxp | grep "Console1" | cut -d'C' -f2`"
case $A in
   onsole1)
   kill "`pidof -s urxvt`" &>/dev/null
   ;;
    *)
     G="g 80x20+250+0"
   COL="bg #271F0C -fg black -bd #BDBDBD -tr -tint AntiqueWhite3 -sh 120"
   FNT="fn xft:Monaco:pixelsize=15:antialias=true:hinting=true"
   urxvt -cd /root -b 18 -sr -T "Console1" -$COL -$FNT -$G &
   sleep 1.5s
   ;;
esac


Why I use wmctrl to define the title of the window in variable A, is because it allows
me to have a second terminal controlled (I mean opened and closed) the usual way,
and optionally with another type of background. You can find wmctrl at:
[img]http://tomas.styblo.name/wmctrl/[/img]

Note: I find the MONACO fixed font the most appropriate for terminals, but each
user may have a preference. There are a number of "monaco" fonts on the web,
and the more recent ones seem to be proportional fonts -- in other words useless
in a terminal, proportional fonts turn a terminal into an accordeon. Smile

Number 4 here http://lowing.org/fonts/ is the one I'm talking about. You
can download it from: http://www.gringod.com/wp-upload/MONACO.TTF
Other distinguishing features: Its name is all in caps, and it weighs 65K.

As I mentioned, the script above is an on/off switch. You use the same key /
mouse-button combination (< window key + left mouse button >) to open and
close this console in pekwm.

The result is illustrated below.

~~~~~~~~~

BFN

musher0
urxvt-a-la-kuake.jpg
 Description   Open.
 Filesize   30.8 KB
 Viewed   149 Time(s)

urxvt-a-la-kuake.jpg

urxvt-a-la-kuake(1).jpg
 Description   You can also shade it. Visually, it then balances the presence of your regular tray &
bar at the bottom of the screen.
 Filesize   8.09 KB
 Viewed   144 Time(s)

urxvt-a-la-kuake(1).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 
musher0


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

PostPosted: Mon 05 Jan 2015, 10:00    Post subject:  

Hello again, folks.

Here's another nicety, this time for the pekwm menu: RAM free.

The script goes in /root/.pekwm

Code:
#!/bin/sh
# ~/.pekwm/mev-libr-pekwm.sh
# dynamic script for pekwm menu, to show the free RAM as you
# progress through your pekwm session.
##
# musher0, 3 janv. 2015.
####
# Variables
MEMDISP="/tmp/MEV"
export MBINS="/root/my-applications/bin"
a="";a="`free | grep Mem | awk '{ print $2 }'`"
# ;echo $a
b="";b="`free | grep Mem | awk '{ print $4 }'`"
# ;echo $b
MEVDISP=`echo "scale=2;(($b / $a) * 100)" | bc -l`
# echo "$MEVDISP %"

# Langues # If not exist "fr", show entry in English.
if [ ${LANG:0:2} = "fr" ];then
   echo "Dynamic {"
   echo " Entry = \"   MEV : $MEVDISP %\" { Actions = \"Exec $MBINS/mem-libr.sh & \" } "
   echo " }"
   else
      echo "Dynamic {"
      echo " Entry = \"   RAM: $MEVDISP %\" { Actions = \"Exec $MBINS/mem-libr.sh & \" } "
      echo " }"
fi


The pekwm menu entry is as follows. You would place it normally second from the top,
right after the date & time dynamic menu entry
Code:
   Entry = "" { Actions = "Dynamic $PEK/mev-libr-pekwm.sh"}


For the result, see the illustration below.

Now I've set it up to show the results of the "free" utility in less, but you could ask the
dynamic script to clean up RAM when it gets below a certain percentage. More about
this later.

I also made a variant for aewm's aemenu. More about this elsewhere. Smile

BFN.

musher0
Free_RAM_on_pekwm_menu.jpg
 Description   
 Filesize   21.95 KB
 Viewed   133 Time(s)

Free_RAM_on_pekwm_menu.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 
musher0


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

PostPosted: Sun 18 Jan 2015, 15:04    Post subject:  

Hello, people.

Just an important note to mention: open the pekwm doc and go to the very bottom.
Quote:

18.20. Why is nvidia dual-head misbehaving?

The nvidia proprietary driver provides dual head information both in Xinerama and
RANDR form. The RANDR information given by the driver is in the form of one large
screen, the Xinerama is divided up into multiple heads. To work around this the
HonourRandr option has been introduced in the Screen section of the main
configuration file. Set it to False making pekwm only listen on the Xinerama
information.

Screen {
...
HonourRandr = "False"
...
}



I quote it here because people never read docs all the way down to the end... Wink

Except that if you don't set the above parm in pekwm's config file, there's a good
chance your pekwm will refuse to work. It happened to me the other day when I
replaced my nVidia card with a "née Radeon" card .

Not being able to run pekwm is no fun, whatever the video card.

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: 5771
Location: Gatineau (Qc), Canada

PostPosted: Mon 19 Jan 2015, 08:14    Post subject:  

Hello again, Puppyists.

I just discovered that "Taskbar" is an undocumented but recognized parameter in the
pekwm's autoproperties file. This, for example,

Code:
Property = "^xclock,^XClock" {
   ApplyOn = "Start New"
    Border = "True"; Titlebar = "False"
    Sticky = "True"
    Layer = "Normal"
    Skip = "Taskbar Menus FocusToggle Snap"
}


will prevent xclock from showing in bmpanel2's taskbar, and probably other bars as
well (to be checked).

Another parm that appears to be undocumented is "Shaded = True". The following,
for example, will shade an urxvt terminal bearing the title "Console1".

Code:
Property = "^urxvt,^URxvt" {
   Title = "Console1"
    ApplyOn = "Start New"
#     ClientGeometry = "560x137+120-137"
    Border = "True"; Titlebar = "True"
    Sticky = "False"
    Shaded = "True"
    Layer = "Normal"
}


-- A word also on the lesser known "Title =" parameter. --
The "Title = Console1" parameter above will be checked agains a "-T Console1" parm
in the urxvt command line. If true, the window will shade (wrap up or shrink vertically)
to the windows's title bar.

That's fine-tuning, actually. The advantage of this is that the Title parameter enables
you to launch a second terminal with no particular title, and this last one will display
on your monitor as a regular, unshaded window.

Finally, in both examples, the ClientGeometry parm is not used. In the first case, it's
simply not there, and in the second case, it's commented out. That's because it's
controlled from the command line, not through pekwm. If you had both, I believe the
pekwm one would have precedence (to be checked).

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: 5771
Location: Gatineau (Qc), Canada

PostPosted: Wed 04 Feb 2015, 14:13    Post subject:  

Hello, pekwm fans!

This code
Code:
#!/bin/ash
# ~/.pekwm/mev-libr-pekwm.sh
# par musher0, 3 janv. & 4 févr. 2015.
####
MEVDISP="`grep Mem /proc/meminfo | tr -s ' ' | tr '\n' ' ' | awk '{ print $5/$2*100 }'`";MEVDISP="${MEVDISP:0:5} %"
# Langues
[ ${LANG:0:2} = "fr" ] && MV="MEV" || MV="RAM"

echo "Dynamic {"
echo " Entry = \"  $MV : $MEVDISP\" { Actions = \"Exec /root/my-applications/Systeme/cleanup_memory3 & \" } "
echo " }"

####################
# Ligne appellante dans le menu de pekwm :/ # Calling line in the pekwm menu:
#
#    Entry = "" { Actions = "Dynamic $PEK/mev-libr-pekwm.sh"}
#
# Placer de préférence vers le haut du menu. / # Put preferably near the top of the menu.
####################


gets you this listing in the pekwm menu (see attached screen capture), provided
that you put this line:
Code:
Entry = "" { Actions = "Dynamic $PEK/mev-libr-pekwm.sh"}

somewhere near the top of your pekwm menu.

The <cleanup_memory3> script (evolved from big_bass's original for Puppy 4.12
"Slaxer"), called by the pekwm menu "Entry" above, can be downloaded from:
http://murga-linux.com/puppy/viewtopic.php?p=826070&sort=lastpost#826070

Enjoy!

musher0
MEV-dans-menu-pekwm.jpg
 Description   
 Filesize   22.93 KB
 Viewed   85 Time(s)

MEV-dans-menu-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 
musher0


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

PostPosted: Wed 08 Jul 2015, 19:47    Post subject:  

Hello, pekwm fans.

pekwm-1.17 was made available last January (2015) by pekdon.

Here is a *.pet archive of it. I compiled it on PuppyPrecise-5.4.3.
I've included only a minimal set of themes, however.

I tested it on PuppyPrecise-5.4.3 and vividPup-6.5. Works fine on both.
Let us know your mileage on other pups?

Any questions, please ask. Thanks. 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 
Display posts from previous:   Sort by:   
Page 6 of 6 [82 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
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.0814s ][ Queries: 12 (0.0131s) ][ GZIP on ]