Penguin
Annotated edit history of Pekwm version 7, including all changes. View license author blame.
Rev Author # Line
2 AristotlePagaltzis 1 [Pekwm] is a young WindowManager that aims to be lean and mean and look attractive at the same time, without being sold on EyeCandy at the cost of [Bloat]. Features include:
1 AristotlePagaltzis 2
2 AristotlePagaltzis 3 * grouping windows in a single frame à la [PWM]
4 * keygrabber with keychains support
5 * configurable mouse actions
6 * configurable root and window menu
7 * Xinerama support
8 * configurable window placement policy
9 * basic pixmap theming
10 * autoprops, ie rules to automatically set window properties such as stickiness, decorations, grouping etc
11 * dynamic menus regenerated on every view by parsing the output of external programs
12
13 The WindowManager also has basic support for WindowMaker dock applications.
14
15 With all of this, it still attempts to concentrate on its task, and not offer features that can be had by way of using external tools.
16
17 See also:
18 * http://pekwm.org
7 JyriJokinen 19 * http://adresh.com/pekwm
2 AristotlePagaltzis 20
21 ----
22
23 !!Hints
24
25 Try putting this in your window menu definition:
26
27 Entry = "Info" {
28 Actions = "Exec \
29 ID=\$( xprop -root '=\$0' _NET_ACTIVE_WINDOW | cut -f2 -d= ) \
30 ( \
31 xprop -id \$ID \
32 echo '--------------------' \
33 xwininfo -id \$ID | tail +4 \
34 ) | xmessage -center -buttons close -title 'xprop / xwininfo' -file - &"
35 }
36
37 This will give you a new window menu entry called __Info__ which brings up a box with the information and properties of the associated window.
4 AristotlePagaltzis 38
5 JayBromley 39 ----
40 !! Recursive Dynamic Wallpaper Menu
41
42 Here's one to do a recursive, dynamic wallpaper menu. I found this searching google and then modified it to use feh so that I can maintain wallpapers across sessions. Here's the script:
43
44 #!/usr/bin/perl
45 #
46 # Script Based on the pekwm_themeset.pl script Copyright © 2003 by the pekwm
47 # development team. Small bits added/changed to show wallpapers by Rds
48 # Recursive and link bit added by Enrique < http://welcome.to/Webbench > with
49 # the help of linux_weenie.
50 #
51 # Add this to your menu, if you have pekwm's dynamic menu support:
52 #
53 # !SubMenu = "Backgrounds" {
54 # Entry = "" {
55 # Actions = "Dynamic /path/to/this/file /path/to/wallpapers"
56 # }
57 # }
58 #
59 # This script uses feh to set the wallpaper by default. You may have to modify
60 # this. If you use feh, you can get wallpapers persistent across sessions by
61 # adding the following line to your ~/.pekwm/start file:
62 #
63 # source ~/.fehbg
64 #
65
66 use warnings "all";
67 use strict;
68
69 my $paper_changer = "feh --bg-scale";
70
71 if (scalar(@ARGV) == 1) { # Specifying a directory
72 print("Dynamic {\n");
73 &listpic($ARGV[[0]); # Call the subroutines with the dir as arg
74 print("}\n");
75 }
76
77 sub listpic {
78 my $dir = $_[[0];
79
80 opendir(DIR, "$dir") || die "Can't opendir $dir: $!";
81 my @papers = readdir(DIR); # Put all files/dirs into the @papers array
82 closedir DIR;
83
84 foreach my $x (@papers) {
85 if(-d "$dir/$x" && !("." =~ /$x/ || ".." =~ /$x/)) {
86 # Run recursively through all sub directories
87 print("Submenu = \"$x\" {\n");
88 &listpic("$dir/$x");
89 print("}\n");
90 } elsif (!-d "$dir/$x") {
6 JayBromley 91 my @file = grep { (! /^\./) && ( /^.*\.[[pPjJgG][[nNpPiI][[gGfF]/ )} $x;
5 JayBromley 92 print("Entry = \"@file\" { Actions = \"Exec $paper_changer $dir/@file\" }\n");
93 }
94 }
95 }
96
97 Put the following in your pekwm menu:
98
99 Submenu = "Wallpapers" {
100 Entry { Actions = "Dynamic pekwm_wp_menu.pl /path/to/wallpapers/" }
101 }
102
103 Enjoy.
4 AristotlePagaltzis 104 ----
105 Part of CategoryWindowManager
The following authors of this page have not agreed to the WlugWikiLicense. As such copyright to all content on this page is retained by the original authors.
  • JayBromley
The following authors of this page have agreed to the WlugWikiLicense.

PHP Warning

lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument