diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-13 21:37:24 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-13 21:37:24 +0200 |
commit | 3e90bbfaec0953f2ef74fa2827ac41678ee11dee (patch) | |
tree | 250eeabe93487d458172f3c61a08d646c021e2fc | |
download | fvwm-crystal-3e90bbfaec0953f2ef74fa2827ac41678ee11dee.tar.gz fvwm-crystal-3e90bbfaec0953f2ef74fa2827ac41678ee11dee.tar.bz2 fvwm-crystal-3e90bbfaec0953f2ef74fa2827ac41678ee11dee.zip |
importing Crystal config into git
101 files changed, 1859 insertions, 0 deletions
diff --git a/Applications/20~Games/20~Block_Games/~flobopuyo~FloboPuyo b/Applications/20~Games/20~Block_Games/~flobopuyo~FloboPuyo new file mode 100755 index 0000000..4f127d0 --- /dev/null +++ b/Applications/20~Games/20~Block_Games/~flobopuyo~FloboPuyo @@ -0,0 +1,3 @@ +#!/bin/sh + +exec flobopuyo $@ diff --git a/Applications/20~Games/20~Block_Games/~gemdropx~GemDrop X b/Applications/20~Games/20~Block_Games/~gemdropx~GemDrop X new file mode 100755 index 0000000..391010a --- /dev/null +++ b/Applications/20~Games/20~Block_Games/~gemdropx~GemDrop X @@ -0,0 +1,3 @@ +#!/bin/sh + +exec gemdropx "$@" diff --git a/Applications/20~Games/20~Block_Games/~shaaft~Shaaft b/Applications/20~Games/20~Block_Games/~shaaft~Shaaft new file mode 100755 index 0000000..9c48209 --- /dev/null +++ b/Applications/20~Games/20~Block_Games/~shaaft~Shaaft @@ -0,0 +1,3 @@ +#!/bin/sh + +exec shaaft $@ diff --git a/Applications/20~Games/Emulators/~scummvm~ScummVM b/Applications/20~Games/Emulators/~scummvm~ScummVM new file mode 100755 index 0000000..2e9ee09 --- /dev/null +++ b/Applications/20~Games/Emulators/~scummvm~ScummVM @@ -0,0 +1,3 @@ +#!/bin/sh + +exec scummvm $@ diff --git a/Applications/20~Games/Logic_Games/~briquolo~Briquolo b/Applications/20~Games/Logic_Games/~briquolo~Briquolo new file mode 100755 index 0000000..f77f24c --- /dev/null +++ b/Applications/20~Games/Logic_Games/~briquolo~Briquolo @@ -0,0 +1,3 @@ +#!/bin/sh + +exec briquolo $@ diff --git a/Applications/20~Games/Logic_Games/~einstein~Einstein b/Applications/20~Games/Logic_Games/~einstein~Einstein new file mode 100755 index 0000000..c67f09a --- /dev/null +++ b/Applications/20~Games/Logic_Games/~einstein~Einstein @@ -0,0 +1,3 @@ +#!/bin/sh + +exec einstein "$@" diff --git a/Applications/20~Games/Logic_Games/~kiki~Kiki b/Applications/20~Games/Logic_Games/~kiki~Kiki new file mode 100755 index 0000000..533ee8f --- /dev/null +++ b/Applications/20~Games/Logic_Games/~kiki~Kiki @@ -0,0 +1,3 @@ +#!/bin/sh + +exec kiki "$@" diff --git a/Applications/20~Games/Logic_Games/~late~Late b/Applications/20~Games/Logic_Games/~late~Late new file mode 100755 index 0000000..1ae3f7d --- /dev/null +++ b/Applications/20~Games/Logic_Games/~late~Late @@ -0,0 +1,3 @@ +#!/bin/sh + +exec late $@ diff --git a/Applications/20~Games/Logic_Games/~monsterz~Monsterz b/Applications/20~Games/Logic_Games/~monsterz~Monsterz new file mode 100755 index 0000000..db758de --- /dev/null +++ b/Applications/20~Games/Logic_Games/~monsterz~Monsterz @@ -0,0 +1,3 @@ +#!/bin/sh + +exec monsterz "$@" diff --git a/Applications/20~Games/Logic_Games/~pingus~Pingus b/Applications/20~Games/Logic_Games/~pingus~Pingus new file mode 100755 index 0000000..d6c45e5 --- /dev/null +++ b/Applications/20~Games/Logic_Games/~pingus~Pingus @@ -0,0 +1,3 @@ +#!/bin/sh + +exec pingus $@ diff --git a/Applications/20~Games/Role_Playing/~nethack~NetHack b/Applications/20~Games/Role_Playing/~nethack~NetHack new file mode 100755 index 0000000..2a27088 --- /dev/null +++ b/Applications/20~Games/Role_Playing/~nethack~NetHack @@ -0,0 +1,3 @@ +#!/bin/sh + +exec nethack $@ diff --git a/Applications/20~Games/Shooters/~powermanga~Powermanga b/Applications/20~Games/Shooters/~powermanga~Powermanga new file mode 100755 index 0000000..520c8b1 --- /dev/null +++ b/Applications/20~Games/Shooters/~powermanga~Powermanga @@ -0,0 +1,3 @@ +#!/bin/sh + +exec powermanga $@ diff --git a/Applications/Development/IDE/10~glade-3~Glade-3 b/Applications/Development/IDE/10~glade-3~Glade-3 new file mode 100755 index 0000000..13daa85 --- /dev/null +++ b/Applications/Development/IDE/10~glade-3~Glade-3 @@ -0,0 +1,3 @@ +#!/bin/sh + +exec glade-3 "$@" diff --git a/Applications/Network/10~Web_Browsers/Flock b/Applications/Network/10~Web_Browsers/Flock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Applications/Network/10~Web_Browsers/Flock diff --git a/Applications/Network/13~Email/30~claws-mail~Claws_Mail b/Applications/Network/13~Email/30~claws-mail~Claws_Mail new file mode 120000 index 0000000..f58123a --- /dev/null +++ b/Applications/Network/13~Email/30~claws-mail~Claws_Mail @@ -0,0 +1 @@ +/usr/share/fvwm-crystal/fvwm/Applications/Network/13~Email/~claws-mail~Claws_Mail
\ No newline at end of file diff --git a/Applications/Network/13~Email/~sylpheed-claws~Sylpheed-Claws b/Applications/Network/13~Email/~sylpheed-claws~Sylpheed-Claws new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Applications/Network/13~Email/~sylpheed-claws~Sylpheed-Claws diff --git a/Applications/Network/IRC_clients/~xchat-2~X_Chat b/Applications/Network/IRC_clients/~xchat-2~X_Chat new file mode 100755 index 0000000..3f7b1dd --- /dev/null +++ b/Applications/Network/IRC_clients/~xchat-2~X_Chat @@ -0,0 +1,3 @@ +#!/bin/sh + +exec xchat-2 $@ diff --git a/FvwmNotify.pm b/FvwmNotify.pm new file mode 100644 index 0000000..5092540 --- /dev/null +++ b/FvwmNotify.pm @@ -0,0 +1,20 @@ +package FvwmNotify; +use strict; +use warnings; +use Net::DBus; + +my $bus=Net::DBus->session(); +my $notify=$bus->get_service('org.freedesktop.Notifications') + ->get_object('/org/freedesktop/Notifications', + 'org.freedesktop.Notifications'); + +sub notify { + my ($app,$summary,$text,$delay,$iconfile)=@_; + $notify->Notify($app,0, + (defined $iconfile ? "file://$iconfile" : ''), + $summary, + $text, + [],{},$delay); +} + +1; diff --git a/README.html b/README.html new file mode 100644 index 0000000..8ebe55b --- /dev/null +++ b/README.html @@ -0,0 +1,436 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" /> +<title>Dakkar's fvwm-crystal settings</title> +<style type="text/css"> + +/* +:Author: David Goodger +:Contact: goodger@users.sourceforge.net +:Date: $Date: 2005-12-18 01:56:14 +0100 (Sun, 18 Dec 2005) $ +:Revision: $Revision: 4224 $ +:Copyright: This stylesheet has been placed in the public domain. + +Default cascading style sheet for the HTML output of Docutils. + +See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to +customize this style sheet. +*/ + +/* used to remove borders from tables and images */ +.borderless, table.borderless td, table.borderless th { + border: 0 } + +table.borderless td, table.borderless th { + /* Override padding for "table.docutils td" with "! important". + The right padding separates the table cells. */ + padding: 0 0.5em 0 0 ! important } + +.first { + /* Override more specific margin styles with "! important". */ + margin-top: 0 ! important } + +.last, .with-subtitle { + margin-bottom: 0 ! important } + +.hidden { + display: none } + +a.toc-backref { + text-decoration: none ; + color: black } + +blockquote.epigraph { + margin: 2em 5em ; } + +dl.docutils dd { + margin-bottom: 0.5em } + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +div.abstract p.topic-title { + font-weight: bold ; + text-align: center } + +div.admonition, div.attention, div.caution, div.danger, div.error, +div.hint, div.important, div.note, div.tip, div.warning { + margin: 2em ; + border: medium outset ; + padding: 1em } + +div.admonition p.admonition-title, div.hint p.admonition-title, +div.important p.admonition-title, div.note p.admonition-title, +div.tip p.admonition-title { + font-weight: bold ; + font-family: sans-serif } + +div.attention p.admonition-title, div.caution p.admonition-title, +div.danger p.admonition-title, div.error p.admonition-title, +div.warning p.admonition-title { + color: red ; + font-weight: bold ; + font-family: sans-serif } + +/* Uncomment (and remove this text!) to get reduced vertical space in + compound paragraphs. +div.compound .compound-first, div.compound .compound-middle { + margin-bottom: 0.5em } + +div.compound .compound-last, div.compound .compound-middle { + margin-top: 0.5em } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +div.line-block div.line-block { + margin-top: 0 ; + margin-bottom: 0 ; + margin-left: 1.5em } + +div.sidebar { + margin-left: 1em ; + border: medium outset ; + padding: 1em ; + background-color: #ffffee ; + width: 40% ; + float: right ; + clear: right } + +div.sidebar p.rubric { + font-family: sans-serif ; + font-size: medium } + +div.system-messages { + margin: 5em } + +div.system-messages h1 { + color: red } + +div.system-message { + border: medium outset ; + padding: 1em } + +div.system-message p.system-message-title { + color: red ; + font-weight: bold } + +div.topic { + margin: 2em } + +h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, +h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { + margin-top: 0.4em } + +h1.title { + text-align: center } + +h2.subtitle { + text-align: center } + +hr.docutils { + width: 75% } + +img.align-left { + clear: left } + +img.align-right { + clear: right } + +ol.simple, ul.simple { + margin-bottom: 1em } + +ol.arabic { + list-style: decimal } + +ol.loweralpha { + list-style: lower-alpha } + +ol.upperalpha { + list-style: upper-alpha } + +ol.lowerroman { + list-style: lower-roman } + +ol.upperroman { + list-style: upper-roman } + +p.attribution { + text-align: right ; + margin-left: 50% } + +p.caption { + font-style: italic } + +p.credits { + font-style: italic ; + font-size: smaller } + +p.label { + white-space: nowrap } + +p.rubric { + font-weight: bold ; + font-size: larger ; + color: maroon ; + text-align: center } + +p.sidebar-title { + font-family: sans-serif ; + font-weight: bold ; + font-size: larger } + +p.sidebar-subtitle { + font-family: sans-serif ; + font-weight: bold } + +p.topic-title { + font-weight: bold } + +pre.address { + margin-bottom: 0 ; + margin-top: 0 ; + font-family: serif ; + font-size: 100% } + +pre.literal-block, pre.doctest-block { + margin-left: 2em ; + margin-right: 2em ; + background-color: #eeeeee } + +span.classifier { + font-family: sans-serif ; + font-style: oblique } + +span.classifier-delimiter { + font-family: sans-serif ; + font-weight: bold } + +span.interpreted { + font-family: sans-serif } + +span.option { + white-space: nowrap } + +span.pre { + white-space: pre } + +span.problematic { + color: red } + +span.section-subtitle { + /* font-size relative to parent (h1..h6 element) */ + font-size: 80% } + +table.citation { + border-left: solid 1px gray; + margin-left: 1px } + +table.docinfo { + margin: 2em 4em } + +table.docutils { + margin-top: 0.5em ; + margin-bottom: 0.5em } + +table.footnote { + border-left: solid 1px black; + margin-left: 1px } + +table.docutils td, table.docutils th, +table.docinfo td, table.docinfo th { + padding-left: 0.5em ; + padding-right: 0.5em ; + vertical-align: top } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, +h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { + font-size: 100% } + +tt.docutils { + background-color: #eeeeee } + +ul.auto-toc { + list-style-type: none } + +</style> +</head> +<body> +<div class="document" id="dakkar-s-fvwm-crystal-settings"> +<h1 class="title">Dakkar's <tt class="docutils literal"><span class="pre">fvwm-crystal</span></tt> settings</h1> +<!-- -*- mode: rst; coding: utf-8 -*- --> +<p>I use a 2800x1050 desktop (two 20" LCD panels on a GeForce 6600), with +a <a class="reference" href="recipes/TopLine">slightly modified version</a> of the <cite>TopLine</cite> recipe. I also use a 5x5 +pages virtual desktop, and a Dvorak keyboard with valume keys (mapped +to the proper keycodes in X11). My music player is <cite>AmaroK</cite>, and my +desktop manager is <cite>ROX</cite>.</p> +<p>Since my monitors can "pivot", I have further modified the recipe to +handle rotating the displays. This needs help from the video card. See +the section <a class="reference" href="#rotating-the-displays">Rotating the displays</a>.</p> +<div class="section"> +<h1><a id="the-recipe" name="the-recipe">The recipe</a></h1> +<p>The main differences from the stock <cite>TopLine</cite> are:</p> +<ul class="simple"> +<li>different desktop bindings</li> +<li>larger thumbnails</li> +<li>different behaviour of the edges</li> +<li>2 identical pagers (one per physical screen)</li> +<li>geometries rewritten to use <tt class="docutils literal"><span class="pre">@g</span></tt> to work with <cite>Xinerama</cite></li> +<li>each pager (and my "biff" terminal) is raised above all other +windows if I keep the mouse pointer on it long enough</li> +<li>some functions added to handle <a class="reference" href="#rotating-the-displays">rotating the displays</a></li> +</ul> +</div> +<div class="section"> +<h1><a id="the-decoration" name="the-decoration">The decoration</a></h1> +<p>I have changed the <cite>Clearlooks DeepSky</cite> <a class="reference" href="decorations/Dakkar/">decoration</a> to add a mini-icon +as button 3.</p> +</div> +<div class="section"> +<h1><a id="the-colorsets" name="the-colorsets">The colorsets</a></h1> +<p>Since I use tha <cite>Gentoo</cite> version of <tt class="docutils literal"><span class="pre">fvwm2</span></tt>, it has a patch that +allow fake transparency in the menus. Thus, I changed the +<cite>DarkDesktop</cite> and <cite>WhiteDesktop</cite> <a class="reference" href="colorsets/">colorsets</a> to use this feature.</p> +</div> +<div class="section"> +<h1><a id="the-bindings" name="the-bindings">The bindings</a></h1> +<p>I redefined most keyboard bindings to my taste. Of particular interest +may be the <a class="reference" href="components/bindings/Music">Music</a> file, where I bind the volume controls to the volume +keycodes, and the <tt class="docutils literal"><span class="pre">Music-GUI</span></tt> function to the "eject" keycode. I +also bound most window manipulation functions to various combination +of <tt class="docutils literal"><span class="pre">Alt</span></tt> and the numeric keypad (see the <a class="reference" href="components/bindings/Window-Control-Dakkar">Window-Control-Dakkar</a> +file)</p> +</div> +<div class="section"> +<h1><a id="the-preferences" name="the-preferences">The preferences</a></h1> +<p>To be able to select <cite>AmaroK</cite> as a music player, and <cite>amixer</cite> as a +mixer control, I created the <a class="reference" href="components/desktop/dakkar_Preferences">dakkar_Preferences</a> file, which adds +them to the appropriate menus.</p> +</div> +<div class="section"> +<h1><a id="the-styles-and-icons" name="the-styles-and-icons">The styles and icons</a></h1> +<p>I added some style declaration and icons for some applications +(e.g. the windows created by <tt class="docutils literal"><span class="pre">xine-ui</span></tt> and <tt class="docutils literal"><span class="pre">xpad</span></tt> should be bare, +and I added icons for <tt class="docutils literal"><span class="pre">xchat-2</span></tt> and <tt class="docutils literal"><span class="pre">skype</span></tt>)</p> +</div> +<div class="section"> +<h1><a id="the-functions" name="the-functions">The functions</a></h1> +<p>I redefined a couple of function in the <a class="reference" href="components/functions/Numpad">Numpad</a> to add the +<tt class="docutils literal"><span class="pre">AnyScreen</span></tt> option.</p> +<p>Then I wrote the <a class="reference" href="components/functions/Mixer-amixer">Mixer-amixer</a> and <a class="reference" href="components/functions/Music-amarok">Music-amarok</a> files to interact +with by chosen music programs.</p> +<p><tt class="docutils literal"><span class="pre">amixer</span></tt> is a simple command-line mixer, and its integration was +easy.</p> +<p><cite>AmaroK</cite> is a <cite>KDE</cite> application, and it's not straightforward to +control. At the moment only "random", "repeat", "stop", "play/pause" +and "show/hide" are implemented, all via <tt class="docutils literal"><span class="pre">dcop</span></tt> calls.</p> +<p>The <tt class="docutils literal"><span class="pre">Music-GUI</span></tt> function is used to toggle the display of +<cite>AmaroK</cite>, and also to start it: it the <tt class="docutils literal"><span class="pre">dcop</span></tt> calls fails, the +<tt class="docutils literal"><span class="pre">amarok</span></tt> command gets executed, launching the program.</p> +<div class="note"> +<p class="first admonition-title">Note</p> +<p><cite>AmaroK</cite> and <cite>Trayer</cite></p> +<p class="last">For some not-really-clear-to-me reason, the tray icon of <cite>AmaroK</cite> +is not displayed by <cite>Trayer</cite>, normally. To work around this +problem, I have written the small <tt class="docutils literal"><span class="pre">amarok</span></tt> script, which sits in +my <tt class="docutils literal"><span class="pre">~/bin</span></tt> directory (which is at the beginning of my +<tt class="docutils literal"><span class="pre">$PATH</span></tt>). Using this, the icon works as expected.</p> +</div> +<p>I also tweaked a Perl script I found on the Web to create a menu for +my <tt class="docutils literal"><span class="pre">screen</span></tt> sessions, see the <a class="reference" href="components/functions/Screen-Menu">Screen-Menu</a> configuration file and +the <a class="reference" href="scripts/fvwm-screen.pl">fvwm-screen.pl</a> script.</p> +<p>Finally, in the <a class="reference" href="components/functions/Notify">Notify</a> file, I redefined the <tt class="docutils literal"><span class="pre">UrgencyFunc</span></tt> to pop +up a notification via the dbus notification mechanism (using a <a class="reference" href="FvwmNotify.pm">simple +Perl script</a> which uses <a class="reference" href="http://search.cpan.org/~danberr/Net-DBus-0.33.5/">Net::DBus</a>).</p> +</div> +<div class="section"> +<h1><a id="rotating-the-displays" name="rotating-the-displays">Rotating the displays</a></h1> +<p>This takes a little background.</p> +<p>First of all, my <tt class="docutils literal"><span class="pre">/etc/X11/xorg.conf</span></tt> file has a <tt class="docutils literal"><span class="pre">Screen</span></tt> section +like this:</p> +<pre class="literal-block"> +Section "Screen" + Identifier "dual-nv" + Device "nvidia" + Monitor "LCD" + DefaultDepth 24 + Option "TwinView" "true" + Option "MetaModes" "DFP-0: 1400x1050 @1400x1050 +0+0, DFP-1: 1400x1050 @1400x1050 +1400+0" + Option "RandRRotation" "on" + Option "Xinerama" "on" + + SubSection "Display" + ViewPort 0 0 + Depth 24 + Modes "1400x1050" + EndSubSection +EndSection +</pre> +<p>This specifies that, normally, I use my displays horizontally, one to +the right of the other.</p> +<p>Then, in my <a class="reference" href="xinitrc">~/.xinirc</a>, I add a second "MetaMode":</p> +<pre class="literal-block"> +./bin/nv-control-dpy --add-metamode \ + 'DFP-0: 1400x1050 @1400x1050 +0+1050, DFP-1: 1400x1050 @1400x1050 +0+0' +</pre> +<p>The <tt class="docutils literal"><span class="pre">nv-control-dpy</span></tt> program can be found in the source tarball for +the <tt class="docutils literal"><span class="pre">nvidia-settings</span></tt> program, in the <tt class="docutils literal"><span class="pre">samples</span></tt> subdirectory.</p> +<p>You may be wondering: why adding a second MetaMode in this way, when +you can specify both in the <tt class="docutils literal"><span class="pre">xorg.conf</span></tt> file? Good question. The +answer is that, if you do it "the logical way", the always helpful +NVidia drivers will tell the X server that you have a virtual screen +whose size is the bounding box of the union of all MetaModes. Which in +my case would mean that I'd have a lot of panning around, <em>very</em> +irritating when you use multiple viewports. Adding the MetaMode after +the startup of the X server avoids this issue.</p> +<p>In the recipe, I have two functions to set landscape (normal) and +portrait (vertical) orientation. They call <tt class="docutils literal"><span class="pre">xrandr</span></tt> to set the +display orientation and size, and do some repositioning of the various +things that need it:</p> +<ul class="simple"> +<li>a script instructs <cite>ROX-Filer</cite> to change its "pinboard" to the one +with the proper layout (this is not optimal, but since I very rarely +change the contents of my pinboard, works well enough for me)</li> +<li><cite>gkrellm2</cite> and my "biff" terminal get moved to their proper +positions during <tt class="docutils literal"><span class="pre">StartFunction</span></tt></li> +</ul> +<p>Maybe there's a samrter way to get the same result, but this works, +and it only took an evening to set up.</p> +</div> +</div> +</body> +</html> diff --git a/README.rest.txt b/README.rest.txt new file mode 100644 index 0000000..3bf56e6 --- /dev/null +++ b/README.rest.txt @@ -0,0 +1,186 @@ +.. -*- mode: rst; coding: utf-8 -*- + +==================================== + Dakkar's ``fvwm-crystal`` settings +==================================== + +I use a 2800x1050 desktop (two 20" LCD panels on a GeForce 6600), with +a `slightly modified version`_ of the `TopLine` recipe. I also use a 5x5 +pages virtual desktop, and a Dvorak keyboard with valume keys (mapped +to the proper keycodes in X11). My music player is `AmaroK`, and my +desktop manager is `ROX`. + +.. _`slightly modified version`: recipes/TopLine + +Since my monitors can "pivot", I have further modified the recipe to +handle rotating the displays. This needs help from the video card. See +the section `Rotating the displays`_. + +The recipe +========== + +The main differences from the stock `TopLine` are: + +- different desktop bindings +- larger thumbnails +- different behaviour of the edges +- 2 identical pagers (one per physical screen) +- geometries rewritten to use ``@g`` to work with `Xinerama` +- each pager (and my "biff" terminal) is raised above all other + windows if I keep the mouse pointer on it long enough +- some functions added to handle `rotating the displays`_ + +The decoration +============== + +I have changed the `Clearlooks DeepSky` decoration_ to add a mini-icon +as button 3. + +.. _decoration: decorations/Dakkar/ + +The colorsets +============= + +Since I use tha `Gentoo` version of ``fvwm2``, it has a patch that +allow fake transparency in the menus. Thus, I changed the +`DarkDesktop` and `WhiteDesktop` colorsets_ to use this feature. + +.. _colorsets: colorsets/ + +The bindings +============ + +I redefined most keyboard bindings to my taste. Of particular interest +may be the Music_ file, where I bind the volume controls to the volume +keycodes, and the ``Music-GUI`` function to the "eject" keycode. I +also bound most window manipulation functions to various combination +of ``Alt`` and the numeric keypad (see the `Window-Control-Dakkar`_ +file) + +.. _Music: components/bindings/Music +.. _Window-Control-Dakkar: components/bindings/Window-Control-Dakkar + +The preferences +=============== + +To be able to select `AmaroK` as a music player, and `amixer` as a +mixer control, I created the `dakkar_Preferences`_ file, which adds +them to the appropriate menus. + +.. _`dakkar_Preferences`: components/desktop/dakkar_Preferences + +The styles and icons +==================== + +I added some style declaration and icons for some applications +(e.g. the windows created by ``xine-ui`` and ``xpad`` should be bare, +and I added icons for ``xchat-2`` and ``skype``) + +The functions +============= + +I redefined a couple of function in the Numpad_ to add the +``AnyScreen`` option. + +.. _Numpad: components/functions/Numpad + +Then I wrote the `Mixer-amixer`_ and `Music-amarok`_ files to interact +with by chosen music programs. + +.. _`Mixer-amixer`: components/functions/Mixer-amixer +.. _`Music-amarok`: components/functions/Music-amarok + +``amixer`` is a simple command-line mixer, and its integration was +easy. + +`AmaroK` is a `KDE` application, and it's not straightforward to +control. At the moment only "random", "repeat", "stop", "play/pause" +and "show/hide" are implemented, all via ``dcop`` calls. + +The ``Music-GUI`` function is used to toggle the display of +`AmaroK`, and also to start it: it the ``dcop`` calls fails, the +``amarok`` command gets executed, launching the program. + +.. note:: `AmaroK` and `Trayer` + + For some not-really-clear-to-me reason, the tray icon of `AmaroK` + is not displayed by `Trayer`, normally. To work around this + problem, I have written the small ``amarok`` script, which sits in + my ``~/bin`` directory (which is at the beginning of my + ``$PATH``). Using this, the icon works as expected. + +I also tweaked a Perl script I found on the Web to create a menu for +my ``screen`` sessions, see the `Screen-Menu`_ configuration file and +the `fvwm-screen.pl`_ script. + +.. _`Screen-Menu`: components/functions/Screen-Menu +.. _`fvwm-screen.pl`: scripts/fvwm-screen.pl + +Finally, in the `Notify`_ file, I redefined the ``UrgencyFunc`` to pop +up a notification via the dbus notification mechanism (using a `simple +Perl script`_ which uses `Net::DBus`_). + +.. _Notify: components/functions/Notify +.. _`simple Perl script`: FvwmNotify.pm +.. _`Net::DBus`: http://search.cpan.org/~danberr/Net-DBus-0.33.5/ + +Rotating the displays +===================== + +This takes a little background. + +First of all, my ``/etc/X11/xorg.conf`` file has a ``Screen`` section +like this:: + + Section "Screen" + Identifier "dual-nv" + Device "nvidia" + Monitor "LCD" + DefaultDepth 24 + Option "TwinView" "true" + Option "MetaModes" "DFP-0: 1400x1050 @1400x1050 +0+0, DFP-1: 1400x1050 @1400x1050 +1400+0" + Option "RandRRotation" "on" + Option "Xinerama" "on" + + SubSection "Display" + ViewPort 0 0 + Depth 24 + Modes "1400x1050" + EndSubSection + EndSection + +This specifies that, normally, I use my displays horizontally, one to +the right of the other. + +Then, in my `~/.xinirc`_, I add a second "MetaMode":: + + ./bin/nv-control-dpy --add-metamode \ + 'DFP-0: 1400x1050 @1400x1050 +0+1050, DFP-1: 1400x1050 @1400x1050 +0+0' + +The ``nv-control-dpy`` program can be found in the source tarball for +the ``nvidia-settings`` program, in the ``samples`` subdirectory. + +You may be wondering: why adding a second MetaMode in this way, when +you can specify both in the ``xorg.conf`` file? Good question. The +answer is that, if you do it "the logical way", the always helpful +NVidia drivers will tell the X server that you have a virtual screen +whose size is the bounding box of the union of all MetaModes. Which in +my case would mean that I'd have a lot of panning around, *very* +irritating when you use multiple viewports. Adding the MetaMode after +the startup of the X server avoids this issue. + +In the recipe, I have two functions to set landscape (normal) and +portrait (vertical) orientation. They call ``xrandr`` to set the +display orientation and size, and do some repositioning of the various +things that need it: + +- a script instructs `ROX-Filer` to change its "pinboard" to the one + with the proper layout (this is not optimal, but since I very rarely + change the contents of my pinboard, works well enough for me) +- `gkrellm2` and my "biff" terminal get moved to their proper + positions during ``StartFunction`` + +Maybe there's a samrter way to get the same result, but this works, +and it only took an evening to set up. + +.. _`~/.xinirc`: xinitrc diff --git a/ROX-set-horizontal b/ROX-set-horizontal new file mode 100755 index 0000000..0f2ac42 --- /dev/null +++ b/ROX-set-horizontal @@ -0,0 +1,11 @@ +#!/bin/bash +rox --RPC <<EOF +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"> + <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer"> + <Pinboard> + <Name>Default</Name> + </Pinboard> + </env:Body> +</env:Envelope> +EOF diff --git a/ROX-set-vertical b/ROX-set-vertical new file mode 100755 index 0000000..850b414 --- /dev/null +++ b/ROX-set-vertical @@ -0,0 +1,11 @@ +#!/bin/bash +rox --RPC <<EOF +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"> + <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer"> + <Pinboard> + <Name>Vertical</Name> + </Pinboard> + </env:Body> +</env:Envelope> +EOF @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/kde/3.5/bin/amarok +dcop kded kded loadModule kdetrayproxy diff --git a/colorsets/DarkDesktop.cs b/colorsets/DarkDesktop.cs new file mode 100644 index 0000000..804e82d --- /dev/null +++ b/colorsets/DarkDesktop.cs @@ -0,0 +1,58 @@ +# DarkDesktop colorset +# Written by: fRiQ + +SetEnv Colorset_Name "DarkDesktop" +SetEnv Colorset_Author "fRiQ" + +# What colorsets do we use? +Read $[FVWM_SYSTEMDIR]/colorsets/colorset-definition + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# QuakeConsole, thumbnailed windows +Colorset $[cs_quakeconsole] \ +Foreground "black", Background "black", \ +Hilight "black", Shadow "black", \ +IconAlpha 70 + + +Colorset $[cs_panel_inactive] \ +Foreground "white", Background "#444444", \ +Tint "black" 50, RootTransparent, \ +fgTint, IconAlpha, IconTint + +Colorset $[cs_panel_active] \ +Foreground "darkgray", Background "darkgray", \ +Hilight "darkgray", Shadow "darkgray", \ +Tint "#000066" 50, RootTransparent + +Colorset $[cs_panel_wininactive] \ +Foreground "gray", Background "#777777", \ +Hilight "#444444", Shadow "#444444", \ +Tint "black" 50, RootTransparent + +Colorset $[cs_panel_winactive] \ +Foreground "white", Background "#777777", \ +Hilight "#666666", Shadow "#666666", \ +Tint "blue" 50, RootTransparent + +Colorset $[cs_panel_border] \ +Background "#777777" + +Colorset $[cs_menu_inactive] \ +Foreground "white", Background "#777777", \ +Hilight "#777777", Shadow "#777777", \ +Translucent "black" 60 + +Colorset $[cs_menu_active] \ +Foreground "black", Background "gray", \ +Hilight "black", Shadow "gray" + + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# Additional variables +SetEnv ThumbBorderColor "gray" +SetEnv ExternalFontColor "gray40" + +SetEnv TrayerTint "0x000000" +SetEnv TrayerAlpha "128" + diff --git a/colorsets/WhiteDesktop.cs b/colorsets/WhiteDesktop.cs new file mode 100644 index 0000000..09249fc --- /dev/null +++ b/colorsets/WhiteDesktop.cs @@ -0,0 +1,58 @@ +# WhiteDesktop colorset +# Written by: Social + +SetEnv Colorset_Name "WhiteDesktop" +SetEnv Colorset_Author "Social" + +# What colorsets do we use? +Read $[FVWM_SYSTEMDIR]/colorsets/colorset-definition + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# QuakeConsole, thumbnailed windows +Colorset $[cs_quakeconsole] \ +Foreground "black", Background "black", \ +Hilight "black", Shadow "black", \ +IconAlpha 70 + + +Colorset $[cs_panel_inactive] \ +Foreground "black", Background "#444444", \ +Tint "#aaaaaa" 50, RootTransparent, \ +fgTint, IconAlpha, IconTint + +Colorset $[cs_panel_active] \ +Foreground "darkgray", Background "darkgray", \ +Hilight "darkgray", Shadow "darkgray", \ +Tint "#888888" 50, RootTransparent + +Colorset $[cs_panel_wininactive] \ +Foreground "#555555", Background "#777777", \ +Hilight "#444444", Shadow "#444444", \ +Tint "#aaaaaa" 60, RootTransparent + +Colorset $[cs_panel_winactive] \ +Foreground "black", Background "#777777", \ +Hilight "#666666", Shadow "#666666", \ +Tint "#aaaaaa" 80, RootTransparent + +Colorset $[cs_panel_border] \ +Background "#777777" + +Colorset $[cs_menu_inactive] \ +Foreground "black", Background "white", \ +Hilight "white", Shadow "white", \ +Translucent "#aaaaaa" 50 + +Colorset $[cs_menu_active] \ +Foreground "#333333", Background "white", \ +Hilight "#333333", Shadow "gray" + + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# Additional variables +SetEnv ThumbBorderColor "black" +SetEnv ExternalFontColor "gray40" + +SetEnv TrayerTint "0xaaaaaa" +SetEnv TrayerAlpha "128" + diff --git a/components/bindings/Desktop-dakkar b/components/bindings/Desktop-dakkar new file mode 100644 index 0000000..57836e4 --- /dev/null +++ b/components/bindings/Desktop-dakkar @@ -0,0 +1,4 @@ +# Open screen on Alt+RMB +Mouse 3 RI $[Mod1] Exec exec $[DefaultTerminal] -title local-screen -e screen -D -RR + +Key XF86SplitScreen A N Exec emacsclient -nc diff --git a/components/bindings/Music b/components/bindings/Music new file mode 100644 index 0000000..02d963d --- /dev/null +++ b/components/bindings/Music @@ -0,0 +1,8 @@ +Key XF86AudioLowerVolume A $[Mod0] Mixer-Volume-Down 5 +Key XF86AudioRaiseVolume A $[Mod0] Mixer-Volume-Up 5 +Key XF86AudioMute A $[Mod0] Mixer-GUI +Key XF86Eject A $[Mod0] Music-GUI + +Key XF86AudioPlay A $[Mod0] Music-PlayPause +Key XF86AudioNext A $[Mod] Music-Next +Key XF86AudioPrev A $[Mod] Music-Prev diff --git a/components/bindings/Numpad-Focus b/components/bindings/Numpad-Focus new file mode 100644 index 0000000..f09ddd9 --- /dev/null +++ b/components/bindings/Numpad-Focus @@ -0,0 +1,13 @@ +# Here are the bindings for focus-switching using the numpad +# This version only switches the focus +Key KP_Home A $[Mod1] Window-FocusInDirection NorthWest +Key KP_Left A $[Mod1] Window-FocusInDirection West +Key KP_End A $[Mod1] Window-FocusInDirection SouthWest +Key KP_Up A $[Mod1] Window-FocusInDirection North +Key KP_Down A $[Mod1] Window-FocusInDirection South +Key KP_Page_Up A $[Mod1] Window-FocusInDirection NorthEast +Key KP_Page_Down A $[Mod1] Window-FocusInDirection SouthEast +Key KP_Right A $[Mod1] Window-FocusInDirection East +Key KP_Begin A $[Mod1] Window-FocusInDirection Center + +# vim:ft=fvwm diff --git a/components/bindings/PageSwitch-Square b/components/bindings/PageSwitch-Square new file mode 100644 index 0000000..043a867 --- /dev/null +++ b/components/bindings/PageSwitch-Square @@ -0,0 +1,11 @@ +Key Left A $[Mod1] GotoPage -1p 0p +Key Right A $[Mod1] GotoPage +1p 0p +Key Up A $[Mod1] GotoPage 0p -1p +Key Down A $[Mod1] GotoPage 0p +1p + + +Key Left A $[Mod2] WarpToPage-Left +Key Right A $[Mod2] WarpToPage-Right +Key Up A $[Mod2] WarpToPage-Up +Key Down A $[Mod2] WarpToPage-Down + diff --git a/components/bindings/Pager-Square b/components/bindings/Pager-Square new file mode 100644 index 0000000..54943d0 --- /dev/null +++ b/components/bindings/Pager-Square @@ -0,0 +1,36 @@ +Key XF86MonBrightnessDown A M4 GotoPage 0 0 +Key XF86MonBrightnessUp A M4 GotoPage 1 0 +Key XF86SplitScreen A M4 GotoPage 2 0 +Key XF86TaskPane A M4 GotoPage 3 0 +Key F5 A M4 GotoPage 4 0 + +Key 1 A M4 GotoPage 0 1 +Key 2 A M4 GotoPage 1 1 +Key 3 A M4 GotoPage 2 1 +Key 4 A M4 GotoPage 3 1 +Key 5 A M4 GotoPage 4 1 + +Key apostrophe A M4 GotoPage 0 2 +Key comma A M4 GotoPage 1 2 +Key period A M4 GotoPage 2 2 +Key P A M4 GotoPage 3 2 +Key Y A M4 GotoPage 4 2 + +Key A A M4 GotoPage 0 3 +Key O A M4 GotoPage 1 3 +Key E A M4 GotoPage 2 3 +Key U A M4 GotoPage 3 3 +Key I A M4 GotoPage 4 3 + +Key semicolon A M4 GotoPage 0 4 +Key Q A M4 GotoPage 1 4 +Key J A M4 GotoPage 2 4 +Key K A M4 GotoPage 3 4 +Key X A M4 GotoPage 4 4 + +# Go to previouse page using Escape +Key Escape A $[Mod1] GotoPage prev + +# Move focused window to the last used page +Key Escape A $[Mod2] MoveToPage-Focus prev + diff --git a/components/bindings/TheLauncher b/components/bindings/TheLauncher new file mode 100644 index 0000000..ea0f170 --- /dev/null +++ b/components/bindings/TheLauncher @@ -0,0 +1,2 @@ +Key section A $[Mod1] Exec exec thelauncher +Style Thelauncher NoTitle, !Borders, WindowListSkip, CirculateSkip diff --git a/components/bindings/Window-Basic b/components/bindings/Window-Basic new file mode 100644 index 0000000..d67845b --- /dev/null +++ b/components/bindings/Window-Basic @@ -0,0 +1,10 @@ +# Basic window bindings + +Mouse 1 T $[Mod] Window-Raise-RaiseMove +Mouse 2 T $[Mod] Window-Shade-Resize +Mouse 3 T $[Mod] Window-Lower-Move + +Mouse 1 WT $[Mod1] Window-Raise-RaiseMove +Mouse 2 WT $[Mod1] Popup /Window-Menu Mouse -50m +5p +Mouse 3 WT $[Mod1] Window-Lower-Move + diff --git a/components/bindings/Window-Control-Dakkar b/components/bindings/Window-Control-Dakkar new file mode 100644 index 0000000..3080bfb --- /dev/null +++ b/components/bindings/Window-Control-Dakkar @@ -0,0 +1,9 @@ +Key W A $[Mod1] Close +Key M A $[Mod1] Window-Iconify +Key KP_Add A $[Mod1] Raise +Key KP_Subtract A $[Mod1] Lower +Key KP_Multiply A $[Mod1] PlaceAgain +Key KP_Equal A $[Mod1] Window-Shade toggle +Key KP_Up A $[Mod2] Maximize toggle 0 100 +Key KP_Right A $[Mod2] Maximize toggle 100 0 +Key KP_Begin A $[Mod2] Maximize toggle 100 100 diff --git a/components/bindings/Window-List b/components/bindings/Window-List new file mode 100644 index 0000000..9710532 --- /dev/null +++ b/components/bindings/Window-List @@ -0,0 +1,11 @@ +# Window list + +# Show only windows on current page +#Key Tab A $[Mod1] Window-List-Page "root c c" +# Show windows on all pages +Key Tab A $[Mod1] Window-List "root c c" + + +# This menu shows iconified windows +Key Tab A $[Mod2] Window-List-Icons "root c c" + diff --git a/components/decorations/Buttons-os2-MiniIcon b/components/decorations/Buttons-os2-MiniIcon new file mode 100644 index 0000000..798fe66 --- /dev/null +++ b/components/decorations/Buttons-os2-MiniIcon @@ -0,0 +1,45 @@ +# OS/2 Button Setup +# Written by Maciej Delmanowski <harnir@post.pl> +# +# This is the window titlebar button setup similar to the OS/2 +# buttons on the titlebar + +# 1st button - close +Mouse 1 1 $[Mod] Window-Button-Function Button1 /Window-Menu Close +Mouse 2 1 $[Mod] Window-Button-Function Button1 /Window-Menu Nop +Mouse 3 1 $[Mod] Window-Button-Function Button1 /Window-Menu Window-Iconify +Style * Button 1 + +# 2nd button - various ways to maximize a window +Mouse 1 2 $[Mod0] Window-Button-Function Button2 /Window-Menu-Maximize Maximize +Mouse 2 2 $[Mod0] Window-Button-Function Button2 /Window-Menu-Maximize Maximize 100 0 +Mouse 3 2 $[Mod0] Window-Button-Function Button2 /Window-Menu-Maximize Maximize 0 100 +Mouse 1 2 $[Mod1] Window-Button-Function Button2 /Window-Menu-Maximize Maximize grow grow +Mouse 2 2 $[Mod1] Window-Button-Function Button2 /Window-Menu-Maximize Maximize grow 0 +Mouse 3 2 $[Mod1] Window-Button-Function Button2 /Window-Menu-Maximize Maximize 0 grow +Style * Button 2 + +# MiniIcon +Mouse 1 3 $[Mod] Window-Raise-MoveRaise +Mouse 2 3 $[Mod] Window-Shade-Resize +Mouse 3 3 $[Mod] Window-Lower-Move +Style * Button 3 + +# 4th button - iconify +Mouse 1 4 $[Mod] Window-Button-Function Button4 /Window-Menu Window-Iconify +Mouse 2 4 $[Mod] Window-Button-Function Button4 /Window-Menu Nop +Mouse 3 4 $[Mod] Window-Button-Function Button4 /Window-Menu Nop +Style * Button 4 + +Style * NoButton 5 + +Style * NoButton 6 + +Style * NoButton 7 + +Style * NoButton 8 + +Style * NoButton 9 + +Style * NoButton 0 + diff --git a/components/desktop/Keyboard b/components/desktop/Keyboard new file mode 100644 index 0000000..84bd7d9 --- /dev/null +++ b/components/desktop/Keyboard @@ -0,0 +1,17 @@ +# Standard keyboard layout +# You need several functions to use all of the keybindings + +Include components/bindings/Music +Include components/bindings/Pager-Square +Include components/bindings/PageSwitch-Square +#Include components/bindings/Window-Control +Include components/bindings/Window-List +#Include components/bindings/Window-Rearrange +Include components/bindings/Misc-Keybindings +Include components/bindings/Window-Control-Dakkar +Include components/bindings/Numpad-Focus +Include components/bindings/TheLauncher + +Key apostrophe A $[Mod1] Menu /Applications root c c +Key quotedbl A $[Mod1] Menu /FVWM-Crystal root c c + diff --git a/components/desktop/dakkar_Preferences b/components/desktop/dakkar_Preferences new file mode 100644 index 0000000..b2d6254 --- /dev/null +++ b/components/desktop/dakkar_Preferences @@ -0,0 +1,6 @@ +AddToMenu /Preferences/Mixer +Test (x amixer) + '%22x22/apps/alsamixer.png%ALSA' SelectMixer amixer + +AddToMenu /Preferences/MusicPlayer +Test (x amarok) + '%22x22/apps/amarok.png%AmaroK' SelectMusicPlayer amarok + diff --git a/components/functions/Mixer-amixer b/components/functions/Mixer-amixer new file mode 100644 index 0000000..2f2d705 --- /dev/null +++ b/components/functions/Mixer-amixer @@ -0,0 +1,25 @@ +DestroyFunc Mixer-Volume +AddToFunc Mixer-Volume ++ I Exec amixer set PCM "$0"'%' > /dev/null + +DestroyFunc Mixer-Volume-Up +AddToFunc Mixer-Volume-Up ++ I Exec amixer set PCM "$0"'%+' > /dev/null + +DestroyFunc Mixer-Volume-Down +AddToFunc Mixer-Volume-Down ++ I Exec amixer set PCM "$0"'%-' > /dev/null + +DestroyFunc Mixer-GUI +AddToFunc Mixer-GUI ++ I Exec exec gamix > /dev/null + +# Mixer menu +DestroyMenu /Mixer +AddToMenu /Mixer ++ "100%%" Mixer-Volume 100 ++ "90%%" Mixer-Volume 90 ++ "80%%" Mixer-Volume 80 ++ "50%%" Mixer-Volume 50 ++ "30%%" Mixer-Volume 30 ++ "0%%" Mixer-Volume 0 diff --git a/components/functions/Music-amarok b/components/functions/Music-amarok new file mode 100644 index 0000000..8a5ab35 --- /dev/null +++ b/components/functions/Music-amarok @@ -0,0 +1,49 @@ +DestroyMenu /Music +AddToMenu /Music ++ DynamicPopupAction Function /Music-generator + +DestroyFunc /Music-generator +AddToFunc /Music-generator ++ I DestroyMenu recreate /Music ++ I AddToMenu /Music '$[gt.Toggle random]' Music-ToggleRandom ++ I AddToMenu /Music '$[gt.Toggle repeat]' Music-ToggleRepeat ++ I AddToMenu /Music "" Nop ++ I AddToMenu /Music '$[gt.Stop playback]' Music-Stop ++ I AddToMenu /Music '$[gt.Show/hide player]' Music-GUI ++ I AddToMenu /Music '$[gt.Play/Pause]' Music-PlayPause + +DestroyFunc Music-Play +AddToFunc Music-Play ++ I Exec exec dcop amarok player play 2>/dev/null + +DestroyFunc Music-Pause +AddToFunc Music-Pause ++ I Exec exec dcop amarok player pause 2>/dev/null + +DestroyFunc Music-Stop +AddToFunc Music-Stop ++ I Exec exec dcop amarok player stop 2>/dev/null + +DestroyFunc Music-PlayPause +AddToFunc Music-PlayPause ++ I Exec exec dcop amarok player playPause 2>/dev/null + +DestroyFunc Music-Next +AddToFunc Music-Next ++ I Exec exec dcop amarok player next 2>/dev/null + +DestroyFunc Music-Prev +AddToFunc Music-Prev ++ I Exec exec dcop amarok player prev 2>/dev/null + +DestroyFunc Music-ToggleRandom +AddToFunc Music-ToggleRandom ++ I Exec exec dcop amarok player enableRandomMode $( if [ $(dcop amarok player randomModeStatus) == false ]; then echo true; else echo false;fi) 2>/dev/null + +DestroyFunc Music-ToggleRepeat +AddToFunc Music-ToggleRepeat ++ I Exec exec dcop amarok player enableRepeatPlaylist $( if [ $(dcop amarok player repeatPlaylistStatus) == false ]; then echo true; else echo false;fi) 2>/dev/null + +DestroyFunc Music-GUI +AddToFunc Music-GUI ++ I Exec dcop amarok playlist togglePlaylist 2>/dev/null || amarok diff --git a/components/functions/Notify b/components/functions/Notify new file mode 100644 index 0000000..f0c2a55 --- /dev/null +++ b/components/functions/Notify @@ -0,0 +1,12 @@ +AddToFunc StartFunction ++ I ModuleSynchronous FvwmPerl NotifyPerl ++ I SendToModule NotifyPerl load FvwmNotify.pm + +DestroyFunc BubbleNotify +AddToFunc BubbleNotify ++ I SendToModule NotifyPerl eval FvwmNotify::notify(q{$0},q{$1},q{$2},q{$3},q{$4}) + +DestroyFunc UrgencyFunc +AddtoFunc UrgencyFunc ++ I BubbleNotify $[w.name] $[w.name] 'beep!' 2000 $[w.iconfile] + diff --git a/components/functions/Numpad b/components/functions/Numpad new file mode 100644 index 0000000..b694ee3 --- /dev/null +++ b/components/functions/Numpad @@ -0,0 +1,57 @@ +# Numpad + +# --------------------------------------------------------------------------- +# Focus functions +DestroyFunc Window-FocusInDirection +AddToFunc Window-FocusInDirection ++ I Direction $0 (CurrentPage, AnyScreen, AcceptsFocus, !Iconic) Focus + +DestroyFunc Window-FocusAndRaiseInDirection +AddToFunc Window-FocusAndRaiseInDirection ++ I Direction $0 (CurrentPage, AnyScreen, AcceptsFocus, !Iconic) Focus ++ I Current (Focused) Raise + +# --------------------------------------------------------------------------- +# Move functions +DestroyFunc Window-MPAnimatedMove +AddToFunc Window-MPAnimatedMove ++ I Current (HasPointer) AnimatedMove $0 $1 Warp ++ I TestRc (NoMatch) AnimatedMove $0 $1 + +DestroyFunc Window-Warp-CenterCenter +AddToFunc Window-Warp-CenterCenter ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] / 2 - $[w.width] / 2`p `expr $[vp.height] / 2 - $[w.height] / 2`p' + +DestroyFunc Window-Warp-LeftCenter +AddToFunc Window-Warp-LeftCenter ++ I Current Piperead 'echo Window-MPAnimatedMove $[EWMH_BS_Panel_Left]p `expr $[vp.height] / 2 - $[w.height] / 2`p' + +DestroyFunc Window-Warp-LeftTop +AddToFunc Window-Warp-LeftTop ++ I Current Window-MPAnimatedMove $[EWMH_BS_Panel_Left]p $[EWMH_BS_Panel_Top]p + +DestroyFunc Window-Warp-CenterTop +AddToFunc Window-Warp-CenterTop ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] / 2 - $[w.width] / 2`p $[EWMH_BS_Panel_Top]p' + +DestroyFunc Window-Warp-RightTop +AddToFunc Window-Warp-RightTop ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] - $[EWMH_BS_Panel_Right] - $[w.width]`p $[EWMH_BS_Panel_Top]p' + +DestroyFunc Window-Warp-RightCenter +AddToFunc Window-Warp-RightCenter ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] - $[EWMH_BS_Panel_Right] - $[w.width]`p `expr $[vp.height] / 2 - $[w.height] / 2`p' + +DestroyFunc Window-Warp-CenterBottom +AddToFunc Window-Warp-CenterBottom ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] / 2 - $[w.width] / 2`p `expr $[vp.height] - $[EWMH_BS_Panel_Bottom] - $[w.height]`p' + +DestroyFunc Window-Warp-LeftBottom +AddToFunc Window-Warp-LeftBottom ++ I Current Piperead 'echo Window-MPAnimatedMove $[EWMH_BS_Panel_Left]p `expr $[vp.height] - $[EWMH_BS_Panel_Bottom] - $[w.height]`p' + +DestroyFunc Window-Warp-RightBottom +AddToFunc Window-Warp-RightBottom ++ I Current Piperead 'echo Window-MPAnimatedMove `expr $[vp.width] - $[EWMH_BS_Panel_Right] - $[w.width]`p `expr $[vp.height] - $[EWMH_BS_Panel_Bottom] - $[w.height]`p' + +# vim:ft=fvwm diff --git a/components/functions/Screen-Menu b/components/functions/Screen-Menu new file mode 100644 index 0000000..e32dc39 --- /dev/null +++ b/components/functions/Screen-Menu @@ -0,0 +1,11 @@ +DestroyMenu /Screens +AddToMenu /Screens ++ DynamicPopupAction Function BuildScreensMenu + +DestroyFunc BuildScreensMenu +AddToFunc BuildScreensMenu ++ I DestroyMenu recreate /Screens ++ I AddToMenu /Screens ++ I PipeRead $[FVWM_USERDIR]/scripts/fvwm-screen.pl + +Mouse 3 RI $[Mod1] Popup /Screens diff --git a/components/scripts/FvwmScript-Clock-dakkar b/components/scripts/FvwmScript-Clock-dakkar new file mode 100755 index 0000000..a298848 --- /dev/null +++ b/components/scripts/FvwmScript-Clock-dakkar @@ -0,0 +1,38 @@ +WindowTitle {FvwmScript-Clock} +WindowSize 165 20 +Font "xft:Tahoma:pixelsize=12:Bold" +Colorset 1 + +Init + Begin + + Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1) + + ChangeTitle 1 $tmp +End + +PeriodicTasks + Begin + If (RemainderOfDiv (GetTime) 60)==0 Then + Begin + + Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1) + + ChangeTitle 1 $tmp + End +End + +Widget 1 +Property + Position 0 -3 + Size 165 20 + Type ItemDraw + Flags NoReliefString + Title {} + Colorset 1 +Main + Case message of + SingleClic : + Begin + End +End diff --git a/components/styles/Application-Icons-22-32 b/components/styles/Application-Icons-22-32 new file mode 100644 index 0000000..8fc04c5 --- /dev/null +++ b/components/styles/Application-Icons-22-32 @@ -0,0 +1,2 @@ +Style xchat-2 MiniIcon 22x22/apps/xchat.png, Icon 32x32/apps/xchat.png +Style skype.bin MiniIcon 22x22/apps/skype.png, Icon 32x32/apps/skype.png diff --git a/components/styles/Applications b/components/styles/Applications new file mode 100644 index 0000000..9e0136e --- /dev/null +++ b/components/styles/Applications @@ -0,0 +1,15 @@ +Style xpad NoTitle, !Borders + +Style xine NoTitle, !Borders +Style "xine Video Window" Title, Borders +Style Xitk NoTitle, !Borders + +Style mwatch NoTitle, NoHandles, WindowListSkip, BorderWidth 0, \ + CirculateSkip, StaysOnBottom, \ + Sticky, StickyAcrossPages, StickyAcrossDesks, FixedPosition + +Style Firefox MiniIcon $[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps/firefox.png +Style Claws-mail MiniIcon $[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps/claws-mail.png +Style Pidgin MiniIcon $[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps/pidgin.png + + diff --git a/decorations/Dakkar/Colorsets b/decorations/Dakkar/Colorsets new file mode 100644 index 0000000..549aaa4 --- /dev/null +++ b/decorations/Dakkar/Colorsets @@ -0,0 +1,24 @@ +# Colorset setup + +# What colorset numbers do we use? +SetEnv cs_window_inactive "9" +SetEnv cs_window_active "10" +SetEnv cs_window_inactiveborder "11" +SetEnv cs_window_activeborder "12" + +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +# Colorsets + +Colorset $[cs_window_inactive] \ +Foreground "black", Background "black", \ +Hilight "white", Shadow "#e0d9d2", \ +Fgsh "#e0d9d2" + +Colorset $[cs_window_active] \ +Foreground "white", Background "black", \ +Hilight "white", Shadow "gray", \ +fgsh "black" + +Colorset $[cs_window_inactiveborder] Background "#3e3c39" +Colorset $[cs_window_activeborder] Background "#1f252b" + diff --git a/decorations/Dakkar/README b/decorations/Dakkar/README new file mode 100644 index 0000000..780d5d3 --- /dev/null +++ b/decorations/Dakkar/README @@ -0,0 +1,11 @@ +Clearlooks DeepSky window decoration for FVWM & FVWM-Crystal +----------------------------------------------------- + +Ported by: Maciej Delmanowski <harnir@post.pl> +Homepage: http://fvwm-crystal.berlios.de/ +License: GPL + +Based on Clearlooks GTK2 engine +Original authors: Richard Stellingwerff, Daniel Borgmann +Original homepage: http://clearlooks.sourceforge.net/ + diff --git a/decorations/Dakkar/Theme.os2 b/decorations/Dakkar/Theme.os2 new file mode 100644 index 0000000..3a0d7dd --- /dev/null +++ b/decorations/Dakkar/Theme.os2 @@ -0,0 +1,51 @@ +# OS/2 version + +# Setup colorsets +Read $./Colorsets + +DestroyDecor recreate WindowDecoration +AddToDecor WindowDecoration + ++ TitleStyle Active TiledPixmap $./window-active-title.png ++ TitleStyle InActive TiledPixmap $./window-inactive-title.png ++ TitleStyle Centered Height 24 -- flat + ++ BorderStyle -- HiddenHandles ++ BorderStyle -- Flat + ++ ButtonStyle 1 \ + ActiveUp (Pixmap $./window-active-close.png) \ + ActiveDown (Pixmap $./window-active-close-down.png) \ + InactiveUp (Pixmap $./window-inactive-close.png) \ + InactiveDown (Pixmap $./window-inactive-close-down.png) + ++ ButtonStyle 2 \ + ActiveUp (Pixmap $./window-active-maximize.png) \ + ActiveDown (Pixmap $./window-active-maximize-down.png) \ + InactiveUp (Pixmap $./window-inactive-maximize.png) \ + InactiveDown (Pixmap $./window-inactive-maximize-down.png) + ++ ButtonStyle 3 MiniIcon + ++ ButtonStyle 4 \ + ActiveUp (Pixmap $./window-active-iconify.png) \ + ActiveDown (Pixmap $./window-active-iconify-down.png) \ + InactiveUp (Pixmap $./window-inactive-iconify.png) \ + InactiveDown (Pixmap $./window-inactive-iconify-down.png) + ++ ButtonStyle All -- UseTitleStyle ++ ButtonStyle All -- flat + +Style * HandleWidth 1, BorderWidth 1 +Style * Colorset $[cs_window_inactive], \ + BorderColorset $[cs_window_inactiveborder], \ + HilightColorset $[cs_window_active], \ + HilightBorderColorset $[cs_window_activeborder] + +Style * Font shadow="1 1":"xft:Verdana:pixelsize=12:Bold:encoding=iso10646-1" + +Style * UseDecor WindowDecoration + +# Setup button functions +Include components/decorations/Buttons-os2-MiniIcon + diff --git a/decorations/Dakkar/window-active-arrows-down.png b/decorations/Dakkar/window-active-arrows-down.png Binary files differnew file mode 100644 index 0000000..439b303 --- /dev/null +++ b/decorations/Dakkar/window-active-arrows-down.png diff --git a/decorations/Dakkar/window-active-arrows.png b/decorations/Dakkar/window-active-arrows.png Binary files differnew file mode 100644 index 0000000..7ae7c04 --- /dev/null +++ b/decorations/Dakkar/window-active-arrows.png diff --git a/decorations/Dakkar/window-active-close-down.png b/decorations/Dakkar/window-active-close-down.png Binary files differnew file mode 100644 index 0000000..e0bdf5a --- /dev/null +++ b/decorations/Dakkar/window-active-close-down.png diff --git a/decorations/Dakkar/window-active-close.png b/decorations/Dakkar/window-active-close.png Binary files differnew file mode 100644 index 0000000..cb32d9b --- /dev/null +++ b/decorations/Dakkar/window-active-close.png diff --git a/decorations/Dakkar/window-active-empty-down.png b/decorations/Dakkar/window-active-empty-down.png Binary files differnew file mode 100644 index 0000000..5464cdd --- /dev/null +++ b/decorations/Dakkar/window-active-empty-down.png diff --git a/decorations/Dakkar/window-active-empty.png b/decorations/Dakkar/window-active-empty.png Binary files differnew file mode 100644 index 0000000..3d00ffb --- /dev/null +++ b/decorations/Dakkar/window-active-empty.png diff --git a/decorations/Dakkar/window-active-iconify-down.png b/decorations/Dakkar/window-active-iconify-down.png Binary files differnew file mode 100644 index 0000000..08fb621 --- /dev/null +++ b/decorations/Dakkar/window-active-iconify-down.png diff --git a/decorations/Dakkar/window-active-iconify.png b/decorations/Dakkar/window-active-iconify.png Binary files differnew file mode 100644 index 0000000..a075000 --- /dev/null +++ b/decorations/Dakkar/window-active-iconify.png diff --git a/decorations/Dakkar/window-active-maximize-down.png b/decorations/Dakkar/window-active-maximize-down.png Binary files differnew file mode 100644 index 0000000..69b47e2 --- /dev/null +++ b/decorations/Dakkar/window-active-maximize-down.png diff --git a/decorations/Dakkar/window-active-maximize.png b/decorations/Dakkar/window-active-maximize.png Binary files differnew file mode 100644 index 0000000..2d0ce4d --- /dev/null +++ b/decorations/Dakkar/window-active-maximize.png diff --git a/decorations/Dakkar/window-active-options-down.png b/decorations/Dakkar/window-active-options-down.png Binary files differnew file mode 100644 index 0000000..e67784b --- /dev/null +++ b/decorations/Dakkar/window-active-options-down.png diff --git a/decorations/Dakkar/window-active-options.png b/decorations/Dakkar/window-active-options.png Binary files differnew file mode 100644 index 0000000..7eaf4f4 --- /dev/null +++ b/decorations/Dakkar/window-active-options.png diff --git a/decorations/Dakkar/window-active-title.png b/decorations/Dakkar/window-active-title.png Binary files differnew file mode 100644 index 0000000..d6df41b --- /dev/null +++ b/decorations/Dakkar/window-active-title.png diff --git a/decorations/Dakkar/window-inactive-arrows-down.png b/decorations/Dakkar/window-inactive-arrows-down.png Binary files differnew file mode 100644 index 0000000..d26ba21 --- /dev/null +++ b/decorations/Dakkar/window-inactive-arrows-down.png diff --git a/decorations/Dakkar/window-inactive-arrows.png b/decorations/Dakkar/window-inactive-arrows.png Binary files differnew file mode 100644 index 0000000..a4191df --- /dev/null +++ b/decorations/Dakkar/window-inactive-arrows.png diff --git a/decorations/Dakkar/window-inactive-close-down.png b/decorations/Dakkar/window-inactive-close-down.png Binary files differnew file mode 100644 index 0000000..646dfc3 --- /dev/null +++ b/decorations/Dakkar/window-inactive-close-down.png diff --git a/decorations/Dakkar/window-inactive-close.png b/decorations/Dakkar/window-inactive-close.png Binary files differnew file mode 100644 index 0000000..b837725 --- /dev/null +++ b/decorations/Dakkar/window-inactive-close.png diff --git a/decorations/Dakkar/window-inactive-empty-down.png b/decorations/Dakkar/window-inactive-empty-down.png Binary files differnew file mode 100644 index 0000000..8f3d319 --- /dev/null +++ b/decorations/Dakkar/window-inactive-empty-down.png diff --git a/decorations/Dakkar/window-inactive-empty.png b/decorations/Dakkar/window-inactive-empty.png Binary files differnew file mode 100644 index 0000000..0a3a3c6 --- /dev/null +++ b/decorations/Dakkar/window-inactive-empty.png diff --git a/decorations/Dakkar/window-inactive-iconify-down.png b/decorations/Dakkar/window-inactive-iconify-down.png Binary files differnew file mode 100644 index 0000000..51e6df0 --- /dev/null +++ b/decorations/Dakkar/window-inactive-iconify-down.png diff --git a/decorations/Dakkar/window-inactive-iconify.png b/decorations/Dakkar/window-inactive-iconify.png Binary files differnew file mode 100644 index 0000000..f3d6976 --- /dev/null +++ b/decorations/Dakkar/window-inactive-iconify.png diff --git a/decorations/Dakkar/window-inactive-maximize-down.png b/decorations/Dakkar/window-inactive-maximize-down.png Binary files differnew file mode 100644 index 0000000..daaaf8e --- /dev/null +++ b/decorations/Dakkar/window-inactive-maximize-down.png diff --git a/decorations/Dakkar/window-inactive-maximize.png b/decorations/Dakkar/window-inactive-maximize.png Binary files differnew file mode 100644 index 0000000..9147053 --- /dev/null +++ b/decorations/Dakkar/window-inactive-maximize.png diff --git a/decorations/Dakkar/window-inactive-options-down.png b/decorations/Dakkar/window-inactive-options-down.png Binary files differnew file mode 100644 index 0000000..3664e8d --- /dev/null +++ b/decorations/Dakkar/window-inactive-options-down.png diff --git a/decorations/Dakkar/window-inactive-options.png b/decorations/Dakkar/window-inactive-options.png Binary files differnew file mode 100644 index 0000000..371b8a9 --- /dev/null +++ b/decorations/Dakkar/window-inactive-options.png diff --git a/decorations/Dakkar/window-inactive-title.png b/decorations/Dakkar/window-inactive-title.png Binary files differnew file mode 100644 index 0000000..3266749 --- /dev/null +++ b/decorations/Dakkar/window-inactive-title.png diff --git a/icons/Default/22x22/apps/armagetronad.png b/icons/Default/22x22/apps/armagetronad.png Binary files differnew file mode 100644 index 0000000..908122c --- /dev/null +++ b/icons/Default/22x22/apps/armagetronad.png diff --git a/icons/Default/22x22/apps/briquolo.png b/icons/Default/22x22/apps/briquolo.png Binary files differnew file mode 100644 index 0000000..6cf11bf --- /dev/null +++ b/icons/Default/22x22/apps/briquolo.png diff --git a/icons/Default/22x22/apps/claws-mail.png b/icons/Default/22x22/apps/claws-mail.png new file mode 120000 index 0000000..7ecff35 --- /dev/null +++ b/icons/Default/22x22/apps/claws-mail.png @@ -0,0 +1 @@ +/usr/share/fvwm-crystal/fvwm/icons/Default/22x22/apps/sylpheed-claws.png
\ No newline at end of file diff --git a/icons/Default/22x22/apps/einstein.png b/icons/Default/22x22/apps/einstein.png Binary files differnew file mode 100644 index 0000000..4c36a6a --- /dev/null +++ b/icons/Default/22x22/apps/einstein.png diff --git a/icons/Default/22x22/apps/firefox.png b/icons/Default/22x22/apps/firefox.png Binary files differnew file mode 100644 index 0000000..200624c --- /dev/null +++ b/icons/Default/22x22/apps/firefox.png diff --git a/icons/Default/22x22/apps/glade-3.png b/icons/Default/22x22/apps/glade-3.png new file mode 120000 index 0000000..cc7dbc3 --- /dev/null +++ b/icons/Default/22x22/apps/glade-3.png @@ -0,0 +1 @@ +/usr/share/icons/hicolor/22x22/apps/glade-3.png
\ No newline at end of file diff --git a/icons/Default/22x22/apps/monsterz.png b/icons/Default/22x22/apps/monsterz.png Binary files differnew file mode 100644 index 0000000..9e226d9 --- /dev/null +++ b/icons/Default/22x22/apps/monsterz.png diff --git a/icons/Default/22x22/apps/pidgin.png b/icons/Default/22x22/apps/pidgin.png new file mode 120000 index 0000000..4754b5a --- /dev/null +++ b/icons/Default/22x22/apps/pidgin.png @@ -0,0 +1 @@ +/usr/share/icons/hicolor/22x22/apps/pidgin.png
\ No newline at end of file diff --git a/icons/Default/22x22/apps/scummvm.png b/icons/Default/22x22/apps/scummvm.png Binary files differnew file mode 100644 index 0000000..a5dc26f --- /dev/null +++ b/icons/Default/22x22/apps/scummvm.png diff --git a/icons/Default/22x22/apps/skype.png b/icons/Default/22x22/apps/skype.png Binary files differnew file mode 100644 index 0000000..f1c3bbf --- /dev/null +++ b/icons/Default/22x22/apps/skype.png diff --git a/icons/Default/22x22/apps/thunderbird.png b/icons/Default/22x22/apps/thunderbird.png Binary files differnew file mode 100644 index 0000000..0f5719f --- /dev/null +++ b/icons/Default/22x22/apps/thunderbird.png diff --git a/preferences/DefaultDesktopManager b/preferences/DefaultDesktopManager new file mode 100644 index 0000000..f758685 --- /dev/null +++ b/preferences/DefaultDesktopManager @@ -0,0 +1 @@ +Include components/apps/ROX-Filer diff --git a/preferences/DefaultMixer b/preferences/DefaultMixer new file mode 100644 index 0000000..e09f3e0 --- /dev/null +++ b/preferences/DefaultMixer @@ -0,0 +1 @@ +Include components/functions/Mixer-amixer diff --git a/preferences/DefaultMusicPlayer b/preferences/DefaultMusicPlayer new file mode 100644 index 0000000..ace1348 --- /dev/null +++ b/preferences/DefaultMusicPlayer @@ -0,0 +1 @@ +Include components/functions/Music-amarok diff --git a/preferences/DefaultTerminal b/preferences/DefaultTerminal new file mode 100644 index 0000000..f90afe1 --- /dev/null +++ b/preferences/DefaultTerminal @@ -0,0 +1 @@ +FindCommand DefaultTerminal urxvt Eterm aterm mrxvt xterm gnome-terminal konsole xfce4-terminal diff --git a/preferences/LastChoosenButtonModel b/preferences/LastChoosenButtonModel new file mode 100644 index 0000000..6ffabc9 --- /dev/null +++ b/preferences/LastChoosenButtonModel @@ -0,0 +1 @@ +SetEnv Window_Decorations_ButtonModel Theme.os2 diff --git a/preferences/LastChoosenColorset b/preferences/LastChoosenColorset new file mode 100644 index 0000000..d756132 --- /dev/null +++ b/preferences/LastChoosenColorset @@ -0,0 +1 @@ +Colorsets-Set '/home/dakkar/.fvwm-crystal/colorsets/WhiteDesktop.cs' diff --git a/preferences/LastChoosenRecipe b/preferences/LastChoosenRecipe new file mode 100644 index 0000000..cfaa445 --- /dev/null +++ b/preferences/LastChoosenRecipe @@ -0,0 +1 @@ +Read '/home/dakkar/.fvwm-crystal/recipes/TopLine' diff --git a/preferences/LastChoosenWallpaper b/preferences/LastChoosenWallpaper new file mode 100644 index 0000000..b3fbef6 --- /dev/null +++ b/preferences/LastChoosenWallpaper @@ -0,0 +1 @@ +Wallpaper-Set '/usr/bin/../share/fvwm-crystal/fvwm/wallpapers/fvwm-crystal-dark2-1024x768.jpg' diff --git a/preferences/LastChoosenWindowDecoration b/preferences/LastChoosenWindowDecoration new file mode 100644 index 0000000..a3382ae --- /dev/null +++ b/preferences/LastChoosenWindowDecoration @@ -0,0 +1 @@ +Window-Decorations-Set '/home/dakkar/.fvwm-crystal/decorations/Dakkar' diff --git a/preferences/QuakeConsoleHeight b/preferences/QuakeConsoleHeight new file mode 100644 index 0000000..dd36499 --- /dev/null +++ b/preferences/QuakeConsoleHeight @@ -0,0 +1 @@ +SetEnv QuakeConsole_Height 436p diff --git a/preferences/QuakeConsoleTerminal b/preferences/QuakeConsoleTerminal new file mode 100644 index 0000000..2a10399 --- /dev/null +++ b/preferences/QuakeConsoleTerminal @@ -0,0 +1 @@ +FindCommand QuakeConsoleTerminal urxvt diff --git a/recipes/TopLine b/recipes/TopLine new file mode 100644 index 0000000..3cc7fff --- /dev/null +++ b/recipes/TopLine @@ -0,0 +1,282 @@ +# TopLine desktop (former "1.1" +# Written by: Maciej Delmanowski <harnir@post.pl> +# +# You can use folding to navigate this file + +# ImagePath {{{1 +SetEnv Icon_Theme "Default" +ImagePath /usr/share/icons/crystalsvg:$[FVWM_USERDIR]/icons/$[Icon_Theme]:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme] + +# Includes and FVWM modules {{{1 +Module FvwmCommandS + +# Default FVWM-Crystal functions, initialization {{{2 +Include components/desktop/FVWM-Crystal_Functions +Include components/functions/Clear-FVWM-Settings +Include components/desktop/FVWM-Crystal_Preferences +Include components/desktop/dakkar_Preferences +Append preferences/Startup + +# Preferred applications {{{2 +#Include components/functions/Screenshot-import +Include components/apps/XScreenSaver +Include components/apps/FvwmMiniConsole +Include components/apps/QuakeConsole +Include components/functions/NotificationAreaManager-$[NotificationAreaManager] +Include preferences/NotificationArea-Width +Include components/functions/Music-$[MusicPlayer] + +# Desktop & window bindings {{{2 +Include components/bindings/Desktop-RMB-OpenTerminal +Include components/bindings/Desktop-MMB-TogglePanels +Include components/bindings/Desktop-dakkar +Include components/bindings/Window-Basic +Include components/bindings/Window-Border +Include components/functions/Screen-Menu + +# Keyboard bindings {{{2 +Include components/desktop/Keyboard +#Include components/desktop/Keyboard_NumLock +#Include components/desktop/Numpad + +# Use window thumbnails instead of simple icons on the desktop {{{2 +Include components/desktop/Icon-Thumbnails +SetEnv ThumbWidth 192 +SetEnv ThumbHeight 192 + +# Various styles {{{2 +Include components/desktop/FVWM-Crystal_Styles +Include components/styles/CursorStyle-Border + +Style * DecorateTransient, StackTransientParent +Style * MinOverlapPlacementPenalties 1 0 0 0 0 50 + +# Desktop settings {{{1 +EdgeScroll 100 100 +EdgeResistance 250 1 30 +HideGeometryWindow Never +OpaqueMoveSize 100 +EdgeThickness 1 + +SnapAttraction 10 SameType Screen + +EWMH-Desktop 3 3 3 3 +EWMH-Panel-Top 30 + + +## rotations {{{2 +DestroyFunc LandscapeDisplay +AddToFunc LandscapeDisplay ++ I Exec xrandr -o normal -s 2800x1050 ++ I Exec ROX-set-horizontal ++ I Restart + +DestroyFunc PortraitDisplay +AddToFunc PortraitDisplay ++ I Exec xrandr -o left -s 1400x2100 ++ I Exec ROX-set-vertical ++ I Restart + +AddToFunc StartFunction ++ I Style mwatch !FixedPosition ++ I Style gkrellm !FixedPosition ++ I UpdateStyles ++ I All (mwatch) Move -0 +30p ++ I All (gkrellm) Move -0 -0 ++ I Style mwatch FixedPosition ++ I Style gkrellm FixedPosition + +DestroyMenu /Orientation +AddToMenu /Orientation ++ 'Landscape' LandscapeDisplay ++ 'Portrait' PortraitDisplay + +## }}}2 + +# Main menu panel {{{1 +All (FvwmButtons-Panel) Close +DestroyModuleConfig FvwmButtons-Panel: * +*FvwmButtons-Panel: Geometry -3+3@g +*FvwmButtons-Panel: BoxSize smart +*FvwmButtons-Panel: ActiveColorset $[cs_panel_active] +*FvwmButtons-Panel: Colorset $[cs_panel_inactive] +*FvwmButtons-Panel: Rows 1 +*FvwmButtons-Panel: Padding 1 1 +*FvwmButtons-Panel: Frame 0 + +*FvwmButtons-Panel: (7x1, Size 165 24, Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock-dakkar") + +# Music controls {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \ + Action (Mouse 1) Music-Next, \ + Action (Mouse 2) Nop, \ + Action (Mouse 3) Music-Prev, \ + Action (Mouse 4) Music-Forward, \ + Action (Mouse 5) Music-Backward) + +# Main music button, with some menus {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \ +Action (Mouse 1) Menu /Music $[MenuPosition_SW], \ +Action (Mouse 2) Music-GUI, \ +Action (Mouse 3) Music-PlayPause, \ +Action (Mouse 4) Mixer-Volume-Up 10, \ +Action (Mouse 5) Mixer-Volume-Down 10) + +# Window list {{{2 +*FvwmButtons-Panel: (1x1, Icon "22x22/fvwm-crystal/window-list.png", \ +Action (Mouse 1) Window-List "$[MenuPosition_SW]", \ +Action (Mouse 2) All (CurrentPage) PlaceAgain anim, \ +Action (Mouse 3) Window-List-Icons "$[MenuPosition_SW]") + +# diamond {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \ +Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_SW], \ +Action (Mouse 3) Wallpaper-Random $[FVWM_SYSTEMDIR]/wallpapers $[FVWM_USERDIR]/wallpapers ~/wallpapers /usr/local/share/wallpapers /usr/share/wallpapers) + +# Main "diamond" menu {{{2 +DestroyMenu /FVWM-Crystal +AddToMenu /FVWM-Crystal ++ '%22x22/fvwm-crystal/preferences-desktop-screensaver.png%$[gt.Screensaver]' Popup /Screensaver +#+ '%22x22/fvwm-crystal/preferences-desktop-theme.png%$[gt.Window decorations]' Popup /Window-Decorations ++ '%22x22/fvwm-crystal/colorsets.png%$[gt.Colorsets]' Popup /Colorsets ++ '%22x22/fvwm-crystal/preferences-desktop-wallpaper.png%$[gt.Wallpaper]' Popup /Wallpaper ++ '%22x22/fvwm-crystal/preferences-desktop.png%$[gt.Preferences]' Popup /Preferences ++ '%22x22/apps/display.png%$[gt.Screen orientation]' Popup /Orientation +#+ "" Nop +#+ '%22x22/fvwm-crystal/applications-development.png%$[gt.Developer menu]' Popup /Developer ++ '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.About FVWM-Crystal]' Include components/functions/About ++ '%22x22/fvwm-crystal/system-log-out.png%$[gt.Exit]' Popup /Exit +# }}}2 + +Module FvwmButtons FvwmButtons-Panel +Script components/scripts/FvwmScript-Clock-dakkar + +# Applications panel and menu generator {{{1 +All (ApplicationPanel) Close +DestroyModuleConfig ApplicationPanel: * +*ApplicationPanel: Geometry +3+3@g +*ApplicationPanel: BoxSize smart +*ApplicationPanel: ActiveColorset $[cs_panel_active] +*ApplicationPanel: Colorset $[cs_panel_inactive] +*ApplicationPanel: Rows 1 +*ApplicationPanel: Padding 1 1 +*ApplicationPanel: Frame 0 + +# fvwm-crystal.apps {{{2 + +# This creates the distribution-based panel button - defaut distribution +# icon, only menu is opened (no default app on the panel) +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --with=/Applications/$[FVWM_DISTROMENUNAME] --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=5 --sort=prio --panel-icons=standard --panel-action1=menu --panel-action2=none --panel-action3=menu --menu-pos=S --menuname-suffix="Panel" --check-execs' + +# This creates the main panel with applications - default app icon is +# shown on the panel, and can be launched using RMB; LMB opens the app +# category menu +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --without=/Applications/$[FVWM_DISTROMENUNAME] --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=3 --sort=prio --panel-icons=topapp --panel-action3=menu --panel-action2=none --panel-action1=topapp --menu-pos=S --menuname-suffix="Panel" --check-execs' + +# This creates the menu with applications available under Alt+Win_R +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=3 --sort=prio --panel-icons=topapp --panel-action3=menu --panel-action2=none --panel-action1=topapp --menu-pos=S --no-panel --check-execs' +# }}}2 + +Module FvwmButtons ApplicationPanel + +# Pager {{{1 +All (FvwmPager-l) Close +All (FvwmPager-r) Close +DestroyModuleConfig FvwmPager-l: * +DestroyModuleConfig FvwmPager-r: * + +SetEnv Desk_Pages_X "5" +SetEnv Desk_Pages_Y "5" + +PipeRead 'echo SetEnv FvwmPager_Width $((24*$[vp.width]/$[vp.height]*$[Desk_Pages_X])); echo SetEnv FvwmPager_Height $((24*$[Desk_Pages_Y]))' +PipeRead 'echo *FvwmPager-l: Geometry $[FvwmPager_Width]x$[FvwmPager_Height]+$(((($[vp.width]/2)-$[FvwmPager_Width])/2))+3' +PipeRead 'echo *FvwmPager-r: Geometry $[FvwmPager_Width]x$[FvwmPager_Height]+$(((3*($[vp.width]/2)-$[FvwmPager_Width])/2))+3' +PipeRead 'echo DesktopSize $[Desk_Pages_X]x$[Desk_Pages_Y]' + +*FvwmPager-l: MiniIcons +*FvwmPager-l: Font none +*FvwmPager-l: WindowBorderWidth 1 +#*FvwmPager-l: Window3DBorders +*FvwmPager-l: NoSeparators +*FvwmPager-l: UseSkipList +*FvwmPager-l: Colorset * $[cs_panel_inactive] +*FvwmPager-l: HilightColorset * $[cs_panel_active] +*FvwmPager-l: WindowColorsets $[cs_panel_wininactive] $[cs_panel_winactive] + +*FvwmPager-r: MiniIcons +*FvwmPager-r: Font none +*FvwmPager-r: WindowBorderWidth 1 +#*FvwmPager-r: Window3DBorders +*FvwmPager-r: NoSeparators +*FvwmPager-r: UseSkipList +*FvwmPager-r: Colorset * $[cs_panel_inactive] +*FvwmPager-r: HilightColorset * $[cs_panel_active] +*FvwmPager-r: WindowColorsets $[cs_panel_wininactive] $[cs_panel_winactive] + +Module FvwmPager FvwmPager-l +Module FvwmPager FvwmPager-r + +Module FvwmAuto 300 -passid -menterleave \ + "Silent raise_pager" \ + "Silent lower_pager" + +DestroyFunc lower_pager +AddToFunc lower_pager ++ I WindowId $0 (FvwmPager|mwatch) Layer 0 2 + +DestroyFunc raise_pager +AddToFunc raise_pager ++ I WindowId $0 (FvwmPager|mwatch) Layer 0 7 + +# Settings for icons on the desktop {{{1 +Style * IconBox 1300x600+3-3@g, IconFill left bottom, IconGrid 30 30 +Style * StickyIcon + +# Settings for FvwmIdent {{{1 +*FvwmIdent: Font "xft:Tahoma:pixelsize=12:Bold" +*FvwmIdent: Colorset $[cs_panel_active] + +# Settings for FvwmForm {{{1 +*FvwmFormDefault: Colorset $[cs_panel_inactive] +*FvwmFormDefault: ItemColorset $[cs_panel_active] +*FvwmFormDefault: Font "xft:Tahoma:pixelsize=13" +*FvwmFormDefault: InputFont "xft:Monospace:pixelsize=13" +*FvwmFormDefault: ButtonFont "xft:Tahoma:pixelsize=13:Bold" +*FvwmFormDefault: TimeoutFont "xft:Tahoma:pixelsize=13:Bold" + +SetEnv NotificationGeom 272 + +# Settings of stalonetray {{{2 +DestroyFunc NotificationArea-Stalone +AddToFunc NotificationArea-Stalone ++ I SetEnv trayer_ic_size "24" ++ I SetEnv trayer_area_width "$[trayer_width]" ++ I SetEnv trayer_area_eigth "24" ++ I SetEnv trayer_x "-$[NotificationGeom]" ++ I SetEnv trayer_y "+3" ++ I SetEnv trayer_ic_grav "W" ++ I SetEnv trayer_vert "" + +# Settings of trayer {{{2 +DestroyFunc NotificationArea-Trayer +AddToFunc NotificationArea-Trayer ++ I SetEnv trayer_width_t "request" ++ I SetEnv trayer_heigth_t "pixel" ++ I SetEnv trayer_edge "top" ++ I SetEnv trayer_align "right" ++ I SetEnv trayer_marge "$[NotificationGeom]" ++ I SetEnv trayer_dist "3" ++ I SetEnv trayer_width_w "" + +Test (EnvMatch NotificationAreaManager stalonetray) NotificationArea-Stalone +Test (EnvMatch NotificationAreaManager trayer) NotificationArea-Trayer +Test (!EnvMatch trayer_width 0) TrayerPanel + +#AddToFunc ExitFunction I Exec exec killall ivman +#AddToFunc StartFunction I Exec exec ivman + +# notification support +Include components/functions/Notify + +# ViM modeline {{{1 +# vim:foldmethod=marker:foldenable:foldlevel=0 diff --git a/recipes/TopLine-single b/recipes/TopLine-single new file mode 100644 index 0000000..fe145b4 --- /dev/null +++ b/recipes/TopLine-single @@ -0,0 +1,218 @@ +# TopLine desktop (former "1.1" +# Written by: Maciej Delmanowski <harnir@post.pl> +# +# You can use folding to navigate this file + +# ImagePath {{{1 +SetEnv Icon_Theme "Default" +ImagePath $[FVWM_USERDIR]/icons/$[Icon_Theme]:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme] + +# Includes and FVWM modules {{{1 +Module FvwmCommandS + +# Default FVWM-Crystal functions, initialization {{{2 +Include components/desktop/FVWM-Crystal_Functions +Include components/functions/Clear-FVWM-Settings +Include components/desktop/FVWM-Crystal_Preferences +Append preferences/Startup + +# Preferred applications {{{2 +#Include components/functions/Screenshot-import +Include components/apps/XScreenSaver +Include components/apps/FvwmMiniConsole +Include components/apps/QuakeConsole + +# Desktop & window bindings {{{2 +Include components/bindings/Desktop-RMB-OpenTerminal +Include components/bindings/Desktop-MMB-TogglePanels +Include components/bindings/Desktop-dakkar +Include components/bindings/Window-Basic +Include components/bindings/Window-Border + +# Keyboard bindings {{{2 +Include components/desktop/Keyboard +#Include components/desktop/Numpad +#Include components/desktop/Keyboard_NumLock + +# Use window thumbnails instead of simple icons on the desktop {{{2 +Include components/desktop/Icon-Thumbnails + +# Various styles {{{2 +Include components/desktop/FVWM-Crystal_Styles +Include components/styles/CursorStyle-Border + +Style * DecorateTransient, StackTransientParent +Style * MinOverlapPlacementPenalties 1 0 0 0 0 50 + +# Desktop settings {{{1 +EdgeScroll 100 100 +EdgeResistance 250 1 +HideGeometryWindow Never +OpaqueMoveSize 100 +EdgeThickness 1 + +SnapAttraction 10 SameType Screen + +EWMH-Desktop 3 3 3 3 +EWMH-Panel-Top 30 + +# Main menu panel {{{1 +All (FvwmButtons-Panel) Close +DestroyModuleConfig FvwmButtons-Panel: * +*FvwmButtons-Panel: Geometry -3+3 +*FvwmButtons-Panel: BoxSize smart +*FvwmButtons-Panel: ActiveColorset $[cs_panel_active] +*FvwmButtons-Panel: Colorset $[cs_panel_inactive] +*FvwmButtons-Panel: Rows 1 +*FvwmButtons-Panel: Padding 1 1 +*FvwmButtons-Panel: Frame 0 + +*FvwmButtons-Panel: (7x1, Size 165 24, Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock-dakkar") + +# Music controls {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \ + Action (Mouse 1) Music-Next, \ + Action (Mouse 2) Nop, \ + Action (Mouse 3) Music-Prev, \ + Action (Mouse 4) Music-Forward, \ + Action (Mouse 5) Music-Backward) + +# Main music button, with some menus {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \ +Action (Mouse 1) Menu /Music $[MenuPosition_SW], \ +Action (Mouse 2) Music-GUI, \ +Action (Mouse 3) Music-PlayPause, \ +Action (Mouse 4) Mixer-Volume-Up 10, \ +Action (Mouse 5) Mixer-Volume-Down 10) + +# Window list {{{2 +*FvwmButtons-Panel: (1x1, Icon "22x22/fvwm-crystal/window-list.png", \ +Action (Mouse 1) Window-List "$[MenuPosition_SW]", \ +Action (Mouse 2) All (CurrentPage) PlaceAgain anim, \ +Action (Mouse 3) Window-List-Icons "$[MenuPosition_SW]") + +# diamond {{{2 +*FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \ +Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_SW], \ +Action (Mouse 3) Wallpaper-Random $[FVWM_SYSTEMDIR]/wallpapers $[FVWM_USERDIR]/wallpapers ~/wallpapers /usr/local/share/wallpapers /usr/share/wallpapers) + +# Main "diamond" menu {{{2 +DestroyMenu /FVWM-Crystal +AddToMenu /FVWM-Crystal ++ '%22x22/fvwm-crystal/preferences-desktop-screensaver.png%$[gt.Screensaver]' Popup /Screensaver +#+ '%22x22/fvwm-crystal/preferences-desktop-theme.png%$[gt.Window decorations]' Popup /Window-Decorations ++ '%22x22/fvwm-crystal/colorsets.png%$[gt.Colorsets]' Popup /Colorsets ++ '%22x22/fvwm-crystal/preferences-desktop-wallpaper.png%$[gt.Wallpaper]' Popup /Wallpaper ++ '%22x22/fvwm-crystal/preferences-desktop.png%$[gt.Preferences]' Popup /Preferences +#+ "" Nop +#+ '%22x22/fvwm-crystal/applications-development.png%$[gt.Developer menu]' Popup /Developer ++ '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.About FVWM-Crystal]' Include components/functions/About ++ '%22x22/fvwm-crystal/system-log-out.png%$[gt.Exit]' Popup /Exit +# }}}2 + +Module FvwmButtons FvwmButtons-Panel +Script components/scripts/FvwmScript-Clock-dakkar + +# Applications panel and menu generator {{{1 +All (ApplicationPanel) Close +DestroyModuleConfig ApplicationPanel: * +*ApplicationPanel: Geometry +3+3 +*ApplicationPanel: BoxSize smart +*ApplicationPanel: ActiveColorset $[cs_panel_active] +*ApplicationPanel: Colorset $[cs_panel_inactive] +*ApplicationPanel: Rows 1 +*ApplicationPanel: Padding 1 1 +*ApplicationPanel: Frame 0 + +# fvwm-crystal.apps {{{2 + +# This creates the distribution-based panel button - defaut distribution +# icon, only menu is opened (no default app on the panel) +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --with=/Applications/$[FVWM_DISTROMENUNAME] --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=5 --sort=prio --panel-icons=standard --panel-action1=menu --panel-action2=none --panel-action3=menu --menu-pos=S --menuname-suffix="Panel" --check-execs' + +# This creates the main panel with applications - default app icon is +# shown on the panel, and can be launched using RMB; LMB opens the app +# category menu +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --without=/Applications/$[FVWM_DISTROMENUNAME] --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=3 --sort=prio --panel-icons=topapp --panel-action3=menu --panel-action2=none --panel-action1=topapp --menu-pos=S --menuname-suffix="Panel" --check-execs' + +# This creates the menu with applications available under Alt+Win_R +PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_USERDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=3 --sort=prio --panel-icons=topapp --panel-action3=menu --panel-action2=none --panel-action1=topapp --menu-pos=S --no-panel --check-execs' +# }}}2 + +Module FvwmButtons ApplicationPanel + +# Pager {{{1 +All (FvwmPager) Close +DestroyModuleConfig FvwmPager: * + +SetEnv Desk_Pages_X "5" +SetEnv Desk_Pages_Y "5" + +PipeRead 'echo SetEnv FvwmPager_Width $((28*$[Desk_Pages_X])); echo SetEnv FvwmPager_Height $((24*$[Desk_Pages_Y]))' +PipeRead 'echo *FvwmPager: Geometry $[FvwmPager_Width]x$[FvwmPager_Height]+$((($[vp.width]-$[FvwmPager_Width])/2))+3' +PipeRead 'echo DesktopSize $[Desk_Pages_X]x$[Desk_Pages_Y]' + +*FvwmPager: MiniIcons +*FvwmPager: Font none +*FvwmPager: WindowBorderWidth 1 +#*FvwmPager: Window3DBorders +*FvwmPager: NoSeparators +*FvwmPager: UseSkipList +*FvwmPager: Colorset * $[cs_panel_inactive] +*FvwmPager: HilightColorset * $[cs_panel_active] +*FvwmPager: WindowColorsets $[cs_panel_wininactive] $[cs_panel_winactive] + +Module FvwmPager + +Module FvwmAuto 300 -passid -menterleave \ + "Silent raise_pager" \ + "Silent lower_pager" + +DestroyFunc lower_pager +AddToFunc lower_pager ++ I WindowId $0 (FvwmPager|mwatch) Layer 0 2 + +DestroyFunc raise_pager +AddToFunc raise_pager ++ I WindowId $0 (FvwmPager|mwatch) Layer 0 7 + +# Settings for icons on the desktop {{{1 +Style * IconBox 1000x600+3-3, IconFill left bottom, IconGrid 30 30 +Style * StickyIcon + +# Settings for FvwmIdent {{{1 +*FvwmIdent: Font "xft:Tahoma:pixelsize=12:Bold" +*FvwmIdent: Colorset $[cs_panel_active] + +# Settings for FvwmForm {{{1 +*FvwmFormDefault: Colorset $[cs_panel_inactive] +*FvwmFormDefault: ItemColorset $[cs_panel_active] +*FvwmFormDefault: Font "xft:Tahoma:pixelsize=13" +*FvwmFormDefault: InputFont "xft:Monospace:pixelsize=13" +*FvwmFormDefault: ButtonFont "xft:Tahoma:pixelsize=13:Bold" +*FvwmFormDefault: TimeoutFont "xft:Tahoma:pixelsize=13:Bold" + +# Settings of Trayer {{{1 +AddToFunc ExitFunction I Exec exec killall trayer + +AddToFunc StartFunction I Exec exec trayer \ +--SetDockType false \ +--widthtype request \ +--heighttype pixel \ +--height 24 \ +--edge top \ +--align right \ +--transparent true \ +--alpha $[TrayerAlpha] \ +--tint $[TrayerTint] \ +--margin 272 \ +--distance 3 + +# mwatch + +Style mwatch NoTitle, NoHandles, WindowListSkip, BorderWidth 0, \ + CirculateSkip, StaysOnBottom, \ + Sticky, StickyAcrossPages, StickyAcrossDesks, FixedPosition + +# ViM modeline {{{1 +# vim:foldmethod=marker:foldenable:foldlevel=0 diff --git a/scripts/fvwm-screen.pl b/scripts/fvwm-screen.pl new file mode 100755 index 0000000..eea4a3c --- /dev/null +++ b/scripts/fvwm-screen.pl @@ -0,0 +1,37 @@ +#!/usr/bin/perl +use strict; +use warnings; + +sub sess_names { + map { m{^ \s* \d+ \. ([^.]+?) (?:\.\w+)? \s+}smx } @_; +} + +# Get list of detached/attached screen sessions and hostname +my @screen_out=qx(screen -list); + +my @detached_sessions=sess_names grep {m{\(Detached\)}} @screen_out; +my @attached_sessions=sess_names grep {m{\(Attached\)}} @screen_out; + +print <<'EOL' if @detached_sessions; + + "Reattach first" A screen -d -RR +EOL + +print <<'EOL'; + + "New Session" A screen +EOL + +print <<'EOL' if @detached_sessions; + + "" NoP +EOL + +print <<"EOL" for @detached_sessions; + + "$_ (a)" A screen -r "$_" +EOL + +print <<'EOL' if @attached_sessions; + + "" NoP +EOL + +print <<"EOL" for @attached_sessions; + + "$_ (d)" A screen -d "$_" +EOL diff --git a/wallpapers/drappo-wide.png b/wallpapers/drappo-wide.png new file mode 120000 index 0000000..350630b --- /dev/null +++ b/wallpapers/drappo-wide.png @@ -0,0 +1 @@ +/home/dakkar/pics/nausicaa/drappo-wide.png
\ No newline at end of file @@ -0,0 +1,14 @@ +#!/bin/sh +cd +export LC_ALL=en_US.UTF-8 +xgamma -rgamma 0.825 -ggamma 0.85 -bgamma 0.95 +xsetroot -solid black +./bin/nv-control-dpy --add-metamode 'DFP-0: 1400x1050 @1400x1050 +0+1050, DFP-1: 1400x1050 @1400x1050 +0+0' +export GTK_IM_MODULE="xim" +xrdb -load .Xdefaults +xset dpms 1800 3600 3600 +gkrellm & +~/bin/mwatch & + +exec dbus-launch fvwm-crystal + |