From 3e90bbfaec0953f2ef74fa2827ac41678ee11dee Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 13 Aug 2009 21:37:24 +0200 Subject: importing Crystal config into git --- .../20~Games/20~Block_Games/~flobopuyo~FloboPuyo | 3 + .../20~Games/20~Block_Games/~gemdropx~GemDrop X | 3 + .../20~Games/20~Block_Games/~shaaft~Shaaft | 3 + Applications/20~Games/Emulators/~scummvm~ScummVM | 3 + .../20~Games/Logic_Games/~briquolo~Briquolo | 3 + .../20~Games/Logic_Games/~einstein~Einstein | 3 + Applications/20~Games/Logic_Games/~kiki~Kiki | 3 + Applications/20~Games/Logic_Games/~late~Late | 3 + .../20~Games/Logic_Games/~monsterz~Monsterz | 3 + Applications/20~Games/Logic_Games/~pingus~Pingus | 3 + .../20~Games/Role_Playing/~nethack~NetHack | 3 + .../20~Games/Shooters/~powermanga~Powermanga | 3 + Applications/Development/IDE/10~glade-3~Glade-3 | 3 + Applications/Network/10~Web_Browsers/Flock | 0 .../Network/13~Email/30~claws-mail~Claws_Mail | 1 + .../13~Email/~sylpheed-claws~Sylpheed-Claws | 0 Applications/Network/IRC_clients/~xchat-2~X_Chat | 3 + FvwmNotify.pm | 20 + README.html | 436 +++++++++++++++++++++ README.rest.txt | 186 +++++++++ ROX-set-horizontal | 11 + ROX-set-vertical | 11 + amarok | 3 + colorsets/DarkDesktop.cs | 58 +++ colorsets/WhiteDesktop.cs | 58 +++ components/bindings/Desktop-dakkar | 4 + components/bindings/Music | 8 + components/bindings/Numpad-Focus | 13 + components/bindings/PageSwitch-Square | 11 + components/bindings/Pager-Square | 36 ++ components/bindings/TheLauncher | 2 + components/bindings/Window-Basic | 10 + components/bindings/Window-Control-Dakkar | 9 + components/bindings/Window-List | 11 + components/decorations/Buttons-os2-MiniIcon | 45 +++ components/desktop/Keyboard | 17 + components/desktop/dakkar_Preferences | 6 + components/functions/Mixer-amixer | 25 ++ components/functions/Music-amarok | 49 +++ components/functions/Notify | 12 + components/functions/Numpad | 57 +++ components/functions/Screen-Menu | 11 + components/scripts/FvwmScript-Clock-dakkar | 38 ++ components/styles/Application-Icons-22-32 | 2 + components/styles/Applications | 15 + decorations/Dakkar/Colorsets | 24 ++ decorations/Dakkar/README | 11 + decorations/Dakkar/Theme.os2 | 51 +++ decorations/Dakkar/window-active-arrows-down.png | Bin 0 -> 490 bytes decorations/Dakkar/window-active-arrows.png | Bin 0 -> 548 bytes decorations/Dakkar/window-active-close-down.png | Bin 0 -> 510 bytes decorations/Dakkar/window-active-close.png | Bin 0 -> 557 bytes decorations/Dakkar/window-active-empty-down.png | Bin 0 -> 363 bytes decorations/Dakkar/window-active-empty.png | Bin 0 -> 397 bytes decorations/Dakkar/window-active-iconify-down.png | Bin 0 -> 381 bytes decorations/Dakkar/window-active-iconify.png | Bin 0 -> 421 bytes decorations/Dakkar/window-active-maximize-down.png | Bin 0 -> 422 bytes decorations/Dakkar/window-active-maximize.png | Bin 0 -> 455 bytes decorations/Dakkar/window-active-options-down.png | Bin 0 -> 431 bytes decorations/Dakkar/window-active-options.png | Bin 0 -> 480 bytes decorations/Dakkar/window-active-title.png | Bin 0 -> 230 bytes decorations/Dakkar/window-inactive-arrows-down.png | Bin 0 -> 520 bytes decorations/Dakkar/window-inactive-arrows.png | Bin 0 -> 550 bytes decorations/Dakkar/window-inactive-close-down.png | Bin 0 -> 538 bytes decorations/Dakkar/window-inactive-close.png | Bin 0 -> 555 bytes decorations/Dakkar/window-inactive-empty-down.png | Bin 0 -> 380 bytes decorations/Dakkar/window-inactive-empty.png | Bin 0 -> 417 bytes .../Dakkar/window-inactive-iconify-down.png | Bin 0 -> 400 bytes decorations/Dakkar/window-inactive-iconify.png | Bin 0 -> 438 bytes .../Dakkar/window-inactive-maximize-down.png | Bin 0 -> 432 bytes decorations/Dakkar/window-inactive-maximize.png | Bin 0 -> 482 bytes .../Dakkar/window-inactive-options-down.png | Bin 0 -> 457 bytes decorations/Dakkar/window-inactive-options.png | Bin 0 -> 492 bytes decorations/Dakkar/window-inactive-title.png | Bin 0 -> 231 bytes icons/Default/22x22/apps/armagetronad.png | Bin 0 -> 1406 bytes icons/Default/22x22/apps/briquolo.png | Bin 0 -> 2731 bytes icons/Default/22x22/apps/claws-mail.png | 1 + icons/Default/22x22/apps/einstein.png | Bin 0 -> 1965 bytes icons/Default/22x22/apps/firefox.png | Bin 0 -> 3172 bytes icons/Default/22x22/apps/glade-3.png | 1 + icons/Default/22x22/apps/monsterz.png | Bin 0 -> 2424 bytes icons/Default/22x22/apps/pidgin.png | 1 + icons/Default/22x22/apps/scummvm.png | Bin 0 -> 3192 bytes icons/Default/22x22/apps/skype.png | Bin 0 -> 3029 bytes icons/Default/22x22/apps/thunderbird.png | Bin 0 -> 3270 bytes preferences/DefaultDesktopManager | 1 + preferences/DefaultMixer | 1 + preferences/DefaultMusicPlayer | 1 + preferences/DefaultTerminal | 1 + preferences/LastChoosenButtonModel | 1 + preferences/LastChoosenColorset | 1 + preferences/LastChoosenRecipe | 1 + preferences/LastChoosenWallpaper | 1 + preferences/LastChoosenWindowDecoration | 1 + preferences/QuakeConsoleHeight | 1 + preferences/QuakeConsoleTerminal | 1 + recipes/TopLine | 282 +++++++++++++ recipes/TopLine-single | 218 +++++++++++ scripts/fvwm-screen.pl | 37 ++ wallpapers/drappo-wide.png | 1 + xinitrc | 14 + 101 files changed, 1859 insertions(+) create mode 100755 Applications/20~Games/20~Block_Games/~flobopuyo~FloboPuyo create mode 100755 Applications/20~Games/20~Block_Games/~gemdropx~GemDrop X create mode 100755 Applications/20~Games/20~Block_Games/~shaaft~Shaaft create mode 100755 Applications/20~Games/Emulators/~scummvm~ScummVM create mode 100755 Applications/20~Games/Logic_Games/~briquolo~Briquolo create mode 100755 Applications/20~Games/Logic_Games/~einstein~Einstein create mode 100755 Applications/20~Games/Logic_Games/~kiki~Kiki create mode 100755 Applications/20~Games/Logic_Games/~late~Late create mode 100755 Applications/20~Games/Logic_Games/~monsterz~Monsterz create mode 100755 Applications/20~Games/Logic_Games/~pingus~Pingus create mode 100755 Applications/20~Games/Role_Playing/~nethack~NetHack create mode 100755 Applications/20~Games/Shooters/~powermanga~Powermanga create mode 100755 Applications/Development/IDE/10~glade-3~Glade-3 create mode 100644 Applications/Network/10~Web_Browsers/Flock create mode 120000 Applications/Network/13~Email/30~claws-mail~Claws_Mail create mode 100644 Applications/Network/13~Email/~sylpheed-claws~Sylpheed-Claws create mode 100755 Applications/Network/IRC_clients/~xchat-2~X_Chat create mode 100644 FvwmNotify.pm create mode 100644 README.html create mode 100644 README.rest.txt create mode 100755 ROX-set-horizontal create mode 100755 ROX-set-vertical create mode 100755 amarok create mode 100644 colorsets/DarkDesktop.cs create mode 100644 colorsets/WhiteDesktop.cs create mode 100644 components/bindings/Desktop-dakkar create mode 100644 components/bindings/Music create mode 100644 components/bindings/Numpad-Focus create mode 100644 components/bindings/PageSwitch-Square create mode 100644 components/bindings/Pager-Square create mode 100644 components/bindings/TheLauncher create mode 100644 components/bindings/Window-Basic create mode 100644 components/bindings/Window-Control-Dakkar create mode 100644 components/bindings/Window-List create mode 100644 components/decorations/Buttons-os2-MiniIcon create mode 100644 components/desktop/Keyboard create mode 100644 components/desktop/dakkar_Preferences create mode 100644 components/functions/Mixer-amixer create mode 100644 components/functions/Music-amarok create mode 100644 components/functions/Notify create mode 100644 components/functions/Numpad create mode 100644 components/functions/Screen-Menu create mode 100755 components/scripts/FvwmScript-Clock-dakkar create mode 100644 components/styles/Application-Icons-22-32 create mode 100644 components/styles/Applications create mode 100644 decorations/Dakkar/Colorsets create mode 100644 decorations/Dakkar/README create mode 100644 decorations/Dakkar/Theme.os2 create mode 100644 decorations/Dakkar/window-active-arrows-down.png create mode 100644 decorations/Dakkar/window-active-arrows.png create mode 100644 decorations/Dakkar/window-active-close-down.png create mode 100644 decorations/Dakkar/window-active-close.png create mode 100644 decorations/Dakkar/window-active-empty-down.png create mode 100644 decorations/Dakkar/window-active-empty.png create mode 100644 decorations/Dakkar/window-active-iconify-down.png create mode 100644 decorations/Dakkar/window-active-iconify.png create mode 100644 decorations/Dakkar/window-active-maximize-down.png create mode 100644 decorations/Dakkar/window-active-maximize.png create mode 100644 decorations/Dakkar/window-active-options-down.png create mode 100644 decorations/Dakkar/window-active-options.png create mode 100644 decorations/Dakkar/window-active-title.png create mode 100644 decorations/Dakkar/window-inactive-arrows-down.png create mode 100644 decorations/Dakkar/window-inactive-arrows.png create mode 100644 decorations/Dakkar/window-inactive-close-down.png create mode 100644 decorations/Dakkar/window-inactive-close.png create mode 100644 decorations/Dakkar/window-inactive-empty-down.png create mode 100644 decorations/Dakkar/window-inactive-empty.png create mode 100644 decorations/Dakkar/window-inactive-iconify-down.png create mode 100644 decorations/Dakkar/window-inactive-iconify.png create mode 100644 decorations/Dakkar/window-inactive-maximize-down.png create mode 100644 decorations/Dakkar/window-inactive-maximize.png create mode 100644 decorations/Dakkar/window-inactive-options-down.png create mode 100644 decorations/Dakkar/window-inactive-options.png create mode 100644 decorations/Dakkar/window-inactive-title.png create mode 100644 icons/Default/22x22/apps/armagetronad.png create mode 100644 icons/Default/22x22/apps/briquolo.png create mode 120000 icons/Default/22x22/apps/claws-mail.png create mode 100644 icons/Default/22x22/apps/einstein.png create mode 100644 icons/Default/22x22/apps/firefox.png create mode 120000 icons/Default/22x22/apps/glade-3.png create mode 100644 icons/Default/22x22/apps/monsterz.png create mode 120000 icons/Default/22x22/apps/pidgin.png create mode 100644 icons/Default/22x22/apps/scummvm.png create mode 100644 icons/Default/22x22/apps/skype.png create mode 100644 icons/Default/22x22/apps/thunderbird.png create mode 100644 preferences/DefaultDesktopManager create mode 100644 preferences/DefaultMixer create mode 100644 preferences/DefaultMusicPlayer create mode 100644 preferences/DefaultTerminal create mode 100644 preferences/LastChoosenButtonModel create mode 100644 preferences/LastChoosenColorset create mode 100644 preferences/LastChoosenRecipe create mode 100644 preferences/LastChoosenWallpaper create mode 100644 preferences/LastChoosenWindowDecoration create mode 100644 preferences/QuakeConsoleHeight create mode 100644 preferences/QuakeConsoleTerminal create mode 100644 recipes/TopLine create mode 100644 recipes/TopLine-single create mode 100755 scripts/fvwm-screen.pl create mode 120000 wallpapers/drappo-wide.png create mode 100755 xinitrc 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 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 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 @@ + + + + + + +Dakkar's fvwm-crystal settings + + + +
+

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.

+

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.

+
+
+

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.

+
+
+

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)

+
+
+

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.

+
+
+

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.

+

Then I wrote the Mixer-amixer and Music-amarok files to interact +with by chosen music programs.

+

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.

+

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).

+
+
+

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.

+
+
+ + 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 < + + + + Default + + + +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 < + + + + Vertical + + + +EOF diff --git a/amarok b/amarok new file mode 100755 index 0000000..de80bff --- /dev/null +++ b/amarok @@ -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 +# +# 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 +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 new file mode 100644 index 0000000..439b303 Binary files /dev/null and b/decorations/Dakkar/window-active-arrows-down.png differ diff --git a/decorations/Dakkar/window-active-arrows.png b/decorations/Dakkar/window-active-arrows.png new file mode 100644 index 0000000..7ae7c04 Binary files /dev/null and b/decorations/Dakkar/window-active-arrows.png differ diff --git a/decorations/Dakkar/window-active-close-down.png b/decorations/Dakkar/window-active-close-down.png new file mode 100644 index 0000000..e0bdf5a Binary files /dev/null and b/decorations/Dakkar/window-active-close-down.png differ diff --git a/decorations/Dakkar/window-active-close.png b/decorations/Dakkar/window-active-close.png new file mode 100644 index 0000000..cb32d9b Binary files /dev/null and b/decorations/Dakkar/window-active-close.png differ diff --git a/decorations/Dakkar/window-active-empty-down.png b/decorations/Dakkar/window-active-empty-down.png new file mode 100644 index 0000000..5464cdd Binary files /dev/null and b/decorations/Dakkar/window-active-empty-down.png differ diff --git a/decorations/Dakkar/window-active-empty.png b/decorations/Dakkar/window-active-empty.png new file mode 100644 index 0000000..3d00ffb Binary files /dev/null and b/decorations/Dakkar/window-active-empty.png differ diff --git a/decorations/Dakkar/window-active-iconify-down.png b/decorations/Dakkar/window-active-iconify-down.png new file mode 100644 index 0000000..08fb621 Binary files /dev/null and b/decorations/Dakkar/window-active-iconify-down.png differ diff --git a/decorations/Dakkar/window-active-iconify.png b/decorations/Dakkar/window-active-iconify.png new file mode 100644 index 0000000..a075000 Binary files /dev/null and b/decorations/Dakkar/window-active-iconify.png differ diff --git a/decorations/Dakkar/window-active-maximize-down.png b/decorations/Dakkar/window-active-maximize-down.png new file mode 100644 index 0000000..69b47e2 Binary files /dev/null and b/decorations/Dakkar/window-active-maximize-down.png differ diff --git a/decorations/Dakkar/window-active-maximize.png b/decorations/Dakkar/window-active-maximize.png new file mode 100644 index 0000000..2d0ce4d Binary files /dev/null and b/decorations/Dakkar/window-active-maximize.png differ diff --git a/decorations/Dakkar/window-active-options-down.png b/decorations/Dakkar/window-active-options-down.png new file mode 100644 index 0000000..e67784b Binary files /dev/null and b/decorations/Dakkar/window-active-options-down.png differ diff --git a/decorations/Dakkar/window-active-options.png b/decorations/Dakkar/window-active-options.png new file mode 100644 index 0000000..7eaf4f4 Binary files /dev/null and b/decorations/Dakkar/window-active-options.png differ diff --git a/decorations/Dakkar/window-active-title.png b/decorations/Dakkar/window-active-title.png new file mode 100644 index 0000000..d6df41b Binary files /dev/null and b/decorations/Dakkar/window-active-title.png differ diff --git a/decorations/Dakkar/window-inactive-arrows-down.png b/decorations/Dakkar/window-inactive-arrows-down.png new file mode 100644 index 0000000..d26ba21 Binary files /dev/null and b/decorations/Dakkar/window-inactive-arrows-down.png differ diff --git a/decorations/Dakkar/window-inactive-arrows.png b/decorations/Dakkar/window-inactive-arrows.png new file mode 100644 index 0000000..a4191df Binary files /dev/null and b/decorations/Dakkar/window-inactive-arrows.png differ diff --git a/decorations/Dakkar/window-inactive-close-down.png b/decorations/Dakkar/window-inactive-close-down.png new file mode 100644 index 0000000..646dfc3 Binary files /dev/null and b/decorations/Dakkar/window-inactive-close-down.png differ diff --git a/decorations/Dakkar/window-inactive-close.png b/decorations/Dakkar/window-inactive-close.png new file mode 100644 index 0000000..b837725 Binary files /dev/null and b/decorations/Dakkar/window-inactive-close.png differ diff --git a/decorations/Dakkar/window-inactive-empty-down.png b/decorations/Dakkar/window-inactive-empty-down.png new file mode 100644 index 0000000..8f3d319 Binary files /dev/null and b/decorations/Dakkar/window-inactive-empty-down.png differ diff --git a/decorations/Dakkar/window-inactive-empty.png b/decorations/Dakkar/window-inactive-empty.png new file mode 100644 index 0000000..0a3a3c6 Binary files /dev/null and b/decorations/Dakkar/window-inactive-empty.png differ diff --git a/decorations/Dakkar/window-inactive-iconify-down.png b/decorations/Dakkar/window-inactive-iconify-down.png new file mode 100644 index 0000000..51e6df0 Binary files /dev/null and b/decorations/Dakkar/window-inactive-iconify-down.png differ diff --git a/decorations/Dakkar/window-inactive-iconify.png b/decorations/Dakkar/window-inactive-iconify.png new file mode 100644 index 0000000..f3d6976 Binary files /dev/null and b/decorations/Dakkar/window-inactive-iconify.png differ diff --git a/decorations/Dakkar/window-inactive-maximize-down.png b/decorations/Dakkar/window-inactive-maximize-down.png new file mode 100644 index 0000000..daaaf8e Binary files /dev/null and b/decorations/Dakkar/window-inactive-maximize-down.png differ diff --git a/decorations/Dakkar/window-inactive-maximize.png b/decorations/Dakkar/window-inactive-maximize.png new file mode 100644 index 0000000..9147053 Binary files /dev/null and b/decorations/Dakkar/window-inactive-maximize.png differ diff --git a/decorations/Dakkar/window-inactive-options-down.png b/decorations/Dakkar/window-inactive-options-down.png new file mode 100644 index 0000000..3664e8d Binary files /dev/null and b/decorations/Dakkar/window-inactive-options-down.png differ diff --git a/decorations/Dakkar/window-inactive-options.png b/decorations/Dakkar/window-inactive-options.png new file mode 100644 index 0000000..371b8a9 Binary files /dev/null and b/decorations/Dakkar/window-inactive-options.png differ diff --git a/decorations/Dakkar/window-inactive-title.png b/decorations/Dakkar/window-inactive-title.png new file mode 100644 index 0000000..3266749 Binary files /dev/null and b/decorations/Dakkar/window-inactive-title.png differ diff --git a/icons/Default/22x22/apps/armagetronad.png b/icons/Default/22x22/apps/armagetronad.png new file mode 100644 index 0000000..908122c Binary files /dev/null and b/icons/Default/22x22/apps/armagetronad.png differ diff --git a/icons/Default/22x22/apps/briquolo.png b/icons/Default/22x22/apps/briquolo.png new file mode 100644 index 0000000..6cf11bf Binary files /dev/null and b/icons/Default/22x22/apps/briquolo.png differ 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 new file mode 100644 index 0000000..4c36a6a Binary files /dev/null and b/icons/Default/22x22/apps/einstein.png differ diff --git a/icons/Default/22x22/apps/firefox.png b/icons/Default/22x22/apps/firefox.png new file mode 100644 index 0000000..200624c Binary files /dev/null and b/icons/Default/22x22/apps/firefox.png differ 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 new file mode 100644 index 0000000..9e226d9 Binary files /dev/null and b/icons/Default/22x22/apps/monsterz.png differ 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 new file mode 100644 index 0000000..a5dc26f Binary files /dev/null and b/icons/Default/22x22/apps/scummvm.png differ diff --git a/icons/Default/22x22/apps/skype.png b/icons/Default/22x22/apps/skype.png new file mode 100644 index 0000000..f1c3bbf Binary files /dev/null and b/icons/Default/22x22/apps/skype.png differ diff --git a/icons/Default/22x22/apps/thunderbird.png b/icons/Default/22x22/apps/thunderbird.png new file mode 100644 index 0000000..0f5719f Binary files /dev/null and b/icons/Default/22x22/apps/thunderbird.png differ 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 +# +# 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 +# +# 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 diff --git a/xinitrc b/xinitrc new file mode 100755 index 0000000..3014f0d --- /dev/null +++ b/xinitrc @@ -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 + -- cgit v1.2.3