Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

two desktop layouts: Horizontal and Vertical (in progress)

  • Loading branch information...
commit baa464721addf6fedb6aca6b9e8553374bfc8fae 1 parent 9c07dd6
@ThomasFunk ThomasFunk authored
View
52 .settings
@@ -0,0 +1,52 @@
+#***********************************************************************
+# Environment settings
+#***********************************************************************
+# DO NOT EDIT! WILL BE CHANGED BY FVWMFORM-BASESETUP!
+
+#-----------------------------------------------------------------------
+# The actual theme. Be changed dynamically via FuncChangeDecor
+#-----------------------------------------------------------------------
+InfoStoreAdd used_theme Ambience
+
+#-----------------------------------------------------------------------
+# Each Nightshade theme is located in $[FVWM_USERDIR]/themes
+# Here the path to the actual theme will be set
+# Be changed dynamically via FuncChangeDecor
+#-----------------------------------------------------------------------
+SetEnv NS_THEMEDIR $[FVWM_USERDIR]/themes/$[infostore.used_theme]
+
+#-----------------------------------------------------------------------
+# wallpaper directory path.
+#-----------------------------------------------------------------------
+InfoStoreAdd wallpaper_dir $[FVWM_USERDIR]/wallpapers
+
+#-----------------------------------------------------------------------
+# default used font for all Fvwm parts
+#-----------------------------------------------------------------------
+InfoStoreAdd used_font Arial
+
+#-----------------------------------------------------------------------
+# default font size
+#-----------------------------------------------------------------------
+InfoStoreAdd fontsize 12
+
+#-----------------------------------------------------------------------
+# The actual layout
+#-----------------------------------------------------------------------
+InfoStoreAdd used_layout Horizontal
+
+
+#***********************************************************************
+# Default applications
+#***********************************************************************
+
+#-----------------------------------------------------------------------
+# terminal
+#-----------------------------------------------------------------------
+InfoStoreAdd default_terminal konsole
+
+#-----------------------------------------------------------------------
+# browser
+#-----------------------------------------------------------------------
+InfoStoreAdd default_browser firefox
+
View
9 Changelog
@@ -1,4 +1,13 @@
History:
+07/31/2012 V 0.5
+- roll out some infostore variables to .settings so that an update of the
+ config won't destroy user settings
+- create two desktop layouts: Horizontal and Vertical
+- replace xclock with conky (because of transparent background)
+- fix bug that FuncDesktopCreateScreenshot creates now the whole desktop
+ not only the active window
+
+
07/31/2012 V 0.4.5
- update relevant parts related to Fvwm Default Config V 0.21.7
- add some comments and delete unused lines
View
20 bin/Changelog_fvwm-xdg-menu
@@ -1,20 +0,0 @@
-History:
-06/16/2012 V 1.99.3
-- fix bug if a menu dir is listed in xdg_config_dirs from python-xdg
- which is not available
-- add if __name__ == '__main__': line. It scopes in which the
- interpreter’s main program executes
-- fix problem that in some cases in the execute string a '%U' or so stand
- -> produced an error message or e.g. on open Suse program won't start
-
-06/10/2012 V 1.99.2
-- fix indention bug
-
-06/10/2012 V 1.99.1
-- fix bug that not applications.menu will searched for and then the newest
-
-05/22/2012 V 1.99
-- change directory for converted icons (icon_dir) from ~/.fvwm/icons to ~/.fvwm/menu-icons
-- change behavior if -f (force) is set. Now svg icons will convert to png
-- change default exec_command from "Exec exec" to "Exec"
-- add new option "-w", "--with-titles": Menus have titles
View
112 bin/FvwmForm-BaseSetup
@@ -0,0 +1,112 @@
+#-----------------------------------------------------------------------
+# File: FvwmForm-BaseSetup
+# Version: 1.1.0
+# Licence: GPL 2
+#
+# Description: Script to configure default settings
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 08/01/2012
+# Changed: 08/12/2012
+#-----------------------------------------------------------------------
+
+DestroyModuleConfig FvwmForm-BaseSetup: *
+*FvwmForm-BaseSetup: WarpPointer
+# Layout
+*FvwmForm-BaseSetup: Line center
+*FvwmForm-BaseSetup: Text "Fvwm-Nightshade Base Setup"
+*FvwmForm-BaseSetup: Line center
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Use this setup to configure default settings."
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line center
+*FvwmForm-BaseSetup: Text "---------- Decoration (Windows, Menus) ----------"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Theme: "
+*FvwmForm-BaseSetup: Input Theme 15 "Ambience"
+*FvwmForm-BaseSetup: Text " (Others: Default, Air)"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Font: "
+*FvwmForm-BaseSetup: Input Font 15 "Arial"
+*FvwmForm-BaseSetup: Text " (E.g. Sans, Helvetia, Verdana)"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Font size:"
+*FvwmForm-BaseSetup: Input Fontsize 3 "12"
+*FvwmForm-BaseSetup: Text " (E.g. 10, 11, 13)"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Line center
+*FvwmForm-BaseSetup: Text "------- Panels (Iconman, Pager, Systray) -------"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Layout: "
+*FvwmForm-BaseSetup: Selection SelItype single
+*FvwmForm-BaseSetup: Choice LayoutH LayoutH on "Horizontal (Panels on top/bottom)"
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Choice LayoutV LayoutV off "Vertical (Panels on right/left side)"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Line center
+*FvwmForm-BaseSetup: Text "----------------- Applications -----------------"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Terminal: "
+*FvwmForm-BaseSetup: Input Terminal 15 "xterm"
+*FvwmForm-BaseSetup: Text " (E.g. konsole, aterm, rxvt)"
+*FvwmForm-BaseSetup: Line
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text "Used Browser: "
+*FvwmForm-BaseSetup: Input Browser 15 "firefox"
+*FvwmForm-BaseSetup: Text " (E.g. chromium, seamonkey)"
+
+*FvwmForm-BaseSetup: Line left
+*FvwmForm-BaseSetup: Text " "
+*FvwmForm-BaseSetup: Line expand
+*FvwmForm-BaseSetup: Button quit "Apply & Save"
+*FvwmForm-BaseSetup: Command $(Theme? FuncWriteInfoStoreToFileAndSet used_theme $(Theme) $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(LayoutH? FuncWriteInfoStoreToFileAndSet used_layout Horizontal $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(LayoutH?!rm -f $[FVWM_USERDIR]/.layout; ln -s $[FVWM_USERDIR]/layouts/Horizontal $[FVWM_USERDIR]/.layout)
+*FvwmForm-BaseSetup: Command $(LayoutV? FuncWriteInfoStoreToFileAndSet used_layout Vertical $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(LayoutV?!rm -f $[FVWM_USERDIR]/.layout; ln -s $[FVWM_USERDIR]/layouts/Vertical $[FVWM_USERDIR]/.layout)
+*FvwmForm-BaseSetup: Command $(Font? FuncWriteInfoStoreToFileAndSet used_font $(Font) $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(Fontsize? FuncWriteInfoStoreToFileAndSet fontsize $(Fontsize) $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(Terminal? FuncWriteInfoStoreToFileAndSet default_terminal $(Terminal) $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command $(Browser? FuncWriteInfoStoreToFileAndSet default_browser $(Browser) $[FVWM_USERDIR]/.settings)
+*FvwmForm-BaseSetup: Command Restart
+
+# Before saving the data, remove any previously saved data:
+*FvwmForm-BaseSetup: Command DestroyModuleConfig SavedBaseSetup: *
+*FvwmForm-BaseSetup: Command !( /bin/echo \
+ "# This file last created by FvwmForm-BaseSetup on: `/bin/date`."; /bin/echo \
+ '*SavedBaseSetup: Theme $(Theme) ' ; /bin/echo \
+ '*SavedBaseSetup: LayoutH $(LayoutH?on) ' ; /bin/echo \
+ '*SavedBaseSetup: LayoutV $(LayoutV?on) ' ; /bin/echo \
+ '*SavedBaseSetup: Font $(Font) ' ; /bin/echo \
+ '*SavedBaseSetup: Fontsize $(Fontsize) ' ; /bin/echo \
+ '*SavedBaseSetup: Terminal $(Terminal) ' ; /bin/echo \
+ '*SavedBaseSetup: Browser $(Browser) ' ; /bin/echo \
+) > ${FVWM_USERDIR}/.FvwmForm-BaseSetup
+
+*FvwmForm-BaseSetup: Button restart "Reset"
+*FvwmForm-BaseSetup: Button quit "Cancel"
+*FvwmForm-BaseSetup: Command Nop
+# Tell FvwmForm to read vars from the .FvwmForm-BaseSetup file:
+*FvwmForm-BaseSetup: UseData .FvwmForm-BaseSetup *SavedBaseSetup
View
46 bin/built-trayapplist
@@ -0,0 +1,46 @@
+#-----------------------------------------------------------------------
+# File: built-trayapplist.sh
+# Version: 1.0.0
+# Licence: GPL 2
+#
+# Description: shell script to generate a list of actual available
+# applets in systray (stalonetray)
+#
+# Parameters: built-trayapplist.sh <stalonetray_logfile> <applist_file>
+#
+# Remarks: stalonetray must started with --log-level info and
+# output redirected with 2>stalonetray_logfile
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 08/13/2012
+# Changed:
+#-----------------------------------------------------------------------
+
+#!/bin/bash
+
+infile=$1
+outfile=$2
+
+# first delete outfile
+if [ -f $outfile ]
+then
+ rm -f $outfile
+fi
+
+# get windows ids of last available applets
+windows_ids=`sed -n '/tray status/h;/tray status/!H;$!b;x;p' $infile |sed -n '/tray status/,/-----------------------------------/p' | grep wid |cut -d" " -f3`
+
+for id in $windows_ids
+do
+ #echo id: $id
+ # get PID of the applet
+ PID=`xprop -id $id _NET_WM_PID |cut -d" " -f3`
+ #echo PID: $PID
+ # get command string
+ cmd=`ps -p $PID -o cmd=`
+ #echo cmd: $cmd
+ # put cmd in outfile
+ echo $cmd >> $outfile
+done
+
+exit 0
View
211 bin/fvwm-xdg-menu.py
@@ -1,211 +0,0 @@
-#!/usr/bin/python
-
-#-----------------------------------------------------------------------
-# File: fvwm-xdg-menu.py
-# Version: 1.99.4
-# Licence: GPL 2
-#
-# Description: creates a Fvwm menu with xdg entries
-#
-# Author: Piotr Zielinski (http://www.cl.cam.ac.uk/~pz215/)
-# Created: 12/03/2005
-# Changed: 06/16/2012 by Thomas Funk <t.funk@web.de>
-#-----------------------------------------------------------------------
-
-# This script searches for the newest menu file conforming to the
-# XDG Desktop Menu Specification, and outputs the FVWM equivalent
-# to the standard output.
-#
-# http://standards.freedesktop.org/menu-spec/latest/
-
-# Syntax:
-#
-# fvwm-xdg-menu.py [options] ...
-#
-# Example:
-#
-# fvwm-xdg-menu.py -w -f -s 16 -m FvwmMenu
-
-# This script requires the python-xdg module, which in Debian can be
-# installed by typing
-#
-# apt-get install python-xdg
-
-import sys
-import xdg.Menu
-import xdg.IconTheme
-import xdg.Locale
-import optparse
-import os.path
-import os
-from xdg.DesktopEntry import *
-import fnmatch
-import re
-
-usage = """
-
- %prog [options] ...
-
-This script searches for the newest menu file conforming to the XDG Desktop Menu Specification, and outputs the FVWM equivalent to the standard output.
-
- http://standards.freedesktop.org/menu-spec/latest/
-
-Examples:
-
- Writes menu with top level name 'Applications' to file
- %prog -m Applications > menu
-
- Creates menu with titles, convert icons to 16x16, menu top level name is 'FvwmMenu'
- %prog -w -f -s 16 -m FvwmMenu
-
- Creates menu with oxygen icons and take the menu entries from kde4-applications.menu
- %prog -t oxygen -p 'kde4-'"""
-
-parser = optparse.OptionParser(usage=usage)
-parser.add_option("-e", "--exec", dest="exec_command", type="string",
- default="Exec",
- help="FVWM command used to execute programs [Exec]")
-parser.add_option("-s", "--size", dest="icon_size", type="int",
- default=24, help="Used icon size [24]")
-parser.add_option("-f", "--force", action="store_true", dest="force",
- default=False,
- help="Force icon size (requires imagemagick and writes \
- into ICON_DIR)")
-parser.add_option("-i", "--icon-dir", dest="icon_dir", type="string",
- default="~/.fvwm/menu-icons",
- help="Directory for converted icons [~/.fvwm/menu-icons]")
-parser.add_option("-t", "--theme", dest="theme", type="string",
- default="gnome",
- help="Used icon theme [gnome]")
-parser.add_option("-m", "--top-menu", dest="top", type="string",
- default="",
- help="Top menu name")
-parser.add_option("-w", "--with-titles", action="store_true", dest="with_titles",
- default=False,
- help="Menus have titles [no]")
-parser.add_option("-p", "--prefix", dest="menu_prefix", type="string",
- default="",
- help="Force special menu e.g. 'gnome-' [none]")
-
-
-(options, args) = parser.parse_args()
-
-def printtext(text):
- print text.encode("utf-8")
-
-def geticonfile(icon, size=options.icon_size, theme=options.theme):
- iconpath = xdg.IconTheme.getIconPath(icon, size, theme, ["png", "xpm"])
- if not iconpath == None:
- extension = os.path.splitext(iconpath)[1]
-
- if not iconpath:
- return None
-
- if not options.force:
- return iconpath
-
- if iconpath.find("%ix%i" % (size, size)) >= 0: # ugly hack!!!
- return iconpath
-
- #printtext(iconpath)
-
- if not os.path.isdir(os.path.expanduser(options.icon_dir)):
- os.system("mkdir " + os.path.expanduser(options.icon_dir))
-
- iconfile = os.path.join(os.path.expanduser(options.icon_dir),
- "%ix%i-" % (size, size) +
- os.path.basename(iconpath))
- if extension == '.svg':
- iconfile = iconfile.replace('.svg', '.png')
-
- os.system("if test \\( ! -f '%s' \\) -o \\( '%s' -nt '%s' \\) ; then convert '%s' -resize %i '%s' ; fi"%
- (iconfile, iconpath, iconfile, iconpath, size, iconfile))
-
- return iconfile
-
-
-def getdefaulticonfile(command):
- if command.startswith("Popup"):
- return geticonfile("gnome-fs-directory")
- else:
- return geticonfile("gnome-applications")
-
-def printmenu(name, icon, command):
- iconfile = geticonfile(icon) or getdefaulticonfile(command) or icon
- printtext('+ "%s%%%s%%" %s' % (name, iconfile, command))
-
-def parsemenu(menu, name=""):
- m = re.compile('%[A-Z]?', re.I)
- if not name:
- name = menu.getPath()
-
- printtext('DestroyMenu "%s"' % name)
- if options.with_titles:
- printtext('AddToMenu "%s" "%s" Title' % (name, name))
- else:
- printtext('AddToMenu "%s"' % name)
-
- for entry in menu.getEntries():
- if isinstance(entry, xdg.Menu.Menu):
- printmenu(entry.getName(), entry.getIcon(),
- 'Popup "%s"' % entry.getPath())
- elif isinstance(entry, xdg.Menu.MenuEntry):
- desktop = DesktopEntry(entry.DesktopEntry.getFileName())
- # eliminate '%U' etc behind execute string
- execProgram = m.sub('', desktop.getExec())
- printmenu(desktop.getName(), desktop.getIcon(),
- options.exec_command + " " + execProgram)
- else:
- printtext('# not supported: ' + str(entry))
-
- print
- for entry in menu.getEntries():
- if isinstance(entry, xdg.Menu.Menu):
- parsemenu(entry)
-
-# ----- Main ----------------------------------------------------------------
-if __name__ == '__main__':
- # $XDG_CONFIG_DIRS/menus/${XDG_MENU_PREFIX}applications.menu
- # get the wanted or the applications.menu. If not exist the newest
- pattern = ''
-
- if not options.menu_prefix == '':
- if options.menu_prefix == 'debian-':
- pattern = 'debian-menu.menu'
- else:
- xdg_menu_prefix = options.menu_prefix
-
- if pattern == '':
- pattern = options.menu_prefix + 'applications.menu'
-
-
- # check first if file exist
- xdg_file = ''
- stop = False
- for dir in xdg_config_dirs:
- dir = dir + '/menus'
- if os.path.exists(dir):
- dir_list = os.listdir(dir)
- for filename in fnmatch.filter(dir_list, pattern):
- xdg_file = os.path.join(dir, filename)
- stop = True
- if stop == True:
- break
-
- # if no file found take the newes
- if xdg_file == '':
- pattern = '*' + pattern
-
- newest_mtime = 0
-
- for dir in xdg_config_dirs:
- dir = dir + '/menus'
- if os.path.exists(dir):
- dir_list = os.listdir(dir)
- for filename in fnmatch.filter(dir_list, pattern):
- temp_mtime = os.path.getmtime(os.path.join(dir, filename))
- if temp_mtime > newest_mtime:
- newest_mtime = temp_mtime
- xdg_file = os.path.join(dir, filename)
-
- parsemenu(xdg.Menu.parse(xdg_file), options.top)
View
44 bin/start-programs
@@ -0,0 +1,44 @@
+#-----------------------------------------------------------------------
+# File: start-programs.sh
+# Version: 3.0.0
+# Licence: GPL 2
+#
+# Description: shell script to execute command strings which will be
+# found in <infile>
+#
+# Parameters: start-programs <type> <infile>
+#
+# Remarks: <type> is a name printed in [] in ~/.xsessions-errors
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 08/13/2012
+# Changed:
+#-----------------------------------------------------------------------
+
+#!/bin/bash
+
+type=$1
+infile=$2
+
+# check whether infile exist
+if [ -f $infile ]
+then
+ # read startup file
+ commands="$(cat $infile)"
+ while IFS= read -r
+ do
+ echo $REPLY
+ # check if prog already running
+ prog_started=`ps -ef|grep -c "$REPLY" |grep -v grep`
+ if [ $prog_started -gt 1 ]
+ then
+ echo [Fvwm-Nightshade][$type]: \'$REPLY\' is already running. Skipping. >> ~/.xsession-errors
+ else
+ echo [Fvwm-Nightshade][$type]: \'$REPLY\' not running. Will be started now. >> ~/.xsession-errors
+ $REPLY &
+ sleep 1
+ fi
+ done <<< "$commands"
+ unset IFS
+fi
+exit 0
View
34 bin/start-programs.sh
@@ -1,34 +0,0 @@
-########################################################################
-# File: start-programs.sh
-# Version: 2.0.0
-# Licence: GPL 2
-#
-# Description: shell script for starting apps automatically which will
-# be found in $FVWM_USERDIR/.autostart
-#
-# Author: Thomas Funk <t.funk@web.de>
-# Created: 2007
-# Changed: 06/08/2012
-########################################################################
-
-# !/bin/bash
-
-# check whether starup file exist
-if [ -f ${FVWM_USERDIR}/.autostart ]
-then
- # read startup file
- autostart=`cat ${FVWM_USERDIR}/.autostart`
- for program in $autostart
- do
- prog_started=`ps -ef |grep -c $program`
- if [ $prog_started -gt 1 ]
- then
- echo [Autostart]: $program is already started. Skipping. >> ~/.xsession-errors
- else
- echo [Autostart]: $program not started. Will be started now. >> ~/.xsession-errors
- $program &
- sleep 5
- fi
- done
-fi
-exit 0
View
186 config
@@ -15,7 +15,7 @@
#
#
# Fvwm Nightshade Configuration
-InfoStoreAdd ns_version 0.4.5
+InfoStoreAdd ns_version 0.5
# Copyright (C) 2012
#
# Authors:
@@ -146,6 +146,12 @@ InfoStoreAdd ns_version 0.4.5
# 1.1 Paths, Variables (SetEnv, InfoStore)
#=======================================================================
+#-----------------------------------------------------------------------
+# Set shell for Exec command
+#-----------------------------------------------------------------------
+ExecUseShell /bin/bash
+
+
#***********************************************************************
# 1.2.1 Paths and directories
#***********************************************************************
@@ -174,23 +180,6 @@ ImagePath /usr/share/icons:/usr/share/icons/wm-icons:+
ImagePath +:/usr/share/pixmaps:/usr/share/pixmaps/fvwm
#-----------------------------------------------------------------------
-# The actual theme. Will be changed dynamically via FuncChangeDecor
-#-----------------------------------------------------------------------
-InfoStoreAdd used_theme Ambience
-
-#-----------------------------------------------------------------------
-# Each Nightshade theme is located in $[FVWM_USERDIR]/themes
-# Here the path to the actual theme will set
-# Will be set every time FuncChangeDecor is called
-#-----------------------------------------------------------------------
-SetEnv NS_THEMEDIR $[FVWM_USERDIR]/themes/$[infostore.used_theme]
-
-#-----------------------------------------------------------------------
-# wallpaper path. Should be changed to the right directory
-#-----------------------------------------------------------------------
-InfoStoreAdd wallpaper_dir $[FVWM_USERDIR]/wallpapers
-
-#-----------------------------------------------------------------------
# actual wallpaper
#-----------------------------------------------------------------------
InfoStoreAdd fvwm_wallpaper $[FVWM_USERDIR]/.wallpaper
@@ -199,44 +188,18 @@ InfoStoreAdd fvwm_wallpaper $[FVWM_USERDIR]/.wallpaper
#***********************************************************************
# 1.2.2 Environment settings
#***********************************************************************
-#-----------------------------------------------------------------------
-# default used font
-#-----------------------------------------------------------------------
-InfoStoreAdd used_font "Arial"
-
-#-----------------------------------------------------------------------
-# default font size
-#-----------------------------------------------------------------------
-InfoStoreAdd fontsize 12
-
-#-----------------------------------------------------------------------
-# Adjust ratio to calculate resolution dependant things
-#-----------------------------------------------------------------------
-PipeRead "echo InfoStoreAdd ratio `perl -e 'printf \"%.1f\",log($[vp.width]*$[vp.height])/log(10)-log(1024*768)/log(10)+1'`"
-
-#-----------------------------------------------------------------------
-# actual pager height. Needed for the "top bar" modules
-#-----------------------------------------------------------------------
-PipeRead 'echo InfoStoreAdd fvwm_pager_height $(($[vp.height]/25))'
-
+# These settings are rolled out to $[FVWM_USERDIR]/.settings
+# They can configured with the FvwmForm-BaseSetup
+Read $[FVWM_USERDIR]/.settings
#***********************************************************************
-# 1.2.3 Default applications
+# 1.2.3 Others
#***********************************************************************
-#-----------------------------------------------------------------------
-# terminal
-#-----------------------------------------------------------------------
-InfoStoreAdd default_terminal konsole
#-----------------------------------------------------------------------
-# browser
+# Adjust ratio to calculate resolution dependant things
#-----------------------------------------------------------------------
-InfoStoreAdd default_browser firefox
-
-
-#***********************************************************************
-# 1.2.3 Others
-#***********************************************************************
+PipeRead "echo InfoStoreAdd ratio `perl -e 'printf \"%.1f\",log($[vp.width]*$[vp.height])/log(10)-log(1024*768)/log(10)+1'`"
#-----------------------------------------------------------------------
# used for 'Switching focus between windows. (ALT-Tab)' functionality
@@ -323,8 +286,6 @@ Read $[NS_THEMEDIR]/colorsets
# 2.4 Window Decorations
#=======================================================================
-
-
#=======================================================================
# 2.5 Theme related decorations
#=======================================================================
@@ -356,16 +317,6 @@ Xinerama on
Emulate mwm
#-----------------------------------------------------------------------
-# Set the desk top size in units of physical screen size
-#
-# +-----+-----+-----+-----+
-# | | | | |
-# +-----+-----+-----+-----+
-#
-#-----------------------------------------------------------------------
-DeskTopSize 4x1
-
-#-----------------------------------------------------------------------
# How hard it should be to change the desktop viewport by moving the
# mouse over the edge of the screen
#-----------------------------------------------------------------------
@@ -385,12 +336,6 @@ EdgeScroll 100 100
EdgeThickness 1
#-----------------------------------------------------------------------
-# Define bands at the edge of the screen. It is used to compute the
-# Working Area: EwmhBaseStruts left right top bottom
-#-----------------------------------------------------------------------
-PipeRead 'echo EwmhBaseStruts 0 0 $(($[infostore.fvwm_pager_height]+3)) 0'
-
-#-----------------------------------------------------------------------
# IconBox defines the area where FVWM will place any windows that are
# in the iconic state:
# IconBox left top right bottom
@@ -844,7 +789,7 @@ Key Tab A M FuncSwitchWindow
#-----------------------------------------------------------------------
# Print screenshot of whole desktop (page)
#-----------------------------------------------------------------------
-Key Print A M FuncDesktopCreateScreenshot
+Key Print A M FuncDesktopCreateScreenshot 5
#***********************************************************************
@@ -1319,24 +1264,20 @@ AddToFunc StartFunction
#-----------------------------------------------------------------------
# activate module for sound event actions
#+ I Module FvwmEvent FvwmEventSound
-# start systemtray
-+ I Test (Init) Test (f $[NS_MODULEDIR]/SysTray) Read $[NS_MODULEDIR]/SysTray
-+ I TestRc (Match) FuncStartSysTray
-#-----------------------------------------------------------------------
-# start systray applets
-+ I Test (Init) FuncStartSystrayApplets
#-----------------------------------------------------------------------
# start xscreensaver daemon for locking
+ I Test (x xscreensaver-command) Test (Init) Exec xscreensaver -no-splash
-# start window list module
-+ I Test (f $[NS_MODULEDIR]/GlobalIconMan) Read $[NS_MODULEDIR]/GlobalIconMan
-+ I TestRc (Match) Module FvwmIconMan FvwmGlobalIconMan
-# start a Pager
-+ I Test (f $[NS_MODULEDIR]/Pager) Read $[NS_MODULEDIR]/Pager
-+ I TestRc (Match) Module FvwmPager
-# starts a time and date module - Parameter:"I"=12h, "H"=24h
-+ I Test (Init) Read $[NS_MODULEDIR]/DigitalXclock
-+ I TestRc (Match) DigitalXclock H
+#-----------------------------------------------------------------------
+# start FvwmForm-BaseSetup if not configured
++ I Test (!f $[FVWM_USERDIR]/.FvwmForm-BaseSetup) FvwmForm FvwmForm-BaseSetup
+
+#-----------------------------------------------------------------------
+# Set layout
+#-----------------------------------------------------------------------
++ I Test (-f $[FVWM_USERDIR]/.layout) Read $[FVWM_USERDIR]/.layout
+
+AddToFunc StartFunction
+#-----------------------------------------------------------------------
# start programs found in .autostart
+ I Test (Init) FuncAutoStartPrograms
@@ -1403,15 +1344,23 @@ AddToFunc FuncChangeDecor
+ I FuncRemoveAllButtons
+ I Read $[NS_THEMEDIR]/colorsets
+ I Read $[NS_THEMEDIR]/decor
-#+ I PipeRead 'sed -i --follow-symlinks "s/^InfoStoreAdd used_theme.*/InfoStoreAdd used_theme $0/" $FVWM_USERDIR/config'
-+ I PipeRead 'sed -i --follow-symlinks "s/^InfoStoreAdd used_theme.*/InfoStoreAdd used_theme $0/" $FVWM_USERDIR/.customize'
++ I FuncWriteInfoStoreToFileAndSet used_theme $0 $[FVWM_USERDIR]/.settings
++ I ReloadLayoutParts $[infostore.used_layout]
+#+ I ReloadLayoutParts
-DestroyFunc FuncWriteToCustomize
-AddToFunc FuncWriteToCustomize
-+ I Test (!f $FVWM_USERDIR/.customize) PipeRead 'touch $FVWM_USERDIR/.customize'
-+ I PipeRead `case $0 in \
- UsedTheme) sed -i --follow-symlinks "s/^InfoStoreAdd used_theme.*/InfoStoreAdd used_theme $1/" $FVWM_USERDIR/.customize;;
+#-----------------------------------------------------------------------
+# Update/Create an InfoStore variable in a file
+# FuncWriteInfoStoreToFile <var_name> <var_value> <file>
+#-----------------------------------------------------------------------
+DestroyFunc FuncWriteInfoStoreToFileAndSet
+AddToFunc FuncWriteInfoStoreToFileAndSet
++ I PipeRead 'if [ `grep -c $0 $2` -gt 0 ] ; then \
+ sed -i --follow-symlinks "s/^InfoStoreAdd $0.*/InfoStoreAdd $0 $1/" $2; \
+ else \
+ sed -i --follow-symlinks "$ a\InfoStoreAdd $0 $1" $2; \
+ fi;'
++ I InfoStoreAdd $0 $1
#-----------------------------------------------------------------------
# Prints a message in .xsession-errors
@@ -1427,44 +1376,44 @@ AddToFunc FuncPrintDbgMsg
DestroyFunc FuncAppCheck
AddToFunc FuncAppCheck
# xterm
-+ I Test (!x xterm) FuncPrintDbgMsg "[AppCheck]" "xterm (view, edit) not installed"
++ I Test (!x xterm) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "xterm (view, edit) not installed"
# xclock
-+ I Test (!x xclock) FuncPrintDbgMsg "[AppCheck]" "xclock (date & time) not installed"
++ I Test (!x conky) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "conky (clock, cpu) not installed"
# default terminal
-+ I Test (!x $[infostore.default_terminal]) FuncPrintDbgMsg "[AppCheck]" "default terminal $[infostore.default_terminal] not installed"
++ I Test (!x $[infostore.default_terminal]) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "default terminal $[infostore.default_terminal] not installed"
# default browser
-+ I Test (!x $[infostore.default_browser]) FuncPrintDbgMsg "[AppCheck]" "default browser $[infostore.default_browser] not installed"
++ I Test (!x $[infostore.default_browser]) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "default browser $[infostore.default_browser] not installed"
# xscreensaver
-+ I Test (!x xscreensaver-command) FuncPrintDbgMsg "[AppCheck]" "xscreensaver (lock) not installed"
++ I Test (!x xscreensaver-command) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "xscreensaver (lock) not installed"
# Esetroot in package eterm
-+ I Test (!x Esetroot) FuncPrintDbgMsg "[AppCheck]" "eterm (esetroot for background) not installed"
++ I Test (!x Esetroot) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "eterm (esetroot for background) not installed"
# import in package imagemagick
-+ I Test (!x import) FuncPrintDbgMsg "[AppCheck]" "imagemagick (import for screenshot, thumbs) not installed"
++ I Test (!x import) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "imagemagick (import for screenshot, thumbs) not installed"
# stalonetray
-+ I Test (!x stalonetray) FuncPrintDbgMsg "[AppCheck]" "stalonetray (systray) not installed"
++ I Test (!x stalonetray) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "stalonetray (systray) not installed"
# systray app volumeicon
-+ I Test (!x volumeicon) FuncPrintDbgMsg "[AppCheck]" "volumeicon (systray volume control) not installed"
++ I Test (!x volumeicon) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "volumeicon (systray volume control) not installed"
# systray app fdpowermon
-+ I Test (!x fdpowermon) FuncPrintDbgMsg "[AppCheck]" "fdpowermon (systray pm control) not installed"
++ I Test (!x fdpowermon) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "fdpowermon (systray pm control) not installed"
# systray app nm-applet
-+ I Test (!x nm-applet) FuncPrintDbgMsg "[AppCheck]" "nm-applet (systray network control) not installed"
++ I Test (!x nm-applet) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "nm-applet (systray network control) not installed"
# systray app bluetooth-applet
-+ I Test (!x bluetooth-applet) FuncPrintDbgMsg "[AppCheck]" "bluetooth-applet (systray bluetooth-applet) not installed"
++ I Test (!x bluetooth-applet) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "bluetooth-applet (systray bluetooth-applet) not installed"
# Suspend, hibernate pm-is-supported
-+ I Test (!x pm-is-supported) FuncPrintDbgMsg "[RequiredAppCheck]" "pm-utils (suspend, hibernate) not installed"
++ I Test (!x pm-is-supported) FuncPrintDbgMsg "[Fvwm-Nightshade][AppCheck]" "pm-utils (suspend, hibernate) not installed"
#-----------------------------------------------------------------------
# Starts a system tray "module"
#-----------------------------------------------------------------------
-DestroyFunc FuncStartSysTray
-AddToFunc FuncStartSysTray
-+ I Test (x stalonetray) PipeRead `echo Exec exec stalonetray \
- -d all \
- -geometry 1x1+$(($[vp.width]/4*3))+1 \
- --grow-gravity SE \
- --kludges fix_window_pos,force_icons_size,use_icons_hints \
- --background="#7a7664"`
-+ I TestRc (Match) Wait stalonetray
+#DestroyFunc FuncStartSysTray
+#AddToFunc FuncStartSysTray
+#+ I Test (x stalonetray) PipeRead `echo Exec exec stalonetray \
+# -d all \
+# -geometry 1x1+$(($[vp.width]/4*3))+1 \
+# --grow-gravity SE \
+# --kludges fix_window_pos,force_icons_size,use_icons_hints \
+# --background="#7a7664"`
+#+ I TestRc (Match) Wait stalonetray
#-----------------------------------------------------------------------
# Starts system tray applets like network, sound, etc
@@ -1487,7 +1436,8 @@ AddToFunc FuncStartSystrayApplets
#-----------------------------------------------------------------------
DestroyFunc FuncAutoStartPrograms
AddToFunc FuncAutoStartPrograms
-+ I Exec exec start-programs.sh
++ I Test (-f $[FVWM_USERDIR]/.autostart) \
+ Exec exec $[FVWM_USERDIR]/bin/start-programs Autostart $[FVWM_USERDIR]/.autostart
#-----------------------------------------------------------------------
# Starts a FvwmConsole
@@ -1548,7 +1498,8 @@ AddToFunc FuncWindowCreateScreenshot
DestroyFunc FuncDesktopCreateScreenshot
AddToFunc FuncDesktopCreateScreenshot
+ I PipeRead 'echo InfoStoreAdd picpath "$[FVWM_USERDIR]/screenshot-`date +%F-%k%M%S`.png"'
-+ I Test (x import) PipeRead 'import -window root $[picpath]'
+#+ I Test (x import) PipeRead 'import -window root $[picpath]'
++ I Test (x import) PipeRead 'sleep $0; import -window root -quality 100 -silent $[infostore.picpath]'
+ I TestRc (Match) FuncShowMessage "$[gt.Screenshot Info for the desktop]" \
"Screenshot created: $[infostore.picpath]"
+ I TestRc (!Match) FuncShowMessage "$[gt.Screenshot Info for the desktop]" \
@@ -2119,12 +2070,14 @@ AddToMenu MenuConfiguration
+ "$[gt.Sc&reen Saver]%menu/display.xpm%" Popup MenuXScreenSaver
+ "$[gt.&Decoration]%menu/themes.xpm%" Popup MenuDecoration
+ "$[gt.Fvwm Form &Defaults]%menu/configuration.xpm%" Module FvwmForm FvwmForm-Form
++ "$[gt.Fvwm-&Nightshade Setup]%$[FVWM_USERDIR]/artwork/nightshade_16x16.png%" FvwmForm FvwmForm-BaseSetup
+ "$[gt.&System Bell]%menu/sound.xpm%" FvwmScript FvwmScript-BellSetup
+ "$[gt.&Screen]%menu/display.xpm%" FvwmScript FvwmScript-ScreenSetup
+ "" Nop
+ "$[gt.&Show Colorsets]%menu/colors.xpm%" FuncFvwmShowColorsets
+ "$[gt.&Tail .xsession-errors]%menu/information.xpm%" FuncViewFileTail ".xsession-errors" $[HOME]/.xsession-errors
+
#-----------------------------------------------------------------------
# Sub menu for keyboard configuration
#-----------------------------------------------------------------------
@@ -2383,7 +2336,7 @@ DestroyMenu MenuWindowUtility
AddToMenu MenuWindowUtility
+ "$[gt.Window Utility]" Title
+ "%menu/window.xpm%$[gt.Create &Screenshot] Shift-Ctrl+Print" Pick (CirculateHit) FuncWindowCreateScreenshot
-+ "%menu/display.xpm%$[gt.&Desktop Screenshot] Alt+Print" Pick (CirculateHit) FuncDesktopCreateScreenshot
++ "%menu/display.xpm%$[gt.&Desktop Screenshot] Alt+Print" FuncDesktopCreateScreenshot 5
+ "" Nop
+ "%menu/window-raise.xpm%$[gt.Stays On &Top]" Pick (CirculateHit) Layer 0 6
+ "%menu/window-raise.xpm%$[gt.Layer &+1]" Pick (CirculateHit) Layer +1
@@ -2405,3 +2358,4 @@ AddToMenu MenuDesktopOps
+ "Help%menu/help.xpm%" Popup MenuHelp
+ "" Nop
+ "$[gt.Window Operations]" Popup MenuWindowOpsFull
+
View
125 layouts/Horizontal
@@ -0,0 +1,125 @@
+#-----------------------------------------------------------------------
+# File: Horizontal
+# Version: 1.0.0
+# Licence: GPL 2
+#
+# Description: Layout of object positions on desktop
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 08/16/2012
+# Changed: <MM/DD/YYYY>
+#-----------------------------------------------------------------------
+# Top
+#
+# +--------+ +--------+ +--------+
+# | | | | | |
+# +--------+ +--------+ +--------+
+# IconManager Pager Panel
+#
+#-----------------------------------------------------------------------
+
+########################################################################
+# Positioning
+########################################################################
+
+#=======================================================================
+# Pager
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Set the desk top size in units of physical screen size
+#
+# +-----+-----+-----+-----+
+# | | | | |
+# +-----+-----+-----+-----+
+#
+#-----------------------------------------------------------------------
+DeskTopSize 4x1
+
+#-----------------------------------------------------------------------
+# actual pager height. Needed for the "top bar" modules also
+#-----------------------------------------------------------------------
+PipeRead "echo InfoStoreAdd pager_height `perl -e 'printf \"%.0f\",$[vp.height]/(21*$[infostore.ratio])'`"
+
+#-----------------------------------------------------------------------
+# actual pager width
+#-----------------------------------------------------------------------
+PipeRead "echo InfoStoreAdd pager_width `perl -e 'printf \"%.0f\",$[vp.width]/(4*$[infostore.ratio])'`"
+
+#-----------------------------------------------------------------------
+# FvwmPager geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd pager_geometry $[infostore.pager_width]x$[infostore.pager_height]+$(($[vp.width]/2-$[infostore.pager_width]/2))+0'
+
+
+#=======================================================================
+# Icon Manager (WinList per Page)
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# actual GlobalIconMan width
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd iconman_button_width $(($[vp.width]/4))'
+
+#-----------------------------------------------------------------------
+# GlobalIconMan geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd iconman_button_geometry $[infostore.iconman_button_width]x0'
+
+#-----------------------------------------------------------------------
+# GlobalIconMan Manager Geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd iconman_manager_geometry 1x0+0+0'
+
+
+#=======================================================================
+# FvwmButtons Panel
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Panel geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd panel_geometry $[infostore.iconman_button_width]x$[infostore.pager_height]-0+0''
+
+
+#=======================================================================
+# Others
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Define bands at the edge of the screen. It is used to compute the
+# Working Area: EwmhBaseStruts left right top bottom
+#-----------------------------------------------------------------------
+PipeRead 'echo EwmhBaseStruts 0 0 $(($[infostore.pager_height]+3)) 0'
+
+
+
+#=======================================================================
+# Functions
+#=======================================================================
+
+AddToFunc StartFunction
+# start window list module
++ I Test (f $[NS_MODULEDIR]/GlobalIconMan) Read $[NS_MODULEDIR]/GlobalIconMan
++ I TestRc (Match) Module FvwmIconMan FvwmGlobalIconMan
+#-----------------------------------------------------------------------
+# start a Pager
++ I Test (f $[NS_MODULEDIR]/Pager) Read $[NS_MODULEDIR]/Pager
++ I TestRc (Match) Module FvwmPager
+#-----------------------------------------------------------------------
+# start horizontal panel
++ I Test Test (f $[NS_MODULEDIR]/HorizontalPanel) Read $[NS_MODULEDIR]/HorizontalPanel
++ I TestRc (Match) Module FvwmButtons HorizontalPanel
+#-----------------------------------------------------------------------
+# start systray applets
++ I Wait stalonetray
++ I TestRc (Match) FuncStartSystrayApplets
+
+
+DestroyFunc ReloadLayoutParts
+AddToFunc ReloadLayoutParts
++ I PipeRead '$FVWM_USERDIR/bin/built-trayapplist $FVWM_USERDIR/.test.log $FVWM_USERDIR/.trayapplist'
++ I Read $[NS_MODULEDIR]/HorizontalPanel
++ I FuncRestartModuleByAlias FvwmButtons HorizontalPanel
++ I Wait stalonetray
++ I Exec exec $[FVWM_USERDIR]/bin/start-programs reload_applets $[FVWM_USERDIR]/.trayapplist
View
132 layouts/Vertical
@@ -0,0 +1,132 @@
+#-----------------------------------------------------------------------
+# File: Vertical
+# Version: 1.0.0
+# Licence: GPL 2
+#
+# Description: Layout of object positions on desktop
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 08/16/2012
+# Changed: <MM/DD/YYYY>
+#-----------------------------------------------------------------------
+# Top right
+#
+# +--------+
+# | | Panel
+# +--------+
+# +--------+
+# | | Pager
+# +--------+
+# +--------+
+# | | IconManager
+# +--------+
+#
+#-----------------------------------------------------------------------
+
+########################################################################
+# Positioning
+########################################################################
+
+
+#=======================================================================
+# FvwmButtons Panel
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Panel width
+#-----------------------------------------------------------------------
+PipeRead "echo InfoStoreAdd panel_width `perl -e 'printf \"%.0f\",$[vp.width]/(8*$[infostore.ratio])'`"
+
+#-----------------------------------------------------------------------
+# Panel height
+#-----------------------------------------------------------------------
+InfoStoreAdd panel_rows 20
+PipeRead "echo InfoStoreAdd row_height `perl -e 'printf \"%.0f\",$[vp.height]/(83*$[infostore.ratio])'`"
+PipeRead 'echo InfoStoreAdd panel_height $(($[infostore.row_height]*$[infostore.panel_rows]))'
+
+#-----------------------------------------------------------------------
+# Panel geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd panel_geometry $[infostore.panel_width]x$[infostore.panel_height]-0+0'
+
+
+#=======================================================================
+# Pager
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Set the desk top size in units of physical screen size
+#
+# +-----+-----+
+# | | |
+# +-----+-----+
+# | | |
+# +-----+-----+
+#-----------------------------------------------------------------------
+DeskTopSize 2x2
+
+#-----------------------------------------------------------------------
+# actual pager height
+#-----------------------------------------------------------------------
+PipeRead "echo InfoStoreAdd pager_height `perl -e 'printf \"%.0f\",$[vp.height]/(10*$[infostore.ratio])'`"
+
+
+#-----------------------------------------------------------------------
+# FvwmPager geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd pager_geometry $[infostore.panel_width]x$[infostore.pager_height]-0+$(($[infostore.panel_height]+4))'
+
+
+#=======================================================================
+# Icon Manager (WinList per Page)
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# GlobalIconMan Button Geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd iconman_button_geometry $[infostore.panel_width]x0'
+
+#-----------------------------------------------------------------------
+# GlobalIconMan Manager Geometry
+#-----------------------------------------------------------------------
+PipeRead 'echo InfoStoreAdd iconman_manager_geometry 1x0-0+$(($[infostore.panel_height]+$[infostore.pager_height]+8))'
+
+
+#=======================================================================
+# Others
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Define bands at the edge of the screen. It is used to compute the
+# Working Area: EwmhBaseStruts left right top bottom
+#-----------------------------------------------------------------------
+PipeRead 'echo EwmhBaseStruts 0 $(($[infostore.panel_width])) 0 0'
+
+
+
+AddToFunc StartFunction
+# start window list module
++ I Test (f $[NS_MODULEDIR]/GlobalIconMan) Read $[NS_MODULEDIR]/GlobalIconMan
++ I TestRc (Match) Module FvwmIconMan FvwmGlobalIconMan
+#-----------------------------------------------------------------------
+# start a Pager
++ I Test (f $[NS_MODULEDIR]/Pager) Read $[NS_MODULEDIR]/Pager
++ I TestRc (Match) Module FvwmPager
+#-----------------------------------------------------------------------
+# start horizontal panel
++ I Test Test (f $[NS_MODULEDIR]/VerticalPanel) Read $[NS_MODULEDIR]/VerticalPanel
++ I TestRc (Match) Module FvwmButtons VerticalPanel
+#-----------------------------------------------------------------------
+# start systray applets
+#+ I Wait stalonetray
+#+ I TestRc (Match) FuncStartSystrayApplets
+#-----------------------------------------------------------------------
+
+
+DestroyFunc ReloadLayoutParts
+AddToFunc ReloadLayoutParts
++ I PipeRead '$FVWM_USERDIR/bin/built-trayapplist $FVWM_USERDIR/.test.log $FVWM_USERDIR/.trayapplist'
++ I Read $[NS_MODULEDIR]/HorizontalPanel
++ I FuncRestartModuleByAlias FvwmButtons VerticalPanel
++ I Wait stalonetray
++ I Exec exec $[FVWM_USERDIR]/bin/start-programs reload_applets $[FVWM_USERDIR]/.trayapplist
View
72 layouts/rc-files/conkyrc_clock
@@ -0,0 +1,72 @@
+# Use Xft?
+use_xft yes
+xftalpha 1
+text_buffer_size 2048
+
+# Update interval in seconds
+update_interval 1
+
+# This is the number of times Conky will update before quitting.
+# Set to zero to run forever.
+total_run_times 0
+
+# Create own window instead of using desktop (required in nautilus)
+background no
+own_window yes
+own_window_class conky_clock
+own_window_transparent yes
+own_window_argb_value 255
+own_window_type normal
+own_window_hints undecorated,skip_taskbar,skip_pager
+
+# Use double buffering (reduces flicker, may not work for everyone)
+double_buffer yes
+
+# Minimum size of text area
+#minimum_size 10 10
+
+# Draw shades?
+draw_shades no
+
+# Draw outlines?
+draw_outline no
+
+# Draw borders around text
+draw_borders no
+
+# Stippled borders?
+stippled_borders 0
+
+# border margins
+border_inner_margin 0
+border_outer_margin 0
+
+# border width
+border_width 0
+
+# Default colors and also border colors
+default_color B1B1B1 #default text color
+default_shade_color black
+#default_outline_color white
+#own_window_colour black
+
+# Text alignment
+alignment top_left
+
+# Gap between borders of screen and text
+# same thing as passing -x at command line
+#gap_x 10
+#gap_y 1
+
+# Subtract file system buffers from used memory?
+no_buffers no
+
+# set to yes if you want all text to be in uppercase
+uppercase no
+
+# Force UTF8? note that UTF8 support required XFT
+override_utf8_locale yes
+
+
+TEXT
+# empty, cause set via commandline
View
67 layouts/rc-files/conkyrc_cpu
@@ -0,0 +1,67 @@
+# Update interval in seconds
+update_interval 1
+
+# This is the number of times Conky will update before quitting.
+# Set to zero to run forever.
+total_run_times 0
+
+# Create own window instead of using desktop (required in nautilus)
+background no
+own_window yes
+own_window_class conky_cpu
+own_window_transparent yes
+own_window_argb_value 255
+own_window_type normal
+#own_window_hints undecorated,skip_taskbar,skip_pager
+
+# Use double buffering (reduces flicker, may not work for everyone)
+double_buffer yes
+
+# Minimum size of text area
+#minimum_size 1 1
+
+# Draw shades?
+draw_shades no
+
+# Draw outlines?
+draw_outline no
+
+# Draw borders around graph
+draw_graph_borders no
+
+# Stippled borders?
+stippled_borders 0
+
+# border margins
+border_inner_margin 0
+border_outer_margin 0
+
+# border width
+border_width 0
+
+# Default colors and also border colors
+default_color B1B1B1 #default text color
+default_shade_color black
+#default_outline_color white
+#own_window_colour black
+
+# Text alignment
+alignment top_left
+
+# Gap between borders of screen and text
+# same thing as passing -x at command line
+#gap_x 10
+#gap_y 1
+
+# Subtract file system buffers from used memory?
+no_buffers no
+
+# number of cpu samples to average
+# set to 1 to disable averaging
+cpu_avg_samples 2
+
+# Force UTF8? note that UTF8 support required XFT
+override_utf8_locale yes
+
+TEXT
+# empty, cause set via commandline
View
100 modules/GlobalIconMan
@@ -1,41 +1,51 @@
########################################################################
-# GlobalIconMan
+# File: GlobalIconMan
+# Version: 0.1.0
+# Licence: GPL 2
+#
+# Description: shows a windows list of all windows in the actual page
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 06/08/2012
+# Changed:
########################################################################
#***********************************************************************
# Global FvwmIconMan ("Taskbar")
#***********************************************************************
-Style FvwmGlobalIconMan !Title, Sticky, WindowListSkip, StaysOnBottom, HandleWidth 1, !State 1
+Style FvwmGlobalIconMan !Title, Sticky, WindowListSkip, StaysOnBottom, HandleWidth 2, !State 1
#Style FvwmGlobalIconMan TitleAtRight, !Button 1, !Button 2, !Button 4, !Button 6, Sticky, WindowListSkip, StaysOnBottom, HandleWidth 1, !State 1
DestroyModuleConfig FvwmGlobalIconMan: *
-*FvwmGlobalIconMan: 1 IconName GlobalIconMan
-*FvwmGlobalIconMan: 1 Title "Global IconMan"
-PipeRead 'echo *FvwmGlobalIconMan: 1 ButtonGeometry $(($[vp.width]/3))x0'
-PipeRead 'echo *FvwmGlobalIconMan: 1 ManagerGeometry 1x0+$(($[infostore.fontsize]/2))+0'
+*FvwmGlobalIconMan: 1 IconName GlobalIconMan
+*FvwmGlobalIconMan: 1 Title "Global IconMan"
+#PipeRead 'echo *FvwmGlobalIconMan: 1 ButtonGeometry $(($[vp.width]/4))x0'
+*FvwmGlobalIconMan: 1 ButtonGeometry $[infostore.iconman_button_geometry]
+#*FvwmGlobalIconMan: 1 ManagerGeometry 1x0+0+0
+*FvwmGlobalIconMan: 1 ManagerGeometry $[infostore.iconman_manager_geometry]
-*FvwmGlobalIconMan: 1 Colorset 10
-*FvwmGlobalIconMan: 1 IconColorset 12
-*FvwmGlobalIconMan: 1 PlainColorset 10
-*FvwmGlobalIconMan: 1 SelectColorset 11
-*FvwmGlobalIconMan: 1 FocusColorset 11
-*FvwmGlobalIconMan: 1 FocusAndSelectColorset 11
+*FvwmGlobalIconMan: 1 Colorset 10
+*FvwmGlobalIconMan: 1 IconColorset 12
+*FvwmGlobalIconMan: 1 PlainColorset 10
+*FvwmGlobalIconMan: 1 SelectColorset 11
+*FvwmGlobalIconMan: 1 FocusColorset 11
+*FvwmGlobalIconMan: 1 FocusAndSelectColorset 11
-*FvwmGlobalIconMan: 1 FollowFocus true
-*FvwmGlobalIconMan: 1 IconButton down
-*FvwmGlobalIconMan: 1 PlainButton up
-*FvwmGlobalIconMan: 1 SelectButton down
-*FvwmGlobalIconMan: 1 FocusButton up
-*FvwmGlobalIconMan: 1 FocusAndSelectButton down
+*FvwmGlobalIconMan: 1 FollowFocus true
+*FvwmGlobalIconMan: 1 IconButton down
+*FvwmGlobalIconMan: 1 PlainButton up
+*FvwmGlobalIconMan: 1 SelectButton down
+*FvwmGlobalIconMan: 1 FocusButton up
+*FvwmGlobalIconMan: 1 FocusAndSelectButton down
-*FvwmGlobalIconMan: 1 ReliefThickness 1
-*FvwmGlobalIconMan: 1 Resolution page
-*FvwmGlobalIconMan: 1 UseWinList true
+*FvwmGlobalIconMan: 1 ReliefThickness 1
+*FvwmGlobalIconMan: 1 Resolution page
+*FvwmGlobalIconMan: 1 UseWinList true
-*FvwmGlobalIconMan: 1 DrawIcons always
-*FvwmGlobalIconMan: 1 Sort name
-*FvwmGlobalIconMan: 1 Format "%c: %t"
-*FvwmGlobalIconMan: 1 Font "xft:$[infostore.used_font]:pixelsize=$[infostore.fontsize]"
+*FvwmGlobalIconMan: 1 DrawIcons always
+*FvwmGlobalIconMan: 1 Sort name
+*FvwmGlobalIconMan: 1 Format "%c: %t"
+*FvwmGlobalIconMan: 1 Font "xft:$[infostore.used_font]:pixelsize=$[infostore.fontsize]"
*FvwmGlobalIconMan: 1 NoIconAction "SendToModule FvwmAnimate animate"
*FvwmGlobalIconMan: 1 Action Mouse 1 A sendcommand "FuncSelectWindow"
@@ -68,43 +78,3 @@ AddToFunc FuncWindowToBottom
+ I ThisWindow (FvwmGlobalIconMan) All State 1 False
+ I ThisWindow (FvwmGlobalIconMan) Pick (CirculateHit) Layer 0 2
+ I Break
-
-#-----------------------------------------------------------------------
-# Functions for moving global iconman up and down
-# Unfortunatelly works not ever. Perhaps someone can help why ...
-# The following FvwmIconman lines is needed, too:
-# Style FvwmGlobalIconMan !Title, Sticky, WindowListSkip, StaysOnTop, HandleWidth 1, !State 1
-# PipeRead 'echo *FvwmGlobalIconMan: 1 ManagerGeometry 1x0+$(($[infostore.fontsize]/2))-$(($[vp.height]-2*$[infostore.fontsize]))'
-#-----------------------------------------------------------------------
-#SetEnv pixelmove 0
-#
-#DestroyFunc FE-EnterWindow
-#AddToFunc FE-EnterWindow
-#+ I PointerWindow
-#+ I TestRc (!Match) KeepRc All (FvwmGlobalIconMan, State 1) FuncPixelMove "Hide"
-#+ I ThisWindow (!FvwmGlobalIconMan) All (FvwmGlobalIconMan, State 1) FuncPixelMove "Hide"
-#+ I ThisWindow (FvwmGlobalIconMan, !State 1) FuncPixelMove "Show"
-#
-#DestroyFunc FuncPixelMove
-#AddToFunc FuncPixelMove
-#+ I Test (EnvMatch pixelmove 0) ThisWindow (FvwmGlobalIconMan) \
-# PipeRead 'if [ $[w.height] -gt $(($[infostore.fontsize]*2)) ]; then \
-# echo SetEnv pixelmove $(($[w.height]-$[infostore.fontsize]*2)); \
-# else \
-# echo SetEnv pixelmove 0; \
-# fi'
-#+ I echo y $[w.y]
-#+ I echo Pixelmove $[pixelmove]
-#+ I PipeRead 'echo Func$0Window $[w.resource] $[pixelmove]
-#
-#DestroyFunc FuncShowWindow
-#AddToFunc FuncShowWindow
-#+ I ThisWindow (FvwmGlobalIconMan) All State 1
-#+ I ThisWindow (FvwmGlobalIconMan) AnimatedMove w+0 w+$1p Warp
-#
-#DestroyFunc FuncHideWindow
-#AddToFunc FuncHideWindow
-#+ I ThisWindow (FvwmGlobalIconMan) All State 1 False
-#+ I prev (FvwmGlobalIconMan) AnimatedMove w+0 w-$1p
-#+ I PipeRead 'echo SetEnv pixelmove 0'
-#+ I Break
View
15 modules/Pager
@@ -1,11 +1,20 @@
########################################################################
-# Pager
+# File: Pager
+# Version: 1.0.0
+# Licence: GPL 2
+#
+# Description: shows a Fvwm-Pager
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 06/08/2012
+# Changed: 08/16/2012
########################################################################
-Style FvwmPager !Title, Sticky, WindowListSkip, StaysOnTop, FixedSize, FixedPosition, HandleWidth 1
+Style FvwmPager !Title, Sticky, WindowListSkip, StaysOnBottom, FixedSize, FixedPosition, HandleWidth 2
DestroyModuleConfig FvwmPager: *
-PipeRead 'echo *FvwmPager: Geometry $(($[vp.width]/5))x$[infostore.fvwm_pager_height]+$(($[vp.width]/2-($[vp.width]/5)/2))+0'
+#PipeRead 'echo *FvwmPager: Geometry $(($[vp.width]/5))x$[infostore.fvwm_pager_height]+$(($[vp.width]/2-($[vp.width]/5)/2))+0'
+*FvwmPager: Geometry $[infostore.pager_geometry]
*FvwmPager: Colorset * 10
*FvwmPager: HilightColorset * 11
*FvwmPager: BalloonColorset * 16
View
3  themes/Air/colorsets
@@ -159,7 +159,8 @@ Colorset 12 VGradient 255 2 #6794a7 70 #7398aa 30 #90b0bd, fg grey95, NoShape
# fg = font color
# bg = background color
#-----------------------------------------------------------------------
-Colorset 13 fg black, bg #7398aa, hi black, sh gray40, Plain
+#Colorset 13 fg black, bg #7398aa, hi black, sh gray40, Plain
+Colorset 13 VGradient 255 2 #b3d2de 50 #a1c5d3 50 #75aec3, fg black, bg #75aec3, NoShape
#-----------------------------------------------------------------------
# default #2
View
3  themes/Ambience/colorsets
@@ -159,7 +159,8 @@ Colorset 12 VGradient 255 2 #312b1d 70 #9c9885 30 #e5e4e0, fg #312b1d, NoShape
# fg = font color
# bg = background color
#-----------------------------------------------------------------------
-Colorset 13 fg white, bg #51504d, hi black, sh gray40, Plain
+#Colorset 13 fg white, bg #51504d, hi black, sh gray40, Plain
+Colorset 13 VGradient 255 2 #86857f 50 #7c7b78 50 #51504d, fg white, bg #e5e4e0, NoShape
#-----------------------------------------------------------------------
# default #2
View
3  themes/Default/colorsets
@@ -159,7 +159,8 @@ Colorset 12 VGradient 255 2 #312b1d 70 #9c9885 30 #e5e4e0, fg LightSteelBlue2, N
# fg = font color
# bg = background color
#-----------------------------------------------------------------------
-Colorset 13 fg white, bg #9c9885, hi black, sh gray40, Plain
+#Colorset 13 fg white, bg #9c9885, hi black, sh gray40, Plain
+Colorset 10 VGradient 255 2 #e5e4e0 30 #9c9885 70 #312b1d, fg white, bg #312b1d, NoShape
#-----------------------------------------------------------------------
# default #2
Please sign in to comment.
Something went wrong with that request. Please try again.