Permalink
Browse files

add new layout G2like

  • Loading branch information...
1 parent a994c45 commit 7ea4b0b0159a453513ac385324067110430b7ad7 @ThomasFunk ThomasFunk committed Oct 9, 2012
View
@@ -1,5 +1,9 @@
History:
+10/09/2012 V 0.5.15
+- add new layout 'G2like' - it looks like Gnome 2 with a top and bottom bar
+- add G2like to FvwmForm-FNS-BaseSetup
+
10/06/2012 V 0.5.14
- add functional vertical layout
- adapt horizontal layout to fit the changes in the vertical layout
View
18 README
@@ -25,7 +25,7 @@ Featurelist of Fvwm Nightshade:
- Config tool for base settings (Font, layouts, etc)
- 4 virtual desktop pages (at the moment)
- Taskbar to show running apps per page
-- Two layouts: horizontal and vertical
+- Three different layouts: horizontal, vertical and G2like
- horizontal (top):
Top
@@ -46,12 +46,26 @@ Featurelist of Fvwm Nightshade:
| | IconManager
+--------+
- Panel in both with:
+ Panel content in both with:
- Menu
- Systray (stalonetray)
- cpu graph (conky)
- date and time (conky)
+ - G2like (top & bottom)
+ Topbar
+ +---+---+---------------------------------+----------+---------+---+
+ | | | | | | |
+ +---+---+---------------------------------+----------+---------+---+
+ Menu Personal Systray Date Logout
+
+
+ Bottombar
+ +---+----------------------------------------------+---------------+
+ | | | |
+ +---+----------------------------------------------+---------------+
+ Desktop Pager
+ IconManager
- Lock desk & screensaver (xscreensaver)
- Personal menu via FvwmScript-PersonalMenu
View
@@ -15,7 +15,7 @@
#
#
# Fvwm Nightshade Configuration
-InfoStoreAdd ns_version 0.5.14
+InfoStoreAdd ns_version 0.5.15
# Copyright (C) 2012
#
# Authors:
@@ -0,0 +1,238 @@
+#-----------------------------------------------------------------------
+# File: G2like
+# Version: 1.0.0
+# Licence: GPL 2
+#
+# Description: Gnome like layout with a top and bottom bar
+#
+# Author: Thomas Funk <t.funk@web.de>
+# Created: 10/09/2012
+# Changed: <MM/DD/YYYY>
+#-----------------------------------------------------------------------
+#
+# Topbar
+# +---+---+--------+------------------------+----------+---------+---+
+# | | | | | | | |
+# +---+---+--------+------------------------+----------+---------+---+
+# Menu (Apps) Systray Date Logout
+# Personal
+
+# Bottombar
+# +---+----------------------------------------------+---------------+
+# | | | |
+# +---+----------------------------------------------+---------------+
+# Desktop Pager
+# IconMan
+#
+#-----------------------------------------------------------------------
+
+
+########################################################################
+# Positioning
+########################################################################
+
+#=======================================================================
+# General
+#=======================================================================
+InfoStoreAdd column_size 15
+
+PipeRead "echo InfoStoreAdd columns `perl -e 'printf \"%.0f\",$[vp.width]/$[infostore.column_size]'`"
+
+
+#=======================================================================
+# FvwmButtons TopBarG2
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Bar height
+#-----------------------------------------------------------------------
+PipeRead "echo InfoStoreAdd bar_height `perl -e 'printf \"%.0f\",$[vp.height]/(23*$[infostore.ratio])'`"
+
+#-----------------------------------------------------------------------
+# Bar geometry
+#-----------------------------------------------------------------------
+InfoStoreAdd topbar_geometry $[vp.width]x$[infostore.bar_height]-0+0
+
+
+#=======================================================================
+# FvwmButtons G2likeBottomBar
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Bar height
+#-----------------------------------------------------------------------
+#PipeRead "echo InfoStoreAdd bar_height `perl -e 'printf \"%.0f\",$[vp.height]/(23*$[infostore.ratio])'`"
+
+#-----------------------------------------------------------------------
+# Bar geometry
+#-----------------------------------------------------------------------
+InfoStoreAdd bottombar_geometry $[vp.width]x$[infostore.bar_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.bar_height] $[infostore.bar_height]'
+
+#-----------------------------------------------------------------------
+# IconBox defines the area where FVWM will place any windows that are
+# in the iconic state:
+# IconBox left top right bottom
+#
+# IconGrid ist the distance between each icon. Default grid is 3x3 pixels:
+# IconGrid x y
+#
+# IconFill defines the direction icons will place. Default is from left
+# to right. To fill an icon box in columns instead of rows, specify the
+# vertical direction (top or bottom) first.
+#-----------------------------------------------------------------------
+Style * IconBox 20 80 -100 -60, \
+ IconGrid 40 40, \
+ IconFill left bottom, \
+ StaysOnBottom
+
+
+#=======================================================================
+# Load layout elements
+#=======================================================================
+Load modules/G2likeTopBar
+Load modules/G2likeBottomBar
+Load modules/Pager
+Load modules/GlobalIconMan_Bar
+
+
+#=======================================================================
+# Functions
+#=======================================================================
+
+AddToFunc StartFunction
+#-----------------------------------------------------------------------
+# start a Pager
++ I Module FvwmPager
+#-----------------------------------------------------------------------
+# start window list module
++ I Module FvwmIconMan GlobalIconManBar
+#-----------------------------------------------------------------------
+# start bottom bar panel
++ I Module FvwmButtons G2likeBottomBar
+#-----------------------------------------------------------------------
+# start top bar panel
++ I module FvwmButtons G2likeTopBar
+#-----------------------------------------------------------------------
+# start systray applets
++ I Wait stalonetray
++ I FuncStartSystrayApplets
+
+
+DestroyFunc ReloadLayoutParts
+AddToFunc ReloadLayoutParts
++ I FuncPrintDbgMsg ReloadLayoutParts
++ I PipeRead 'fns-built-trayapplist $FVWM_USERDIR/.systray.log $FVWM_USERDIR/.trayapplist'
++ I Load modules/G2likeTopBar
++ I FuncRestartModuleByAlias FvwmButtons G2likeTopBar
++ I Wait stalonetray
++ I Exec exec fns-start-programs reload_applets $[FVWM_USERDIR]/.trayapplist
+
+DestroyFunc ShowDesktop
+AddToFunc ShowDesktop
++ I All (CurrentPage, Iconic, State 1) RestoreDesktop
++ I TestRc (Match) Break
++ I All (CurrentPage, !Iconic, !G2likeBottomBar, !G2likeTopBar, !State 1) ThisWindow State 1 True
++ I All (CurrentPage, !Iconic, !G2likeBottomBar, !G2likeTopBar, State 1) Thumbnail
+
+DestroyFunc RestoreDesktop
+AddToFunc RestoreDesktop
++ I All (CurrentPage, Iconic, State 1) Iconify off
++ I All (CurrentPage, State 1) ThisWindow State 1 False
+
+#=======================================================================
+# Bindings
+#=======================================================================
+
+# Keyname Context Modifi Function
+
+#-----------------------------------------------------------------------
+# press SHIFT-ALT arrow anywhere, move active
+# window to next/previous page
+#-----------------------------------------------------------------------
+Key Left A SM FuncMoveWindowToPage -1p +0p
+Key Right A SM FuncMoveWindowToPage +1p +0p
+
+#-----------------------------------------------------------------------
+# key 1-4 move current window to page n
+#-----------------------------------------------------------------------
+Key 1 A SM Current FuncMoveWindowToPage 0 0
+Key 2 A SM Current FuncMoveWindowToPage 1 0
+Key 3 A SM Current FuncMoveWindowToPage 2 0
+Key 4 A SM Current FuncMoveWindowToPage 3 0
+
+#-----------------------------------------------------------------------
+# Go to page n with SHIFT-CTRL + number
+#-----------------------------------------------------------------------
+Key 1 A SC FuncGotoPage 0 0
+Key 2 A SC FuncGotoPage 1 0
+Key 3 A SC FuncGotoPage 2 0
+Key 4 A SC FuncGotoPage 3 0
+
+#-----------------------------------------------------------------------
+# press SHIFT-CTRL arrow anywhere, and scroll by one page
+#-----------------------------------------------------------------------
+Key Left A SC FuncGotoPage -1p +0p
+Key Right A SC FuncGotoPage +1p +0p
+
+#-----------------------------------------------------------------------
+# Help info with SHIFT-CTRL-ALT P to show all page related key bindings
+#-----------------------------------------------------------------------
+key P A SCM FuncShowMessage "Page Key Bindings" \
+"SHIFT-CTRL:" \
+"Cursor right/left: Switch to page right/left" \
+"1-4: Switch to page n" \
+"SHIFT-ALT:" \
+"Cursor right/left: Switch active window to page right/left" \
+"1-4: Switch active window to page n" \
+"ALT-CTRL:" \
+"Cursor right/left/up/down: Move mouse pointer by 1% of a page" \
+"SHIFT-ALT-CTRL:" \
+"Cursor right/left/up/down: Scroll right/left by 10% of a page"
+
+
+
+#=======================================================================
+# Menus
+#=======================================================================
+
+#-----------------------------------------------------------------------
+# Moves all windows of the same resource to another page
+#-----------------------------------------------------------------------
+DestroyMenu MenuWindowGroupQuickMove
+AddToMenu MenuWindowGroupQuickMove
++ "&Right Page%menu/window-move.xpm%" Pick All ($[w.resource]) MoveToPage +1p +0p
++ "&Left Page%menu/window-move.xpm%" Pick All ($[w.resource]) MoveToPage -1p +0p
+#+ "D&own Page%menu/window-move.xpm%" Pick All ($[w.resource]) MoveToPage +0p +1p
+#+ "&Up Page%menu/window-move.xpm%" Pick All ($[w.resource]) MoveToPage +0p -1p
++ "" Nop
++ "Page 1%menu/window-move.xpm%" Pick All ($[w.resource]) FuncMoveWindowToPage 0 0
++ "Page 2%menu/window-move.xpm%" Pick All ($[w.resource]) FuncMoveWindowToPage 1 0
++ "Page 3%menu/window-move.xpm%" Pick All ($[w.resource]) FuncMoveWindowToPage 2 0
++ "Page 4%menu/window-move.xpm%" Pick All ($[w.resource]) FuncMoveWindowToPage 3 0
+
+#-----------------------------------------------------------------------
+# Move a window to left/right/1-4 page
+#-----------------------------------------------------------------------
+DestroyMenu MenuWindowMoveTo
+AddToMenu MenuWindowMoveTo
++ "Move to ..." Title
++ "$[gt.&Right Page]%menu/window-move.xpm%" AnimatedMove w+100 w
++ "&Left Page%menu/window-move.xpm%" AnimatedMove w-100 w
+#+ "&Down Page%menu/window-move.xpm%" AnimatedMove w w+100
+#+ "&Up Page%menu/window-move.xpm%" AnimatedMove w w-100
++ "" Nop
++ "Page 1%menu/window-move.xpm%" FuncMoveWindowToPage 0 0
++ "Page 2%menu/window-move.xpm%" FuncMoveWindowToPage 1 0
++ "Page 3%menu/window-move.xpm%" FuncMoveWindowToPage 2 0
++ "Page 4%menu/window-move.xpm%" FuncMoveWindowToPage 3 0
Oops, something went wrong.

0 comments on commit 7ea4b0b

Please sign in to comment.