From fa43df527d4459fa024fca53fdd5a5ff4417c391 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 19 May 2006 17:38:45 +0200 Subject: [PATCH] removed swapping --- Makefile | 10 ++-- README | 4 +- TODO.wmii-4 | 1 - cmd/wm/client.c | 99 +++++++++++-------------------- cmd/wm/column.c | 21 ------- cmd/wm/event.c | 8 +-- cmd/wm/fs.c | 2 - cmd/wm/mouse.c | 10 +--- cmd/wm/wm.h | 4 +- cmd/wm/wmii | 4 +- cmd/wm/wmii.1 | 8 +-- cmd/wm/wmiiwm.1 | 2 +- cmd/wmiimenu.1 | 2 +- cmd/wmiir.1 | 2 +- cmd/wmiisetsid.c | 1 + doc/guide_en.tex | 40 ++++++------- extra/p9p/extern | 15 ----- extra/p9p/quit | 2 - extra/p9p/status | 10 ---- extra/p9p/wmiirc | 149 ----------------------------------------------- rc/wmiirc | 18 +----- 21 files changed, 79 insertions(+), 333 deletions(-) delete mode 100644 extra/p9p/extern delete mode 100644 extra/p9p/quit delete mode 100644 extra/p9p/status delete mode 100644 extra/p9p/wmiirc diff --git a/Makefile b/Makefile index 53f17720..8793a3ac 100644 --- a/Makefile +++ b/Makefile @@ -43,12 +43,12 @@ install: all chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ done @echo installed executable files to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${CONFPREFIX}/wmii-3 + @mkdir -p ${DESTDIR}${CONFPREFIX}/wmii-4 @cd rc; for i in *; do \ - sed 's|CONFPREFIX|${CONFPREFIX}|g' <$$i >${DESTDIR}${CONFPREFIX}/wmii-3/$$i; \ - chmod 755 ${DESTDIR}${CONFPREFIX}/wmii-3/$$i; \ + sed 's|CONFPREFIX|${CONFPREFIX}|g' <$$i >${DESTDIR}${CONFPREFIX}/wmii-4/$$i; \ + chmod 755 ${DESTDIR}${CONFPREFIX}/wmii-4/$$i; \ done - @echo installed rc scripts to ${DESTDIR}${CONFPREFIX}/wmii-3 + @echo installed rc scripts to ${DESTDIR}${CONFPREFIX}/wmii-4 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 @sed 's|CONFPREFIX|${CONFPREFIX}|g' ${DESTDIR}${MANPREFIX}/man1/wmii.1 @@ -64,4 +64,4 @@ uninstall: for i in ${MAN1}; do \ rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ done - rm -rf ${DESTDIR}${CONFPREFIX}/wmii-3 + rm -rf ${DESTDIR}${CONFPREFIX}/wmii-4 diff --git a/README b/README index c3c5507c..3bf98da2 100644 --- a/README +++ b/README @@ -41,8 +41,8 @@ Configuration ------------- The configuration of wmii is done by customizing the sh script wmiirc, which remotely controls the window manager and handles various events. -Copy the file from PREFIX/etc/wmii-3/ (usually /usr/local/etc/wmii-3/) -to $HOME/.wmii-3/ and edit it to fit your needs. +Copy the file from PREFIX/etc/wmii-4/ (usually /usr/local/etc/wmii-4/) +to $HOME/.wmii-4/ and edit it to fit your needs. Credits diff --git a/TODO.wmii-4 b/TODO.wmii-4 index ff5772ae..dc607356 100644 --- a/TODO.wmii-4 +++ b/TODO.wmii-4 @@ -2,7 +2,6 @@ Ordered list of TODOs: - introduce empty views - apply the focuscolor patch by Stefan Tibus -- remove swapping action, merge vertical swapping into moving - is this a good idea? - UTF8 fixes with iconv? - move / to /tags// - add /tags/sel/index (for column reverse-addressing) diff --git a/cmd/wm/client.c b/cmd/wm/client.c index 534826de..45126aa3 100644 --- a/cmd/wm/client.c +++ b/cmd/wm/client.c @@ -113,7 +113,6 @@ update_client_grab(Client *c, Bool is_sel) if(is_sel) { ungrab_mouse(c->framewin, AnyModifier, AnyButton); grab_mouse(c->framewin, def.mod, Button1); - grab_mouse(c->framewin, def.mod, Button2); grab_mouse(c->framewin, def.mod, Button3); } else @@ -569,63 +568,6 @@ select_client(Client *c, char *arg) flush_masked_events(EnterWindowMask); } -void -swap_client(Client *c, char *arg) -{ - Frame *f1 = c->frame.data[c->sel], *f2; - Area *o, *a = f1->area; - View *v = a->view; - int i = idx_of_area(a), j = idx_of_frame(f1); - - if(i == -1 || j == -1) - return; - - if(!strncmp(arg, "prev", 5) && i) { - if(i <= 1) - return; - else - o = v->area.data[i - 1]; - goto Swaparea; - } - else if(!strncmp(arg, "next", 5) && i) { - if(i + 1 < v->area.size) - o = v->area.data[i + 1]; - else - return; -Swaparea: - if(o == a) - return; - f2 = o->frame.data[o->sel]; - - f1->client = f2->client; - f2->client = c; - f1->client->frame.data[f1->client->sel] = f1; - f2->client->frame.data[f2->client->sel] = f2; - - arrange_column(o, False); - } - else if(!strncmp(arg, "up", 3) && i) { - if(j) - i = j - 1; - else - return; - a->frame.data[j] = a->frame.data[i]; - a->frame.data[i] = f1; - } - else if(!strncmp(arg, "down", 5) && i) { - if(j + 1 < a->frame.size) - i = j + 1; - else - return; - a->frame.data[j] = a->frame.data[i]; - a->frame.data[i] = f1; - } - if(idx_of_area(a)) - arrange_column(a, False); - focus_client(c, True); - flush_masked_events(EnterWindowMask); -} - void send_client_to(Client *c, char *arg) { @@ -633,12 +575,12 @@ send_client_to(Client *c, char *arg) Frame *f = c->frame.data[c->sel]; Area *to, *a = f->area; View *v = a->view; - int i = idx_of_area(a); + int i = idx_of_area(a), j = idx_of_frame(f); - if(i == -1) + if((i == -1) || (j == -1)) return; - if(!strncmp(arg, "prev", 5) && i) { + if(i && !strncmp(arg, "prev", 5)) { if(i > 1) to = v->area.data[i - 1]; else if(a->frame.size > 1) { @@ -647,8 +589,9 @@ send_client_to(Client *c, char *arg) } else return; + send_to_area(to, a, c); } - else if(!strncmp(arg, "next", 5) && i) { + else if(i && !strncmp(arg, "next", 5)) { if(i < v->area.size - 1) to = v->area.data[i + 1]; else if(a->frame.size > 1) { @@ -657,6 +600,7 @@ send_client_to(Client *c, char *arg) } else return; + send_to_area(to, a, c); } else if(!strncmp(arg, "toggle", 7)) { if(i) @@ -665,14 +609,37 @@ send_client_to(Client *c, char *arg) to = c->revert; else to = v->area.data[1]; + send_to_area(to, a, c); } - else { - i = cext_strtonum(arg, 0, v->area.size - 1, &errstr); + else if(i && !strncmp(arg, "up", 3)) { + if(j) + i = j - 1; + else + return; + a->frame.data[j] = a->frame.data[i]; + a->frame.data[i] = f; + arrange_column(a, False); + focus_client(c, True); + } + else if(i && !strncmp(arg, "down", 5)) { + if(j + 1 < a->frame.size) + i = j + 1; + else + return; + a->frame.data[j] = a->frame.data[i]; + a->frame.data[i] = f; + arrange_column(a, False); + focus_client(c, True); + } + else if(i) { + j = cext_strtonum(arg, 0, v->area.size - 1, &errstr); if(errstr) return; - to = v->area.data[i]; + to = v->area.data[j]; + send_to_area(to, a, c); } - send_to_area(to, a, c); + else + return; flush_masked_events(EnterWindowMask); } diff --git a/cmd/wm/column.c b/cmd/wm/column.c index dc2c3c85..9b9e83ae 100644 --- a/cmd/wm/column.c +++ b/cmd/wm/column.c @@ -413,27 +413,6 @@ drop_move(Frame *f, XRectangle *new, XPoint *pt) } } -void -drop_swap(Client *c, XPoint *pt) -{ - - Frame *f1 = c->frame.data[c->sel], *f2 = frame_of_point(pt); - - if(!f2 || f1 == f2 || !idx_of_area(f1->area)) - return; - - f1->client = f2->client; - f2->client = c; - f1->client->frame.data[f1->client->sel] = f1; - f2->client->frame.data[f2->client->sel] = f2; - - arrange_column(f1->area, False); - if(f1->area != f2->area) - arrange_column(f2->area, False); - focus_client(c, True); - flush_masked_events(EnterWindowMask); -} - void resize_column(Client *c, XRectangle *r, XPoint *pt) { diff --git a/cmd/wm/event.c b/cmd/wm/event.c index db23032b..47d1d2a3 100644 --- a/cmd/wm/event.c +++ b/cmd/wm/event.c @@ -100,11 +100,7 @@ handle_buttonpress(XEvent *e) focus(c, True); switch(ev->button) { case Button1: - do_mouse_move(c, False); - break; - case Button2: - if(idx_of_area(c->frame.data[c->sel]->area)) - do_mouse_move(c, True); + do_mouse_move(c); break; case Button3: { @@ -112,7 +108,7 @@ handle_buttonpress(XEvent *e) if(align != CENTER) do_mouse_resize(c, align); else - do_mouse_move(c, False); + do_mouse_move(c); } default: break; diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c index f6859616..d62f39d0 100644 --- a/cmd/wm/fs.c +++ b/cmd/wm/fs.c @@ -1347,8 +1347,6 @@ xwrite(IXPConn *c, Fcall *fcall) kill_client(f->client); else if(!strncmp(buf, "sendto ", 7)) send_client_to(f->client, &buf[7]); - else if(!strncmp(buf, "swap ", 5)) - swap_client(f->client, &buf[5]); break; case FsDGclient: if(!strncmp(buf, "kill", 5)) diff --git a/cmd/wm/mouse.c b/cmd/wm/mouse.c index 97ecf87e..59eca014 100644 --- a/cmd/wm/mouse.c +++ b/cmd/wm/mouse.c @@ -178,7 +178,7 @@ draw_pseudo_border(XRectangle * r) } void -do_mouse_move(Client *c, Bool swap) +do_mouse_move(Client *c) { int px = 0, py = 0, wex, wey, ex, ey, i; Window dummy; @@ -209,12 +209,8 @@ do_mouse_move(Client *c, Bool swap) switch (ev.type) { case ButtonRelease: draw_pseudo_border(&frect); - if(idx_of_area(f->area)) { - if(swap) - drop_swap(c, &pt); - else - resize_column(c, &frect, &pt); - } + if(idx_of_area(f->area)) + resize_column(c, &frect, &pt); else resize_client(c, &frect, False); free(rects); diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h index fc8658ae..ea2c77e0 100644 --- a/cmd/wm/wm.h +++ b/cmd/wm/wm.h @@ -237,7 +237,6 @@ void resize_client(Client *c, XRectangle *r, Bool ignore_xcall); void select_client(Client *c, char *arg); void send_client_to(Client *c, char *arg); void resize_all_clients(); -void swap_client(Client *c, char *arg); Client *sel_client(); int idx_of_client_id(unsigned short id); Client *client_of_win(Window w); @@ -252,7 +251,6 @@ int column_mode_of_str(char *arg); char *str_of_column_mode(int mode); Area *new_left_column(View *v); Area *new_right_column(View *v); -void drop_swap(Client *c, XPoint *pt); /* event.c */ void init_x_event_handler(); @@ -283,7 +281,7 @@ unsigned long mod_key_of_str(char *val); /* mouse.c */ void do_mouse_resize(Client *c,BlitzAlign align); -void do_mouse_move(Client *c, Bool swap); +void do_mouse_move(Client *c); void grab_mouse(Window w, unsigned long mod, unsigned int button); void ungrab_mouse(Window w, unsigned long mod, unsigned int button); diff --git a/cmd/wm/wmii b/cmd/wm/wmii index 89989f73..a1abe81f 100644 --- a/cmd/wm/wmii +++ b/cmd/wm/wmii @@ -3,12 +3,12 @@ wmiiwm -c || exit 1 -PATH=$PATH:$HOME/.wmii-3:CONFPREFIX/wmii-3 export PATH +PATH=$PATH:$HOME/.wmii-4:CONFPREFIX/wmii-4 export PATH WMII_ADDRESS=unix!/tmp/ns.$USER.$DISPLAY/wmii export WMII_ADDRESS mkdir -m 700 /tmp/ns.$USER.$DISPLAY 2>/dev/null wmiiwm -a $WMII_ADDRESS & wmiiwmpid=$! -mkdir $HOME/.wmii-3 2>/dev/null && welcome & +mkdir $HOME/.wmii-4 2>/dev/null && welcome & wmiirc & wait $wmiiwmpid diff --git a/cmd/wm/wmii.1 b/cmd/wm/wmii.1 index 0f441859..c8709233 100644 --- a/cmd/wm/wmii.1 +++ b/cmd/wm/wmii.1 @@ -1,4 +1,4 @@ -.TH WMII 1 wmii-3 +.TH WMII 1 wmii-4 .SH NAME wmii \- window manager improved 2 .SH SYNOPSIS @@ -15,7 +15,7 @@ An action is a shell script in the default setup, but it can actually be any executable file. It is executed usually by selecting it from the actions menu. You can customize an action by copying it from the global action -directory CONFPREFIX/wmii-3 to $HOME/.wmii-3 and then editing the copy to +directory CONFPREFIX/wmii-4 to $HOME/.wmii-4 and then editing the copy to fit your needs. Of course you can also create your own actions there; make sure that they are executable. .P @@ -45,10 +45,10 @@ bindings, the bar labels, etc. /tmp/ns.$USER.$DISPLAY/wmii The wmii socket file which provides a 9P service. .TP -CONFPREFIX/wmii-3 +CONFPREFIX/wmii-4 Global action directory. .TP -$HOME/.wmii-3 +$HOME/.wmii-4 User-specific action directory. Actions are first searched here. .SH ENVIRONMENT .TP diff --git a/cmd/wm/wmiiwm.1 b/cmd/wm/wmiiwm.1 index 52a3149c..84d2133f 100644 --- a/cmd/wm/wmiiwm.1 +++ b/cmd/wm/wmiiwm.1 @@ -1,4 +1,4 @@ -.TH WMIIWM 1 wmii-3 +.TH WMIIWM 1 wmii-4 .SH NAME wmiiwm \- window manager improved 2 (core) .SH SYNOPSIS diff --git a/cmd/wmiimenu.1 b/cmd/wmiimenu.1 index 3d1a3de0..ddd8fa48 100644 --- a/cmd/wmiimenu.1 +++ b/cmd/wmiimenu.1 @@ -1,4 +1,4 @@ -.TH WMIIMENU 1 wmii-3 +.TH WMIIMENU 1 wmii-4 .SH NAME wmiimenu \- window manager improved 2 menu .SH SYNOPSIS diff --git a/cmd/wmiir.1 b/cmd/wmiir.1 index 70f68243..b8f05e9e 100644 --- a/cmd/wmiir.1 +++ b/cmd/wmiir.1 @@ -1,4 +1,4 @@ -.TH WMIIR 1 wmii-3 +.TH WMIIR 1 wmii-4 .SH NAME wmiir \- window manager improved 2 remote .SH SYNOPSIS diff --git a/cmd/wmiisetsid.c b/cmd/wmiisetsid.c index 5daf0f0e..86ebd42c 100644 --- a/cmd/wmiisetsid.c +++ b/cmd/wmiisetsid.c @@ -5,6 +5,7 @@ #include #include #include +#include static char version[] = "wmiisetsid - " VERSION ", (C)opyright MMVI Anselm R. Garbe\n"; diff --git a/doc/guide_en.tex b/doc/guide_en.tex index 4e452bff..5e6e953f 100644 --- a/doc/guide_en.tex +++ b/doc/guide_en.tex @@ -1,7 +1,7 @@ %TODO: please mention the /def/rules mechanism! -%guide to wmii-3 +%guide to wmii-4 %Copyright (C) 2005, 2006 by Steffen Liebergeld, Salva Peir\'o %This program is free software; you can redistribute it and/or @@ -25,7 +25,7 @@ \usepackage{hyperref} % option [dvipdfm] disables clickable refs \hypersetup{pdftex, colorlinks=true, linkcolor=blue, filecolor=blue, pagecolor=blue, urlcolor=blue, pdfauthor={Steffen Liebergeld, Salva Pei\'ro}, -pdftitle={A Guide to wmii-3}} +pdftitle={A Guide to wmii-4}} \usepackage{indentfirst,moreverb} % remove this if you want, it's just a matter of imposed imperialist cultures % so if I'm given the chance to choose I choose to indent the first paragraph @@ -53,7 +53,7 @@ Steffen\\Liebergeld \\\\ Salvador\\Peir\'o } -\title{A Guide to wmii-3% +\title{A Guide to wmii-4% \thanks{Thanks to the wmii community, in particular all the people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} } @@ -72,14 +72,14 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \subsection{The purpose of this document} This document tries to be a good starting point for people new to - \wmii-3. People who have used wmi, \wmii-2.5 or even ion will get - to know what is new and different in \wmii-3, and people who have + \wmii-4. People who have used wmi, \wmii-2.5 or even ion will get + to know what is new and different in \wmii-4, and people who have never used a tiling window manager before will fall in love with the new concept. \subsection{wmii---the second generation of window manager improved} - \wmii-3 is a new kind of window manager. It is designed to have a + \wmii-4 is a new kind of window manager. It is designed to have a small memory footprint, be extremely modularised and have as little code as possible, thus ensuring as few bugs as possible. In fact, one of our official goals is to not exceed $10 k$ lines of @@ -90,7 +90,7 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \wmii{} tries to be very portable and to give the user as much freedom as possible. - \wmii-3 is the third major release of the second generation of the + \wmii-4 is the third major release of the second generation of the window manager improved~\footnote{ the ii is actually the roman numeral for 2.}. \wmii{} first introduced a new paradigm in version 2.5, namely dynamic window management, that overcomes the @@ -103,15 +103,15 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} the basic terminology and concepts like files and editors. I hope you are open minded towards new ideas, and willing to spend some - time learning \wmii-3~\footnote{remember the refrain: ``nobody + time learning \wmii-4~\footnote{remember the refrain: ``nobody can teach you what you don't want to know''.}. - If you only want to know how to operate \wmii-3 and are not + If you only want to know how to operate \wmii-4 and are not interested in the inner workings or in scripting, you may read sections \ref{sec:conf&install}, \ref{sec:terms} and subsection \ref{subsec:firststeps} and skip the rest. - However, to get the most out of \wmii-3 you should probably read + However, to get the most out of \wmii-4 you should probably read the whole document ``sequentially'', i.e. from beginning to end. Another possibility is to read/consume the guide ``on demand'' as you notice you need more information or details to understand @@ -157,8 +157,8 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \item Unpack it: \begin{verbatim} - tar xzf wmii-3.tar.gz - cd wmii-3 + tar xzf wmii-4.tar.gz + cd wmii-4 \end{verbatim} \item Edit the configuration: @@ -167,7 +167,7 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \end{verbatim} The most important variable to set is the \verb+PREFIX+, which - states, where you want \wmii-3 to be installed to. If you are unsure, keep the + states, where you want \wmii-4 to be installed to. If you are unsure, keep the default, it won't break your system. \item Run make and make install: @@ -594,17 +594,17 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} your local or in the default \wmii{} configuration directory~\footnote{ \texttt{\$CONFPREFIX} is set in \emph{config.mk} which points to \texttt{/usr/local/etc} - or \texttt{\$HOME/.wmii-3} by default}. + or \texttt{\$HOME/.wmii-4} by default}. Through pressing \emph{MOD-a} you can open the actions menu. It works similar to the program menu, but only displays actions. You might want to add your own actions through writing shell scripts in the - default \wmii{} configuration directory or in the \texttt{\$HOME/.wmii-3}. + default \wmii{} configuration directory or in the \texttt{\$HOME/.wmii-4}. This works, because in the \wmii{} controlling script exports the variable - \verb+$PATH+ as\\ \verb+$PATH=~/.wmii-3:$CONFPREFIX/wmii:$PATH+ before + \verb+$PATH+ as\\ \verb+$PATH=~/.wmii-4:$CONFPREFIX/wmii:$PATH+ before launching the wmiiwm, this way local user actions under - \verb+~/.wmii-3+ take precedence over the defaults from + \verb+~/.wmii-4+ take precedence over the defaults from \verb+$CONFPREFIX/wmii+ of the default actions. You may edit this file on the fly, which means you don't need to @@ -634,7 +634,7 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \subsection{Changing the style} - The style of \wmii-3 is defined through font and colour values, which are + The style of \wmii-4 is defined through font and colour values, which are unobtrusively exported with the following \emph{environment variables}. \begin{verbatim} @@ -749,7 +749,7 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} echo -n view web | wmiir write /ctl \end{verbatim} - As the development of \wmii-3 progressed, it became clear that this + As the development of \wmii-4 progressed, it became clear that this action is so common, that it got its own keybinding. By default \emph{MOD-t} brings up a menu to choose a view and \emph{MOD-Shift-t} brings up a menu enabling you to assign new @@ -985,7 +985,7 @@ people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.} \section{Copyright notice} - guide to wmii-3\\ + guide to wmii-4\\ Copyright (C) 2005, 2006 by Steffen Liebergeld, Salva Peir\'o This program is free software; you can redistribute it and/or modify diff --git a/extra/p9p/extern b/extra/p9p/extern deleted file mode 100644 index 56854b90..00000000 --- a/extra/p9p/extern +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/local/plan9/bin/rc -# clean the environment and execute the given command - -path=$OLD_PATH -old_path=() -apid=() -cmd=() -home=() -ifs=() -pid=() -prompt=() -rcname=() -status=() - -exec $* diff --git a/extra/p9p/quit b/extra/p9p/quit deleted file mode 100644 index 868fdf93..00000000 --- a/extra/p9p/quit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/local/plan9/bin/rc -echo -n quit | wmiir write /ctl diff --git a/extra/p9p/status b/extra/p9p/status deleted file mode 100644 index 314a8c7b..00000000 --- a/extra/p9p/status +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/local/plan9/bin/rc -# periodically print date and load average to the bar - -wmiir remove /bar/status 2>/dev/null && sleep 2 -wmiir create /bar/status -xwrite /bar/status/colors $WMII_NORMCOLORS - -while(text=`{date | sed 's/GMT .*//'} xwrite /bar/status/data $"text){ - sleep 1 -} diff --git a/extra/p9p/wmiirc b/extra/p9p/wmiirc deleted file mode 100644 index bfa30443..00000000 --- a/extra/p9p/wmiirc +++ /dev/null @@ -1,149 +0,0 @@ -#!/usr/local/plan9/bin/rc -# configure wmii - -fn xwrite {a=$1; shift; echo -n $* | wmiir write $a} - -fn proglist {ls -lpL $* | awk '!/^d/ && $1 ~ /x/ {print $NF}'| sort -u} - -MODKEY=Mod1 -UP=k -DOWN=j -LEFT=h -RIGHT=l - -WMII_FONT='fixed' -WMII_SELCOLORS='#ffffff #285577 #4c7899' -WMII_NORMCOLORS='#222222 #eeeeee #666666' -# dark background -#WMII_NORMCOLORS='#e0e0e0 #0a0a0a #202020' - -# WM CONFIGURATION -xwrite /def/border 2 -xwrite /def/font $WMII_FONT -xwrite /def/selcolors $WMII_SELCOLORS -xwrite /def/normcolors $WMII_NORMCOLORS - -# TAGGING RULES -wmiir write /def/rules < ~ -/Gimp.*/ -> ~ -/MPlayer.*/ -> ~ -/.*/ -> ! -/.*/ -> 1 -END - -# MISC -xsetroot -solid '#333333' -status & -PROGS_FILE=/tmp/.wmiimenu.$USER.progs -proglist `{echo $PATH | tr : ' '} >$PROGS_FILE & - -# SHORTCUTS -xwrite /def/grabmod $MODKEY -wmiir write /def/keys <