| 1 |
# FvwmMiniConsole |
| 2 |
|
| 3 |
# Variables |
| 4 |
InfoStoreAdd FvwmConsoleTerminal "NO_FVWMCONSOLE_TERMINAL_FOUND" |
| 5 |
|
| 6 |
CheckPreferences FvwmConsoleTerminal "SavePreferences FvwmConsoleTerminal 'FindCommand FvwmConsoleTerminal urxvt mrxvt aterm xterm'" |
| 7 |
LoadPreferences FvwmConsoleTerminal |
| 8 |
# For first startup |
| 9 |
FindCommand FvwmConsoleTerminal urxvt mrxvt aterm xterm |
| 10 |
|
| 11 |
Mouse (FvwmMiniConsoleNeedsUniqueName) 2 W $[Mod1] FvwmMiniConsole-Resize |
| 12 |
|
| 13 |
DestroyFunc FvwmMiniConsole |
| 14 |
AddToFunc FvwmMiniConsole |
| 15 |
+ I None (FvwmMiniConsoleNeedsUniqueName) FvwmMiniConsole_Init |
| 16 |
+ I All (FvwmMiniConsoleNeedsUniqueName, CurrentDesk, Focused) FvwmMiniConsole_Hide |
| 17 |
+ I TestRc (0) FvwmMiniConsole_Show |
| 18 |
|
| 19 |
DestroyFunc FvwmMiniConsole_Init |
| 20 |
AddToFunc FvwmMiniConsole_Init |
| 21 |
+ I Style FvwmMiniConsoleNeedsUniqueName !Title, !Borders, SkipMapping, WindowListSkip, \ |
| 22 |
VariableSize, VariablePosition, NoIcon, StaysOnTop, !Iconifiable, \ |
| 23 |
StickyAcrossPages, !Maximizable, NoHandles |
| 24 |
+ I Style FvwmMiniConsoleNeedsUniqueName WindowShadeSteps 16 |
| 25 |
+ I Style FvwmMiniConsoleNeedsUniqueName WindowShadeShrinks |
| 26 |
+ I Style FvwmMiniConsoleNeedsUniqueName TitleAtBottom |
| 27 |
+ I Module FvwmConsole -terminal $[infostore.FvwmConsoleTerminal] -geometry 80x5+0-0 -title FvwmMiniConsoleNeedsUniqueName |
| 28 |
+ I Wait FvwmMiniConsoleNeedsUniqueName |
| 29 |
+ I Style FvwmMiniConsoleNeedsUniqueName FixedPosition |
| 30 |
+ I All (FvwmMiniConsoleNeedsUniqueName) MoveToDesk 0 666 |
| 31 |
+ I Prev (CurrentPage) Focus |
| 32 |
|
| 33 |
DestroyFunc FvwmMiniConsole_Show |
| 34 |
AddToFunc FvwmMiniConsole_Show |
| 35 |
+ I All (FvwmMiniConsoleNeedsUniqueName) MoveToDesk 0 $[desk.n] |
| 36 |
#+ I All (FvwmMiniConsoleNeedsUniqueName) WindowShade false |
| 37 |
+ I All (FvwmMiniConsoleNeedsUniqueName) Focus |
| 38 |
|
| 39 |
DestroyFunc FvwmMiniConsole_Hide |
| 40 |
AddToFunc FvwmMiniConsole_Hide |
| 41 |
#+ I All (FvwmMiniConsoleNeedsUniqueName) WindowShade true South |
| 42 |
+ I All (FvwmMiniConsoleNeedsUniqueName) MoveToDesk 0 666 |
| 43 |
#+ I All (FvwmMiniConsoleNeedsUniqueName) WindowShade false South |
| 44 |
+ I Prev (CurrentPage, AcceptsFocus, Visible) Focus |
| 45 |
|
| 46 |
DestroyFunc FvwmMiniConsole-Resize |
| 47 |
AddToFunc FvwmMiniConsole-Resize |
| 48 |
+ I Resize Direction NE |
| 49 |
|
| 50 |
# vim:ft=fvwm |