| 1 |
# Panels control for FVWM-Crystal |
| 2 |
# |
| 3 |
# Version 1.0 |
| 4 |
# License GPL 3+ |
| 5 |
# Author: Jorge Daniel Sampayo Vargas |
| 6 |
# |
| 7 |
# This file provide basic functions to control the display of the Panels |
| 8 |
|
| 9 |
# Toggle the visivility of the whole desktop decoration |
| 10 |
DestroyFunc Panel-Toggle |
| 11 |
AddToFunc Panel-Toggle |
| 12 |
+ I All (State 31) WindowStyle NoIcon |
| 13 |
+ I All (State 31) Schedule 100 Iconify |
| 14 |
PipeRead "if [ \"$(echo $[infostore.Fvwm_Crystal_Recipe]| sed -e 's:.*Amiga:Amiga:')\" = \"Amiga\" ]; then echo '+ I Schedule 100 Restore-TopBar-RaiseLower'; fi" |
| 15 |
|
| 16 |
# Toogle the whole desktop decoration (all windows with |
| 17 |
# State 31 true, State 1 true => on bottom, false => on top |
| 18 |
DestroyFunc Panel-Toggle-OnTop |
| 19 |
AddToFunc Panel-Toggle-OnTop |
| 20 |
+ I All (State 30, State 1) WindowStyle StaysOnTop, !State 1 |
| 21 |
+ I TestRc (NoMatch) All (State 31) WindowStyle StaysOnBottom, State 1 |
| 22 |
PipeRead "if [ \"$(echo $[infostore.Fvwm_Crystal_Recipe]| sed -e 's:.*Amiga:Amiga:')\" = \"Amiga\" ]; then echo '+ I Schedule 100 Restore-TopBar-RaiseLower'; fi" |
| 23 |
|
| 24 |
# Toggle the whole topbar and pager between the top and bottom layers {{{1 |
| 25 |
# For the Amiga recipe |
| 26 |
# bindings in components/bindings/Desktop-MMB-ToggleTopBar (Alt-MMB) |
| 27 |
# MMB Toggle-TopBar-OnTop 1{{{ |
| 28 |
DestroyFunc Toggle-TopBar-OnTop |
| 29 |
AddToFunc Toggle-TopBar-OnTop |
| 30 |
+ I All (FvwmButtons-PanelTop, !State 1) PutTopBar-OnTop |
| 31 |
+ I TestRc (NoMatch) PutTopBar-OnBottom |
| 32 |
+ I Restore-TopBar-RaiseLower |
| 33 |
|
| 34 |
DestroyFunc PutTopBar-OnTop |
| 35 |
AddToFunc PutTopBar-OnTop |
| 36 |
+ I All (FvwmButtons-PanelTop) PutOnTop |
| 37 |
#+ I All (FvwmButtons-Pager) PutOnTop |
| 38 |
#+ I All (FvwmPager) PutOnTop |
| 39 |
+ I All (FvwmButtons-PanelTopMenu) PutOnTop |
| 40 |
|
| 41 |
DestroyFunc PutTopBar-OnBottom |
| 42 |
AddToFunc PutTopBar-OnBottom |
| 43 |
+ I All (FvwmButtons-PanelTop) PutOnBottom |
| 44 |
#+ I All (FvwmButtons-Pager) PutOnBottom |
| 45 |
#+ I All (FvwmPager) PutOnBottom |
| 46 |
+ I All (FvwmButtons-PanelTopMenu) PutOnBottom |
| 47 |
|
| 48 |
#EdgeCommand Top Toggle-TopBar-OnTop |
| 49 |
|
| 50 |
# vim:ft=fvwm |