1 # This script is free software; you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation; either version 2 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 #-----------------------------------------------------------------------------
17 # Copyright 2000, Olivier Chapuis
18 #-----------------------------------------------------------------------------
21 WindowTitle {FVWM Themes Global Feel}
23 Font -adobe-helvetica-bold-r-*-*-12-*
28 Do {FvwmScript FvwmScript-NoteMessage "Loading Configuration"}
31 Set $ViewerColorset = 33
32 Set $TextColorset = 36
36 Set $arg = (GetScriptArgument $i)
40 If $arg == {--viewer-colorset} Then
41 Set $ViewerColorset = (GetScriptArgument $j)
42 If $arg == {--text-colorset} Then
43 Set $TextColorset = (GetScriptArgument $j)
44 If $arg == {--icon-colorset} Then
45 Set $IconColorset = (GetScriptArgument $j)
46 If $arg == {--lang} Then
47 Set $Lang = (GetScriptArgument $j)
49 Set $arg = (GetScriptArgument $i)
52 If $TextColorset <> {} Then
54 ChangeColorset 35 $TextColorset
55 ChangeColorset 46 $TextColorset
56 ChangeColorset 51 $TextColorset
57 ChangeColorset 53 $TextColorset
58 ChangeColorset 58 $TextColorset
59 ChangeColorset 68 $TextColorset
60 ChangeColorset 71 $TextColorset
61 ChangeColorset 78 $TextColorset
62 ChangeColorset 81 $TextColorset
63 ChangeColorset 98 $TextColorset
64 ChangeColorset 102 $TextColorset
65 ChangeColorset 104 $TextColorset
68 If $ViewerColorset <> {} Then
70 ChangeColorset 990 $ViewerColorset
73 # -----------------------------------------------------------------------------
74 # Initialization of the com loop and first query
76 # found the FvwmScript pid
77 Set $cmd = {exec perl -e 'print getppid . "\n"'}
78 Set $pid = (GetOutput $cmd 1 -1)
80 # Run fvwm-themes-script until the end of the script
81 Do {Exec fvwm-themes-script --globalfeel --com-name=script-}$pid{ &}
83 # to send fvwm-themes-com command
84 Set $SendMsgAndGet = {fvwm-themes-com --name script-}$pid{ --lock-and-get --message=}
85 Set $SendMsg = {fvwm-themes-com --name script-}$pid{ --message=}
86 Set $GetLine = {fvwm-themes-com --name script-}$pid{ --get-buffer --line=}
89 Set $GF_FileName = {globalfeel}
92 Set $Component = $GF_FileName
94 ### personal themes; widget 1 signal 1
95 Set $PersonalThemes = {}
97 ### ------------------- Loading GF config
98 # GF save, current and themes
99 # the next two: widget 1 signal 2
100 Set $GF_CurrentTheme = {}
101 Set $GF_ThemesWith = {}
102 # Loading GF configuration:
103 #Do {Echo CC: going to load GF config}
104 Set $cmd = $SendMsgAndGet{"get-config current globalfeel All" --line=1}
105 Set $GF_error = (GetOutput $cmd 1 -1)
106 Set $cmd = $GetLine{2 --clear-buffer}
107 Set $GF_Config = (GetOutput $cmd 1 -1)
108 #Do {Echo CC: GF config loaded}
111 Set $cmd = $SendMsgAndGet{"get-preferences"}
112 Set $tmp = (GetOutput $cmd 1 -1)
113 Set $GF_TryIsGlobal = (StrCopy $tmp 1 1)
114 Set $GF_DefaultIsGlobal = (StrCopy $tmp 2 2)
115 Set $GF_SaveIsGlobal = (StrCopy $tmp 3 3)
116 ChangeValue 962 $GF_TryIsGlobal
117 ChangeValue 963 $GF_DefaultIsGlobal
118 ChangeValue 964 $GF_SaveIsGlobal
120 # ----------------------------------------------------------------------------
121 # Internationalization.
123 Set $SelFont = {-adobe-helvetica-bold-r-*-*-12-*}
124 Set $ShadeFont = {-adobe-helvetica-medium-r-*-*-12-*}
125 Set $nonDefaultFont = 0
131 Set $cmd = {echo "$LANG" | cut -c1-2}
132 Set $Lang = (GetOutput $cmd 1 -1)
139 Set $cmd = {fvwm-themes-script --get-msg }FvwmScript-GlobalFeel{ --lang }$Lang
140 Set $MSG = (GetOutput $cmd 1 -1)
143 While $notdone == 1 Do
145 Set $index = (Add $index 1)
146 Set $id = (StrCopy $MSG $index (Add $index 11))
147 Set $index = (Add $index 12)
148 Set $tmp = (StrCopy $MSG $index (Add $index 3))
149 Set $index = (Add $index 4)
150 Set $pos = (Add $index $tmp)
151 Set $msg = (StrCopy $MSG $index $pos)
152 Set $index = (Add $index $tmp)
154 If $index > 9999 Then
156 If $id == {END } Then
162 If $id == {Menu1 } Then
164 If $id == {Menu2 } Then
168 If $id == {FocusPolicy } Then
170 If $id == {ClickToFocus} Then
172 If $id == {MouseFocus } Then
174 If $id == {SloppyFocus } Then
176 If $id == {FocusOptions} Then
178 If $id == {PassClick } Then
180 If $id == {ClickRaise } Then
182 If $id == {ColorMap } Then
186 If $id == {WinPlacement} Then
188 If $id == {SmartRandom } Then
190 If $id == {SmartActive } Then
192 If $id == {CleverPlace } Then
194 If $id == {CleverPlaceP} Then
196 If $id == {DumbActive } Then
198 If $id == {DumbRandom } Then
200 If $id == {PlacementOpt} Then
202 If $id == {GrabFocus } Then
204 If $id == {PPosition } Then
208 If $id == {MoveResize } Then
210 If $id == {OpaqueResize} Then
212 If $id == {OutLineRes } Then
214 If $id == {Resizing } Then
216 If $id == {OpaqueMove } Then
218 If $id == {ScreenPer } Then
220 If $id == {GeoPosition } Then
222 If $id == {GeoCenter } Then
224 If $id == {GeoTopLeft } Then
226 If $id == {HideGeoWin } Then
228 If $id == {HideResize } Then
230 If $id == {HideMove } Then
232 If $id == {BuggyMove } Then
236 If $id == {SnapAttract } Then
238 If $id == {SnapDist } Then
240 If $id == {SnapContext } Then
242 If $id == {SnapPopup } Then
244 If $id == {SnapGrid } Then
246 If $id == {ColorOrPix } Then
248 If $id == {UseAColor } Then
250 If $id == {UseAPixmap } Then
253 If $id == {OneColor } Then
254 Set $l_OneColor = $msg
255 If $id == {OnePixmap } Then
256 Set $l_OnePixmap = $msg
257 If $id == {SColorSel } Then
258 Set $l_StartColorSel = $msg
259 If $id == {StartImages } Then
260 Set $l_StartImages = $msg
263 If $id == {Paging } Then
265 If $id == {HPaging } Then
267 If $id == {CirPaging } Then
272 If $id == {VPaging } Then
274 If $id == {PagingList } Then
279 If $id == {PagingDelay } Then
281 If $id == {EdgeResist } Then
283 If $id == {PanFrame } Then
285 If $id == {Msec } Then
290 If $id == {Pixels } Then
298 If $id == {MousePara } Then
300 If $id == {DoubleClick } Then
302 If $id == {MouseDrag } Then
306 If $id == {TransientWin} Then
308 If $id == {TransNDecor } Then
310 If $id == {TransRaise } Then
312 If $id == {TransLower } Then
314 If $id == {TransMore } Then
316 If $id == {TransGrab } Then
320 If $id == {AnimTitle } Then
322 If $id == {ShadeStep } Then
324 If $id == {ShadeScroll } Then
326 If $id == {AnimMenu } Then
328 If $id == {AnimSpeed } Then
330 If $id == {AnimSeq } Then
332 If $id == {AnimEx } Then
334 If $id == {AnimList } Then
338 If $id == {HintsTitle } Then
340 If $id == {MWMDecor } Then
342 If $id == {OLDHints } Then
344 If $id == {ButShade } Then
346 If $id == {MWMFunctions} Then
348 If $id == {GNOMEHints } Then
350 If $id == {ButModal } Then
354 If $id == {BusyTitle } Then
358 If $id == {AdvTitle } Then
360 If $id == {ColorLimit } Then
362 If $id == {ModTimeOut } Then
366 If $id == {PrefFile } Then
368 If $id == {BPrefLoaded } Then
369 Set $l_BPrefLoaded = $msg
370 If $id == {MPrefLoaded } Then
371 Set $l_MPrefLoaded = $msg
372 If $id == {APrefLoaded } Then
373 Set $l_APrefLoaded = $msg
374 If $id == {PrefLoad } Then
376 If $id == {PrefSave } Then
378 If $id == {PrefAnother } Then
380 If $id == {Load } Then
384 If $id == {Preference } Then
386 If $id == {TryIsGlobal } Then
388 If $id == {DefIsGlobal } Then
390 If $id == {SaveIsGlobal} Then
394 If $id == {ConfigLoaded} Then
395 Set $l_ConfigLoaded = $msg
396 If $id == {Save } Then
398 If $id == {SavedInter } Then
399 Set $l_SavedInternally = $msg
400 If $id == {SavedExter } Then
401 Set $l_SavedExternally = $msg
402 If $id == {Try } Then
404 If $id == {AppliedInter} Then
405 Set $l_AppliedInternally = $msg
406 If $id == {AppliedExter} Then
407 Set $l_AppliedExternally = $msg
408 If $id == {NoEffectHere} Then
409 Set $l_NoEffectHere = $msg
410 If $id == {Error } Then
412 If $id == {Default } Then
414 If $id == {Help } Then
416 If $id == {Quit } Then
420 If $id == {ChangeFont } Then
421 Set $nonDefaultFont = $msg
422 If $id == {SelFont } Then
424 If $id == {ShadeFont } Then
425 Set $ShadeFont = $msg
426 If $id == {FixedFont } Then
427 Set $FixedFont = $msg
430 ChangeTitle 59 $l_StartColorSel
431 If $nonDefaultFont == 1 Then
433 ChangeFont 2 $SelFont
434 ChangeFont 10 $SelFont
435 ChangeFont 11 $FixedFont
436 ChangeFont 12 $FixedFont
437 ChangeFont 13 $FixedFont
438 ChangeFont 14 $SelFont
439 ChangeFont 15 $FixedFont
440 ChangeFont 16 $FixedFont
441 ChangeFont 17 $FixedFont
442 ChangeFont 18 $SelFont
443 ChangeFont 19 $FixedFont
444 ChangeFont 20 $FixedFont
445 ChangeFont 21 $FixedFont
446 ChangeFont 22 $FixedFont
447 ChangeFont 23 $FixedFont
448 ChangeFont 24 $FixedFont
449 ChangeFont 25 $SelFont
450 ChangeFont 26 $FixedFont
451 ChangeFont 27 $FixedFont
452 ChangeFont 30 $SelFont
453 ChangeFont 31 $FixedFont
454 ChangeFont 32 $FixedFont
455 ChangeFont 33 $FixedFont
456 ChangeFont 34 $FixedFont
457 ChangeFont 35 $FixedFont
458 ChangeFont 36 $FixedFont
459 ChangeFont 37 $FixedFont
460 ChangeFont 38 $FixedFont
461 ChangeFont 39 $FixedFont
462 ChangeFont 40 $FixedFont
463 ChangeFont 41 $FixedFont
464 ChangeFont 42 $FixedFont
465 ChangeFont 43 $FixedFont
466 ChangeFont 44 $SelFont
467 ChangeFont 45 $FixedFont
468 ChangeFont 46 $FixedFont
469 ChangeFont 47 $FixedFont
470 ChangeFont 48 $FixedFont
471 ChangeFont 49 $FixedFont
472 ChangeFont 50 $FixedFont
473 ChangeFont 51 $FixedFont
474 ChangeFont 52 $FixedFont
475 ChangeFont 53 $FixedFont
476 ChangeFont 54 $SelFont
477 ChangeFont 55 $FixedFont
478 ChangeFont 56 $FixedFont
479 ChangeFont 57 $FixedFont
480 ChangeFont 58 $FixedFont
481 ChangeFont 59 $FixedFont
482 ChangeFont 60 $SelFont
483 ChangeFont 61 $FixedFont
484 ChangeFont 62 $FixedFont
485 ChangeFont 63 $FixedFont
486 ChangeFont 64 $FixedFont
487 ChangeFont 65 $FixedFont
488 ChangeFont 66 $FixedFont
489 ChangeFont 67 $FixedFont
490 ChangeFont 68 $FixedFont
491 ChangeFont 69 $FixedFont
492 ChangeFont 70 $FixedFont
493 ChangeFont 71 $FixedFont
494 ChangeFont 72 $FixedFont
495 ChangeFont 73 $FixedFont
496 ChangeFont 74 $FixedFont
497 ChangeFont 75 $FixedFont
498 ChangeFont 76 $SelFont
499 ChangeFont 77 $FixedFont
500 ChangeFont 78 $FixedFont
501 ChangeFont 79 $FixedFont
502 ChangeFont 80 $FixedFont
503 ChangeFont 81 $FixedFont
504 ChangeFont 82 $FixedFont
505 ChangeFont 90 $SelFont
506 ChangeFont 91 $FixedFont
507 ChangeFont 92 $FixedFont
508 ChangeFont 93 $FixedFont
509 ChangeFont 94 $FixedFont
510 ChangeFont 95 $FixedFont
511 ChangeFont 96 $SelFont
512 ChangeFont 97 $FixedFont
513 ChangeFont 98 $FixedFont
514 ChangeFont 99 $FixedFont
515 ChangeFont 100 $FixedFont
516 ChangeFont 101 $FixedFont
517 ChangeFont 102 $FixedFont
518 ChangeFont 103 $FixedFont
519 ChangeFont 104 $FixedFont
520 ChangeFont 105 $FixedFont
521 ChangeFont 106 $FixedFont
522 ChangeFont 110 $SelFont
523 ChangeFont 111 $FixedFont
524 ChangeFont 112 $FixedFont
525 ChangeFont 113 $FixedFont
526 ChangeFont 114 $FixedFont
527 ChangeFont 115 $FixedFont
528 ChangeFont 116 $FixedFont
529 ChangeFont 117 $SelFont
530 ChangeFont 118 $FixedFont
531 ChangeFont 119 $FixedFont
532 ChangeFont 120 $FixedFont
533 ChangeFont 121 $FixedFont
534 ChangeFont 122 $SelFont
535 ChangeFont 123 $FixedFont
536 ChangeFont 124 $FixedFont
537 ChangeFont 125 $FixedFont
538 ChangeFont 126 $FixedFont
539 ChangeFont 127 $FixedFont
540 ChangeFont 128 $FixedFont
541 ChangeFont 129 $FixedFont
542 ChangeFont 130 $FixedFont
544 ChangeFont 950 $SelFont
545 ChangeFont 951 $FixedFont
546 ChangeFont 952 $FixedFont
547 ChangeFont 953 $SelFont
548 ChangeFont 954 $SelFont
549 ChangeFont 955 $SelFont
550 ChangeFont 956 $FixedFont
551 ChangeFont 957 $FixedFont
552 ChangeFont 958 $FixedFont
553 ChangeFont 959 $SelFont
554 ChangeFont 960 $SelFont
555 ChangeFont 961 $SelFont
556 ChangeFont 956 $FixedFont
557 ChangeFont 957 $FixedFont
558 ChangeFont 958 $FixedFont
560 ChangeFont 990 $SelFont
561 ChangeFont 991 $SelFont
562 ChangeFont 992 $SelFont
563 ChangeFont 993 $SelFont
564 ChangeFont 994 $SelFont
565 ChangeFont 995 $SelFont
568 ChangeFont 991 $ShadeFont
569 Set $SaveFont = {Sel}
570 ChangeFont 992 $ShadeFont
571 Set $TryFont = {Shade}
573 # not yet implemented
574 ChangeFont 1 $ShadeFont
576 #Do {Echo ConfigCenter: GF inter loaded}
577 #------------------------------------------------------------------------------
578 # Main variables, i.e. "Global one" (see also the com loop init !)
580 ### Perodic Task Test:
581 Set $GF_UpdateConfig = 1
582 Set $GF_BuildConfig = 1
583 Set $GF_BuildAllConfig = 1
585 # $GF_UpdateButtonFont
586 # Is the color sel is up for XorValue ? (GF)
587 Set $GF_XorBrowser = {}
589 ### CommonFeel specific (initialized during $GF_BuilConfig = 1)
590 # $GF_Focus, $GF_Placement, $GF_ResizeOutLine, $GF_Emulate,
591 # $GF_HideGeoSize, $HideGeoMove, $GF_Xor, $GF_XorPixmap, $GF_XorValue,
592 # GF Hide/Show{Focus,Move,Paging,Transient,Hints}
594 Set $ThemeToLoad = {current}
597 Set $ConfigTool = {Focus}
599 # type of command for Apply and save
602 Do {All (FvwmScript-NoteMessage) Delete}
605 # ---------------------------------------------------------------------------
609 # ---------------------------------------------------------------------------
614 #----------------------------------------------------------------------------
615 # Build (Update) the config
617 If $GF_UpdateConfig == 1 Then
619 Set $GF_UpdateConfig = 0
620 Set $GF_BuildConfig = 1
621 If $InStart == 1 Then
626 Set $LoadTransient = 1
628 Set $GF_BuildAllConfig = 1
634 If $LoadFromPreference == 1 Then
636 Set $LoadFromPreference = 0
637 If $GF_DefaultIsGlobal == 1 Then
639 Set $test = (Mult $test $tmp)
645 Set $LoadTransient = 1
648 Set $GF_BuildAllConfig = 1
652 Set $GF_BuildConfig = 1
656 Set $LoadTransient = 0
658 Set $ct = $ConfigTool
659 If $ct == {Focus} Then
661 If $ct == {Move} Then
663 If $ct == {Paging} Then
665 If $ct == {Transient} Then
666 Set $LoadTransient = 1
667 If $ct == {Hints} Then
670 Set $cmd = $SendMsgAndGet{"get-config }$ThemeToLoad{ }$GF_FileName{ }$ct{" --line=1}
671 Set $GF_error = (GetOutput $cmd 1 -1)
672 Set $cmd = $GetLine{2 --clear-buffer}
673 Set $GF_Config = (GetOutput $cmd 1 -1)
676 If $GF_error <> {0} Then
681 Set $LoadTransient = 0
683 Set $msg = $GF_error{ (when loading }$ThemeToLoad{)}
686 Set $msg = $l_ConfigLoaded
690 If $LoadFocus == 1 Then
692 Set $index = (Add $index 1)
697 Set $tmp = (Add $tmp 1)
699 Set $tmp = (StrCopy $GF_Config $index $index)
700 Set $GF_Focus = (Add 10 $tmp)
701 ChangeValue $GF_Focus 1
702 Set $index = (Add $index 1)
703 Set $tmp = (StrCopy $GF_Config $index $index)
705 Set $index = (Add $index 1)
706 Set $tmp = (StrCopy $GF_Config $index $index)
708 Set $index = (Add $index 1)
709 Set $tmp = (StrCopy $GF_Config $index $index)
711 Set $index = (Add $index 1)
712 Set $tmp = (StrCopy $GF_Config $index $index)
713 Set $GF_Placement = (Add 18 $tmp)
714 ChangeValue $GF_Placement 1
715 Set $index = (Add $index 1)
716 Set $tmp = (StrCopy $GF_Config $index $index)
718 Set $index = (Add $index 1)
719 Set $tmp = (StrCopy $GF_Config $index $index)
723 If $LoadMove == 1 Then
728 Set $index = (Add $index 1)
729 Set $tmp = (StrCopy $GF_Config $index $index)
730 Set $GF_ResizeOutLine = (Add 32 $tmp)
731 ChangeValue $GF_ResizeOutLine 1
733 Set $index = (Add $index 1)
734 Set $tmp = (StrCopy $GF_Config $index $index)
738 Set $value = $value $tmp
739 Set $index = (Add $index 1)
740 Set $tmp = (StrCopy $GF_Config $index $index)
741 If $index > 3200 Then
744 ChangeTitle 35 $value
748 Set $index = (Add $index 1)
749 Set $tmp = (StrCopy $GF_Config $index $index)
750 Set $GF_Emulate = (Add 38 $tmp)
751 ChangeValue $GF_Emulate 1
753 Set $index = (Add $index 1)
754 Set $GF_HideGeoSize = (StrCopy $GF_Config $index $index)
755 ChangeValue 41 $GF_HideGeoSize
756 Set $index = (Add $index 1)
757 Set $GF_HideGeoMove = (StrCopy $GF_Config $index $index)
758 ChangeValue 42 $GF_HideGeoMove
759 # FlickeringMoveWorkaround
760 Set $index = (Add $index 1)
761 Set $tmp = (StrCopy $GF_Config $index $index)
764 Set $index = (Add $index 1)
765 Set $tmp = (StrCopy $GF_Config $index $index)
769 Set $value = $value $tmp
770 Set $index = (Add $index 1)
771 Set $tmp = (StrCopy $GF_Config $index $index)
772 If $index > 3200 Then
775 ChangeTitle 46 $value
777 Set $index = (Add $index 1)
778 Set $tmp = (StrCopy $GF_Config $index $index)
781 Set $index = (Add $index 1)
782 Set $tmp = (StrCopy $GF_Config $index $index)
786 Set $value = $value $tmp
787 Set $index = (Add $index 1)
788 Set $tmp = (StrCopy $GF_Config $index $index)
789 If $index > 3200 Then
792 ChangeTitle 51 $value
794 Set $index = (Add $index 1)
795 Set $tmp = (StrCopy $GF_Config $index $index)
799 Set $value = $value $tmp
800 Set $index = (Add $index 1)
801 Set $tmp = (StrCopy $GF_Config $index $index)
802 If $index > 3200 Then
805 ChangeTitle 53 $value
809 Set $index = (Add $index 1)
810 Set $GF_Xor = (StrCopy $GF_Config $index $index)
811 Set $tmp = (Add $GF_Xor 55)
814 Set $index = (Add $index 1)
815 Set $tmp = (StrCopy $GF_Config $index $index)
819 Set $value = $value $tmp
820 Set $index = (Add $index 1)
821 Set $tmp = (StrCopy $GF_Config $index $index)
822 If $index > 3200 Then
825 Set $GF_XorValue = $value
827 Set $index = (Add $index 1)
828 Set $tmp = (StrCopy $GF_Config $index $index)
832 Set $value = $value $tmp
833 Set $index = (Add $index 1)
834 Set $tmp = (StrCopy $GF_Config $index $index)
835 If $index > 3200 Then
838 Set $GF_XorPixmap = $value
841 ChangeTitle 58 $GF_XorValue
842 ChangeTitle 57 $l_OneColor
843 ChangeTitle 59 $l_StartColorSel
847 ChangeTitle 58 $GF_XorPixmap
848 ChangeTitle 57 $l_OnePixmap
849 ChangeTitle 59 $l_StartImages
853 If $LoadPaging == 1 Then
856 Set $index = (Add $index 1)
857 Set $tmp = (StrCopy $GF_Config $index $index)
858 Set $tmp = (Add 1 $tmp)
860 Set $index = (Add $index 1)
861 Set $tmp = (StrCopy $GF_Config $index $index)
864 Set $index = (Add $index 1)
865 Set $tmp = (StrCopy $GF_Config $index $index)
866 Set $tmp = (Add 1 $tmp)
868 Set $index = (Add $index 1)
869 Set $tmp = (StrCopy $GF_Config $index $index)
872 Set $index = (Add $index 1)
873 Set $tmp = (StrCopy $GF_Config $index $index)
877 Set $value = $value $tmp
878 Set $index = (Add $index 1)
879 Set $tmp = (StrCopy $GF_Config $index $index)
880 If $index > 3200 Then
883 ChangeTitle 68 $value
884 Set $index = (Add $index 1)
885 Set $tmp = (StrCopy $GF_Config $index $index)
889 Set $value = $value $tmp
890 Set $index = (Add $index 1)
891 Set $tmp = (StrCopy $GF_Config $index $index)
892 If $index > 3200 Then
895 ChangeTitle 71 $value
897 Set $index = (Add $index 1)
898 Set $tmp = (StrCopy $GF_Config $index $index)
901 Set $index = (Add $index 1)
902 Set $tmp = (StrCopy $GF_Config $index $index)
906 Set $value = $value $tmp
907 Set $index = (Add $index 1)
908 Set $tmp = (StrCopy $GF_Config $index $index)
909 If $index > 3200 Then
912 ChangeTitle 78 $value
914 Set $index = (Add $index 1)
915 Set $tmp = (StrCopy $GF_Config $index $index)
919 Set $value = $value $tmp
920 Set $index = (Add $index 1)
921 Set $tmp = (StrCopy $GF_Config $index $index)
922 If $index > 3200 Then
925 ChangeTitle 81 $value
928 If $LoadTransient == 1 Then
931 Set $index = (Add $index 1)
932 Set $tmp = (StrCopy $GF_Config $index $index)
935 Set $index = (Add $index 1)
936 Set $tmp = (StrCopy $GF_Config $index $index)
939 Set $index = (Add $index 1)
940 Set $tmp = (StrCopy $GF_Config $index $index)
942 # StackTransientParent
943 Set $index = (Add $index 1)
944 Set $tmp = (StrCopy $GF_Config $index $index)
947 Set $index = (Add $index 1)
948 Set $tmp = (StrCopy $GF_Config $index $index)
951 Set $index = (Add $index 1)
952 Set $tmp = (StrCopy $GF_Config $index $index)
956 Set $value = $value $tmp
957 Set $index = (Add $index 1)
958 Set $tmp = (StrCopy $GF_Config $index $index)
959 If $index > 3200 Then
962 ChangeTitle 98 $value
964 Set $index = (Add $index 1)
965 Set $tmp = (StrCopy $GF_Config $index $index)
967 # SetAnimation: speed
968 Set $index = (Add $index 1)
969 Set $tmp = (StrCopy $GF_Config $index $index)
973 Set $value = $value $tmp
974 Set $index = (Add $index 1)
975 Set $tmp = (StrCopy $GF_Config $index $index)
976 If $index > 3200 Then
979 ChangeTitle 102 $value
981 Set $index = (Add $index 1)
982 Set $tmp = (StrCopy $GF_Config $index $index)
986 Set $value = $value $tmp
987 Set $index = (Add $index 1)
988 Set $tmp = (StrCopy $GF_Config $index $index)
989 If $index > 3200 Then
992 ChangeTitle 104 $value
995 If $LoadHints == 1 Then
1000 Set $index = (Add $index 1)
1001 Set $tmp = (StrCopy $GF_Config $index $index)
1009 Set $index = (Add $index 1)
1010 Set $tmp = (StrCopy $GF_Config $index $index)
1015 Set $index = (Add $index 1)
1016 Set $tmp = (StrCopy $GF_Config $index $index)
1017 ChangeValue 124 $tmp
1018 # MixedVisualWorkaround
1019 Set $index = (Add $index 1)
1020 Set $tmp = (StrCopy $GF_Config $index $index)
1021 ChangeValue 125 $tmp
1022 # RaiseOverNativeWindows
1023 Set $index = (Add $index 1)
1024 Set $tmp = (StrCopy $GF_Config $index $index)
1025 ChangeValue 126 $tmp
1027 Set $index = (Add $index 1)
1028 Set $tmp = (StrCopy $GF_Config $index $index)
1029 ChangeValue 129 $tmp
1031 Set $index = (Add $index 1)
1032 Set $tmp = (StrCopy $GF_Config $index $index)
1033 ChangeValue 130 $tmp
1035 Set $index = (Add $index 1)
1036 Set $tmp = (StrCopy $GF_Config $index $index)
1037 ChangeValue 128 $tmp
1040 If $index > 3200 Then
1042 Do {Echo ConfigCenter: problems when loading globalfeel config!}
1043 Do {Echo ConfigCenter: can you send a bug report to:}
1044 Do {Echo ConfigCenter: <fvwm-themes-devel@lists.sourceforge.net>}
1048 If $InStart == 1 Then
1050 Set $GF_ShowFocus = 1
1053 ChangeTitle 990 $msg
1056 #----------------------------------------------------------------------------
1057 # config tool switching
1059 If $GF_HideFocus == {1} Then
1061 Set $GF_HideFocus = 0
1066 Set $tmp = (Add $tmp 1)
1070 If $GF_HideMove == {1} Then
1072 Set $GF_HideMove = 0
1077 Set $tmp = (Add $tmp 1)
1081 If $GF_HidePaging == {1} Then
1083 Set $GF_HidePaging = 0
1088 Set $tmp = (Add $tmp 1)
1092 If $GF_HideTransient == {1} Then
1094 Set $GF_HideTransient = 0
1096 While $tmp <> 107 Do
1099 Set $tmp = (Add $tmp 1)
1103 If $GF_HideHints == {1} Then
1105 Set $GF_HideHints = 0
1107 While $tmp <> 131 Do
1110 Set $tmp = (Add $tmp 1)
1114 If $GF_HidePreference == {1} Then
1116 Set $GF_HidePreference = 0
1118 While $tmp <> 965 Do
1121 Set $tmp = (Add $tmp 1)
1125 If $GF_ShowFocus == {1} Then
1127 Set $GF_ShowFocus = 0
1128 Set $ConfigTool = {Focus}
1133 Set $tmp = (Add $tmp 1)
1137 If $GF_ShowMove == {1} Then
1139 Set $GF_ShowMove = 0
1140 Set $ConfigTool = {Move}
1145 Set $tmp = (Add $tmp 1)
1149 If $GF_ShowPaging == {1} Then
1151 Set $GF_ShowPaging = 0
1152 Set $ConfigTool = {Paging}
1157 Set $tmp = (Add $tmp 1)
1161 If $GF_ShowTransient == {1} Then
1163 Set $GF_ShowTransient = 0
1164 Set $ConfigTool = {Transient}
1166 While $tmp <> 107 Do
1169 Set $tmp = (Add $tmp 1)
1173 If $GF_ShowHints == {1} Then
1175 Set $GF_ShowHints = 0
1176 Set $ConfigTool = {Hints}
1178 While $tmp <> 131 Do
1181 Set $tmp = (Add $tmp 1)
1185 If $GF_ShowPreference == {1} Then
1187 Set $GF_ShowPreference = 0
1188 Set $ConfigTool = {GF_Preference}
1190 While $tmp <> 965 Do
1193 Set $tmp = (Add $tmp 1)
1197 #----------------------------------------------------------------------------
1198 # Update "font" : first part
1200 If (RemainderOfDiv (GetTime) 2)==0 Then
1202 If $Component == {globalfeel} Then
1204 Set $GF_UpdateButtonFont = 1
1205 Set $GF_BuildConfig = 1
1209 #----------------------------------------------------------------------------
1210 # Build config for fvwm-themes-script:
1212 If $GF_BuildConfig == 1 Then
1214 Set $GF_BuildConfig = 0
1217 Set $tmp = (Add $GF_Focus -10)
1218 Set $t = (Add $GF_Placement -18)
1219 Set $GF_LastConfigFocus = $tmp (GetValue 15) (GetValue 16) (GetValue 17) $t (GetValue 26) (GetValue 27)
1221 Set $tmp = (Add $GF_ResizeOutLine -32)
1222 Set $t = (Add $GF_Emulate -38)
1223 Set $GF_LastConfigMove = $tmp (GetTitle 35) {!} $t (GetValue 41) (GetValue 42) (GetValue 43) (GetTitle 46) {!} (GetValue 48) (GetTitle 51) {!}
1224 Set $GF_LastConfigMove = $GF_LastConfigMove (GetTitle 53) {!} $GF_Xor (GetTitle 58) {!}
1226 Set $tmp = (Add (GetValue 62) -1)
1227 Set $t = (Add (GetValue 65) -1)
1228 Set $GF_LastConfigPaging = $tmp (GetValue 63) $t (GetValue 66) (GetTitle 68) {!} (GetTitle 71) {!} (GetValue 74) (GetTitle 78) {!} (GetTitle 81) {!}
1230 Set $GF_LastConfigTransient = (GetValue 91) (GetValue 92) (GetValue 93) (GetValue 94) (GetValue 95) (GetTitle 98) {!} (GetValue 99) (GetTitle 102) {!} (GetTitle 104) {!}
1232 Set $GF_LastConfigHints = (GetValue 111) (GetValue 112) (GetValue 113) (GetValue 114) (GetValue 115) (GetValue 116) (GetValue 118) (GetValue 119) (GetValue 120) (GetValue 121)
1233 Set $GF_LastConfigHints = $GF_LastConfigHints (GetValue 124) (GetValue 125) (GetValue 126) (GetValue 129) (GetValue 130) (GetValue 128)
1235 Set $GF_LastConfig = $GF_LastConfigFocus $GF_LastConfigMove $GF_LastConfigPaging $GF_LastConfigTransient $GF_LastConfigHints
1238 If $InStart == 1 Then
1245 If $CmdType == {Try} Then
1247 If $CmdType == {Save} Then
1251 If $GF_BuildAllConfig == 1 Then
1253 Set $GF_BuildAllConfig = 0
1256 Set $GF_TryConfigFocus = $GF_LastConfigFocus
1257 Set $GF_TryConfigMove = $GF_LastConfigMove
1258 Set $GF_TryConfigPaging = $GF_LastConfigPaging
1259 Set $GF_TryConfigTransient = $GF_LastConfigTransient
1260 Set $GF_TryConfigHints = $GF_LastConfigHints
1264 Set $GF_SaveConfigFocus = $GF_LastConfigFocus
1265 Set $GF_SaveConfigMove = $GF_LastConfigMove
1266 Set $GF_SaveConfigPaging = $GF_LastConfigPaging
1267 Set $GF_SaveConfigTransient = $GF_LastConfigTransient
1268 Set $GF_SaveConfigHints = $GF_LastConfigHints
1275 If $ConfigTool == {Focus} Then
1276 Set $GF_TryConfigFocus = $GF_LastConfigFocus
1277 If $ConfigTool == {Move} Then
1278 Set $GF_TryConfigMove = $GF_LastConfigMove
1279 If $ConfigTool == {Paging} Then
1280 Set $GF_TryConfigPaging = $GF_LastConfigPaging
1281 If $ConfigTool == {Transient} Then
1282 Set $GF_TryConfigTransient = $GF_LastConfigTransient
1283 If $ConfigTool == {Hints} Then
1284 Set $GF_TryConfigHints = $GF_LastConfigHints
1288 If $ConfigTool == {Focus} Then
1289 Set $GF_SaveConfigFocus = $GF_LastConfigFocus
1290 If $ConfigTool == {Move} Then
1291 Set $GF_SaveConfigMove = $GF_LastConfigMove
1292 If $ConfigTool == {Paging} Then
1293 Set $GF_SaveConfigPaging = $GF_LastConfigPaging
1294 If $ConfigTool == {Transient} Then
1295 Set $GF_SaveConfigTransient = $GF_LastConfigTransient
1296 If $ConfigTool == {Hints} Then
1297 Set $GF_SaveConfigHints = $GF_LastConfigHints
1302 Set $GF_TryConfig = $GF_TryConfigFocus $GF_TryConfigMove $GF_TryConfigPaging $GF_TryConfigTransient $GF_TryConfigHints
1304 Set $GF_SaveConfig = $GF_SaveConfigFocus $GF_SaveConfigMove $GF_SaveConfigPaging $GF_SaveConfigTransient $GF_SaveConfigHints
1306 If $InStart == 1 Then
1309 Set $GF_CurrentConfig = $GF_TryConfig
1313 # ----------------------------------------------------------------------------
1316 If $DoApplyCmd == 1 Then
1320 If $CmdType == {Try} Then
1322 If $GF_TryIsGlobal == 0 Then
1324 Set $msg = $l_AppliedInternally
1325 Set $tmp = $ConfigTool
1329 Set $msg = $l_AppliedExternally
1332 Set $conf = $GF_TryConfig
1335 If $CmdType == {Save} Then
1337 If $GF_SaveIsGlobal == 0 Then
1339 Set $msg = $l_SavedInternally
1340 Set $tmp = $ConfigTool
1344 Set $msg = $l_SavedExternally
1347 Set $conf = $GF_SaveConfig
1350 Set $cmd = $SendMsgAndGet{'save-try-config }$Component{ }$tmp{ 0 }$conf{'}
1351 Set $check = (GetOutput $cmd 1 -1)
1352 If $check == {ok} Then
1354 If $CmdType == {Try} Then
1356 Set $cmd = $SendMsgAndGet{'save-try-last-build 1'}
1357 Do {PipeRead "}$cmd{"}
1358 Set $GF_CurrentConfig = $GF_TryConfig
1360 If $CmdType == {Save} Then
1362 # there some problems here ...
1363 If $GF_SaveConfig <> $GF_CurrentConfig Then
1365 Set $cmd = $SendMsgAndGet{'save-try-last-build 3'}
1366 Do {PipeRead "}$cmd{"}
1367 Set $msg = $msg { and Pipe}
1368 Set $GF_TryConfig = $GF_SaveConfig
1369 Set $GF_TryConfigFocus = $GF_SaveConfigFocus
1370 Set $GF_TryConfigMove = $GF_SaveConfigMove
1371 Set $GF_TryConfigPaging = $GF_SaveConfigPaging
1372 Set $GF_TryConfigTransient = $GF_SaveConfigTransient
1373 Set $GF_TryConfigHints = $GF_SaveConfigHints
1377 Set $cmd = $SendMsgAndGet{'save-try-last-build 2'}
1380 Set $GF_CurrentConfig = $GF_SaveConfig
1385 Set $msg = $l_Error { }$check
1387 ChangeTitle 990 $msg
1391 #----------------------------------------------------------------------------
1392 # Update "font" : 2nd part
1394 If $GF_UpdateButtonFont == 1 Then
1396 Set $GF_UpdateButtonFont = 0
1397 # Update default font
1398 If $DefaultFont <> {Sel} Then
1400 Set $DefaultFont = {Sel}
1401 ChangeFont 993 $SelFont
1405 If $GF_TryIsGlobal == 1 Then
1407 If $GF_TryConfig == $GF_LastConfig Then
1412 If $ConfigTool == {Focus} Then
1414 If $GF_TryConfigFocus == $GF_LastConfigFocus Then
1417 If $ConfigTool == {Move} Then
1419 If $GF_TryConfigMove == $GF_LastConfigMove Then
1422 If $ConfigTool == {Paging} Then
1424 If $GF_TryConfigPaging == $GF_LastConfigPaging Then
1427 If $ConfigTool == {Transient} Then
1429 If $GF_TryConfigTransient == $GF_LastConfigTransient Then
1432 If $ConfigTool == {Hints} Then
1434 If $GF_TryConfigHints == $GF_LastConfigHints Then
1440 If $TryFont == {Sel} Then
1442 ChangeFont 992 $ShadeFont
1443 Set $TryFont = {Shade}
1448 If $TryFont == {Shade} Then
1450 ChangeFont 992 $SelFont
1451 Set $TryFont = {Sel}
1457 If $GF_SaveIsGlobal == 1 Then
1459 If $GF_SaveConfig == $GF_LastConfig Then
1464 If $ConfigTool == {Focus} Then
1466 If $GF_SaveConfigFocus == $GF_LastConfigFocus Then
1469 If $ConfigTool == {Move} Then
1471 If $GF_SaveConfigMove == $GF_LastConfigMove Then
1474 If $ConfigTool == {Paging} Then
1476 If $GF_SaveConfigPaging == $GF_LastConfigPaging Then
1479 If $ConfigTool == {Transient} Then
1481 If $GF_SaveConfigTransient == $GF_LastConfigTransient Then
1484 If $ConfigTool == {Hints} Then
1486 If $GF_SaveConfigHints == $GF_LastConfigHints Then
1492 If $SaveFont == {Sel} Then
1494 ChangeFont 991 $ShadeFont
1495 Set $SaveFont = {Shade}
1500 If $SaveFont == {Shade} Then
1502 ChangeFont 991 $SelFont
1503 Set $SaveFont = {Sel}
1507 #----------------------------------------------------------------------------
1510 If $GF_XorBrowser <> {} Then
1512 Set $msg = (ReceivFromScript $GF_XorBrowser)
1513 If $msg <> {No message} Then
1515 Set $GF_XorBrowser = {}
1516 If $msg <> {Cancel} Then
1518 If $GF_Xor == 1 Then
1519 Set $GF_XorPixmap = $msg
1522 # Hex -> Value conversion
1523 Set $cmd = $SendMsgAndGet{"hexcolor-2-value }$msg{"}
1524 Set $msg = (GetOutput $cmd 1 -1)
1525 Set $GF_XorValue = $msg
1532 If $NullMessage == {1} Then
1534 Set $NullMessage = 0
1536 ChangeTitle 990 $msg
1539 If $SpecialMessage <> {} Then
1541 ChangeTitle 990 $SpecialMessage
1542 Set $SpecialMessage = {}
1547 # ---------------------------------------------------------------------------
1551 # ---------------------------------------------------------------------------
1553 # ---------------------------------------------------------------------------
1555 # Head: GUI chooser and rectangle delimiter
1557 # ---------------------------------------------------------------------------
1561 Flags NoReliefString
1571 Set $tmp = (GetValue 1)
1574 Set $GF_HideFocus = 1
1575 Set $GF_HideMove = 1
1576 Set $GF_HidePaging = 1
1577 Set $GF_HideTransient = 1
1578 Set $GF_HideHints = 1
1579 Set $GF_HidePreference = 1
1580 Set $BD_HideKeyboard = 1
1581 Set $NullMessage = 1
1582 ChangeFont 2 $ShadeFont
1583 ChangeFont 1 $SelFont
1584 If $GF_CurrentTheme == {} Then
1586 If $PersonalThemes == {} Then
1588 Set $GF_ShowPreference = 1
1589 If $TryFont <> {Shade} Then
1591 ChangeFont 992 $ShadeFont
1592 Set $TryFont = {Shade}
1594 If $SaveFont <> {Sel} Then
1596 ChangeFont 991 $SelFont
1597 Set $SaveFont = {Sel}
1599 ChangeFont 993 $ShadeFont
1600 Set $DefaulFont = {Shade}
1601 Set $Component = {GF_Preference}
1610 Set $cmd = $SendMsgAndGet{"get-perso-themes"}
1611 Set $PersonalThemes = (GetOutput $cmd 1 -1)
1612 ChangeTitle 959 $PersonalThemes
1615 # --- GF themes config
1618 ### GF save, current and themes
1619 Set $cmd = $SendMsgAndGet{"get-themes-info }$GF_FileName{" --line=1}
1620 # where we save: the theme
1621 Set $tmp = (GetOutput $cmd 1 -1)
1622 ChangeTitle 957 $tmp
1624 Set $cmd = $GetLine{2}
1625 Set $GF_CurrentTheme = (GetOutput $cmd 1 -1)
1626 # themes with a globalfeel component
1627 Set $cmd = $GetLine{3 --clear-buffer}
1628 Set $GF_ThemesWith = (GetOutput $cmd 1 -1)
1629 ChangeTitle 953 $GF_ThemesWith
1630 Set $tmp = $l_BPrefLoaded $Component $l_MPrefLoaded $GF_CurrentTheme $l_APrefLoaded
1631 ChangeTitle 951 $tmp
1638 Flags NoReliefString
1646 Set $tmp = (GetValue 2)
1649 Set $Component = {globalfeel}
1650 Set $GF_HideFocus = 1
1651 Set $GF_HideMove = 1
1652 Set $GF_HidePaging = 1
1653 Set $GF_HideTransient = 1
1654 Set $GF_HideHints = 1
1655 Set $GF_HidePreference = 1
1656 Set $NullMessage = 1
1657 ChangeFont 1 $ShadeFont
1658 ChangeFont 2 $SelFont
1659 ChangeFont 993 $SelFont
1660 Set $DefaultFont = {Sel}
1664 Set $GF_ShowFocus = 1
1665 Set $GF_HideFocus = 0
1669 Set $GF_ShowMove = 1
1670 Set $GF_HideMove = 0
1674 Set $GF_ShowPaging = 1
1675 Set $GF_HidePaging = 0
1679 Set $GF_ShowTransient = 1
1680 Set $GF_HideTransient = 0
1684 Set $GF_ShowHints = 1
1685 Set $GF_HideHints = 0
1702 ##############################################################################
1706 ##############################################################################
1708 #-----------------------------------------------------------------------------
1710 # Focus and Placement
1712 #-----------------------------------------------------------------------------
1720 Flags NoReliefString Hidden NoFocus
1721 Title {Load Configuration ...}
1734 Font -*-fixed-medium-r-semicondensed-*-13-*
1735 Flags NoReliefString Hidden
1741 ChangeValue $GF_Focus 0
1752 Font -*-fixed-medium-r-semicondensed-*-13-*
1753 Flags NoReliefString Hidden
1759 ChangeValue $GF_Focus 0
1770 Font -*-fixed-medium-r-semicondensed-*-13-*
1771 Flags NoReliefString Hidden
1777 ChangeValue $GF_Focus 0
1790 Flags NoReliefString Hidden NoFocus
1799 # ClickToFocusPassesClick/ClickToFocusDoesntPassClick
1804 Font -*-fixed-medium-r-semicondensed-*-13-*
1805 Flags NoReliefString Hidden
1814 # ClickToFocusRaises/ClickToFocusRaisesOff &
1815 # MouseFocusClickRaises/MouseFocusClickDoesntRaise
1820 Font -*-fixed-medium-r-semicondensed-*-13-*
1821 Flags NoReliefString Hidden
1830 # ColormapFocus FollowsMouse / FollowsFocus
1835 Font -*-fixed-medium-r-semicondensed-*-13-*
1836 Flags NoReliefString Hidden
1845 #---------------------------
1846 # Placement of windows, Title
1852 Flags NoReliefString Hidden NoFocus
1861 # TileCascadePlacement
1866 Font -*-fixed-medium-r-semicondensed-*-13-*
1867 Flags NoReliefString Hidden
1873 ChangeValue $GF_Placement 0
1875 Set $GF_Placement = 19
1879 # TileManualPlacement
1884 Font -*-fixed-medium-r-semicondensed-*-13-*
1885 Flags NoReliefString Hidden
1891 ChangeValue $GF_Placement 0
1893 Set $GF_Placement = 20
1898 # MinOverlapPlacement
1903 Font -*-fixed-medium-r-semicondensed-*-13-*
1904 Flags NoReliefString Hidden
1910 ChangeValue $GF_Placement 0
1912 Set $GF_Placement = 21
1917 # MinOverlapPercentPlacement
1922 Font -*-fixed-medium-r-semicondensed-*-13-*
1923 Flags NoReliefString Hidden
1929 ChangeValue $GF_Placement 0
1931 Set $GF_Placement = 22
1941 Font -*-fixed-medium-r-semicondensed-*-13-*
1942 Flags NoReliefString Hidden
1948 ChangeValue $GF_Placement 0
1950 Set $GF_Placement = 23
1959 Font -*-fixed-medium-r-semicondensed-*-13-*
1960 Flags NoReliefString Hidden
1966 ChangeValue $GF_Placement 0
1968 Set $GF_Placement = 24
1973 # "Options" for Placement of windows:
1979 Flags NoReliefString Hidden NoFocus
1988 # GrabFocus/GrabFocusOff
1993 Font -*-fixed-medium-r-semicondensed-*-13-*
1994 Flags NoReliefString Hidden
2003 # UsePPosition/NoPPosition
2008 Font -*-fixed-medium-r-semicondensed-*-13-*
2009 Flags NoReliefString Hidden
2018 #-----------------------------------------------------------------------------
2022 #-----------------------------------------------------------------------------
2030 Flags NoReliefString Hidden NoFocus
2039 # Move Opaque/OutLine
2044 Font -*-fixed-medium-r-semicondensed-*-13-*
2045 Flags NoReliefString Hidden NoFocus
2059 Font -*-fixed-medium-r-semicondensed-*-13-*
2060 Flags NoReliefString Hidden
2066 ChangeValue $GF_ResizeOutLine 0
2068 Set $GF_ResizeOutLine = 32
2077 Font -*-fixed-medium-r-semicondensed-*-13-*
2078 Flags NoReliefString Hidden
2084 ChangeValue $GF_ResizeOutLine 0
2086 Set $GF_ResizeOutLine = 33
2090 # Opaque move size (%)
2095 Font -*-fixed-medium-r-semicondensed-*-13-*
2096 Flags NoReliefString Hidden NoFocus
2111 Font -*-fixed-medium-r-semicondensed-*-13-*
2112 Flags NoReliefString Hidden
2126 Font -*-fixed-medium-r-semicondensed-*-13-*
2127 Flags NoReliefString Hidden NoFocus
2136 # Geometry windows position
2141 Font -*-fixed-medium-r-semicondensed-*-13-*
2142 Flags NoReliefString Hidden NoFocus
2155 Font -*-fixed-medium-r-semicondensed-*-13-*
2156 Flags NoReliefString Hidden
2162 ChangeValue $GF_Emulate 0
2164 Set $GF_Emulate = 38
2172 Font -*-fixed-medium-r-semicondensed-*-13-*
2173 Flags NoReliefString Hidden
2179 ChangeValue $GF_Emulate 0
2181 Set $GF_Emulate = 39
2185 # Hide Geometry windows
2190 Font -*-fixed-medium-r-semicondensed-*-13-*
2191 Flags NoReliefString Hidden NoFocus
2205 Font -*-fixed-medium-r-semicondensed-*-13-*
2206 Flags NoReliefString Hidden
2212 If $GF_HideGeoSize == 1 Then
2214 Set $GF_HideGeoSize = (GetValue 41)
2223 Font -*-fixed-medium-r-semicondensed-*-13-*
2224 Flags NoReliefString Hidden
2230 If $GF_HideGeoMove == 1 Then
2232 Set $GF_HideGeoMove = (GetValue 42)
2236 # BugOpts FlickeringMoveWorkaround
2241 Font -*-fixed-medium-r-semicondensed-*-13-*
2242 Flags NoReliefString Hidden
2251 #-------------------------
2258 Flags NoReliefString Hidden NoFocus
2272 Font -*-fixed-medium-r-semicondensed-*-13-*
2273 Flags NoReliefString Hidden NoFocus
2288 Font -*-fixed-medium-r-semicondensed-*-13-*
2289 Flags NoReliefString Hidden
2303 Font -*-fixed-medium-r-semicondensed-*-13-*
2304 Flags NoReliefString Hidden NoFocus
2318 Font -*-fixed-medium-r-semicondensed-*-13-*
2319 Flags NoReliefString Hidden
2333 Font -*-fixed-medium-r-semicondensed-*-13-*
2334 Flags NoReliefString Hidden NoFocus
2348 Font -*-fixed-medium-r-semicondensed-*-13-*
2349 Flags NoReliefString Hidden NoFocus
2362 Font -*-fixed-medium-r-semicondensed-*-13-*
2363 Flags NoReliefString Hidden
2377 Font -*-fixed-medium-r-semicondensed-*-13-*
2378 Flags NoReliefString Hidden NoFocus
2391 Font -*-fixed-medium-r-semicondensed-*-13-*
2392 Flags NoReliefString Hidden
2401 #-------------------------
2402 # XOR Color or Pixmap:
2408 Flags NoReliefString Hidden NoFocus
2417 # Color or Pixmap? Color
2422 Font -*-fixed-medium-r-semicondensed-*-13-*
2423 Flags NoReliefString Hidden
2431 If $GF_Xor == 1 Then
2434 Set $GF_XorPixmap = (GetTitle 58)
2435 ChangeTitle 58 $GF_XorValue
2436 ChangeTitle 57 $l_OneColor
2437 ChangeTitle 59 $l_StartColorSel
2442 # Color or Pixmap? Pixmap
2447 Font -*-fixed-medium-r-semicondensed-*-13-*
2448 Flags NoReliefString Hidden
2456 If $GF_Xor == 0 Then
2459 Set $GF_XorValue = (GetTitle 58)
2460 ChangeTitle 58 $GF_XorPixmap
2461 ChangeTitle 57 $l_OnePixmap
2462 ChangeTitle 59 $l_StartImages
2472 Font -*-fixed-medium-r-semicondensed-*-13-*
2473 Flags NoReliefString Hidden NoFocus
2488 Font -*-fixed-medium-r-semicondensed-*-13-*
2489 Flags NoReliefString Hidden
2504 Font -*-fixed-medium-r-semicondensed-*-13-*
2505 Flags NoReliefString Hidden
2511 If $GF_Xor == 1 Then
2512 Set $arg={FvwmScript-IconBrowser --icon-colorset }$ViewerColorset{ --text-colorset }$TextColorset
2515 Set $tmp = (GetTitle 58)
2516 Set $cmd = $SendMsgAndGet{"value-2-hexcolor }$tmp{"}
2517 Set $tmp = (GetOutput $cmd 1 -1)
2518 Set $arg={FvwmScript-ColorSelector --launched yes --return-type pixels --viewer-colorset } $ViewerColorset { --color }$tmp
2519 ChangeTitle 990 {The color selector returns good values only with a TrueColor visual (16, 24 or 32 bpp)}
2521 Set $GF_XorBrowser = (LaunchScript $arg)
2526 #-----------------------------------------------------------------------------
2528 # Pagination and Mouse Parameters
2530 #-----------------------------------------------------------------------------
2538 Flags NoReliefString Hidden NoFocus
2547 # Horizontal Paging: title
2552 Font -*-fixed-medium-r-semicondensed-*-13-*
2553 Flags NoReliefString Hidden NoFocus
2562 # Horizontal Paging: Value
2567 Font -*-fixed-medium-r-semicondensed-*-13-*
2568 Flags NoReliefString Hidden
2577 # Horizontal Paging: circular ?
2582 Font -*-fixed-medium-r-semicondensed-*-13-*
2583 Flags NoReliefString Hidden
2592 # Vertical Paging: title
2597 Font -*-fixed-medium-r-semicondensed-*-13-*
2598 Flags NoReliefString Hidden NoFocus
2607 # Vertical Paging: Value
2612 Font -*-fixed-medium-r-semicondensed-*-13-*
2613 Flags NoReliefString Hidden
2622 # Vertical Paging: circular ?
2627 Font -*-fixed-medium-r-semicondensed-*-13-*
2628 Flags NoReliefString Hidden
2637 # Paging Delay : title
2642 Font -*-fixed-medium-r-semicondensed-*-13-*
2643 Flags NoReliefString Hidden NoFocus
2653 # Paging Delay: value
2659 Font -*-fixed-medium-r-semicondensed-*-13-*
2660 Flags NoReliefString Hidden
2674 Font -*-fixed-medium-r-semicondensed-*-13-*
2675 Flags NoReliefString Hidden NoFocus
2684 # Moving Edge resistance: title
2689 Font -*-fixed-medium-r-semicondensed-*-13-*
2690 Flags NoReliefString Hidden NoFocus
2700 # Moving Edge resistance: value
2706 Font -*-fixed-medium-r-semicondensed-*-13-*
2707 Flags NoReliefString Hidden
2716 # Paging Delay : pixels
2721 Font -*-fixed-medium-r-semicondensed-*-13-*
2722 Flags NoReliefString Hidden NoFocus
2736 Font -*-fixed-medium-r-semicondensed-*-13-*
2737 Flags NoReliefString Hidden NoFocus
2752 Font -*-fixed-medium-r-semicondensed-*-13-*
2753 Flags NoReliefString Hidden
2762 # Pame Farme : pixels
2767 Font -*-fixed-medium-r-semicondensed-*-13-*
2768 Flags NoReliefString Hidden NoFocus
2777 #----------------------------------------
2786 Flags NoReliefString Hidden NoFocus
2795 # Double click: title
2800 Font -*-fixed-medium-r-semicondensed-*-13-*
2801 Flags NoReliefString Hidden NoFocus
2811 # Double Click: value
2817 Font -*-fixed-medium-r-semicondensed-*-13-*
2818 Flags NoReliefString Hidden
2827 # Double Click : pixels
2832 Font -*-fixed-medium-r-semicondensed-*-13-*
2833 Flags NoReliefString Hidden NoFocus
2842 # MoveThreshold: title
2847 Font -*-fixed-medium-r-semicondensed-*-13-*
2848 Flags NoReliefString Hidden NoFocus
2858 # MoveThreshold: value
2864 Font -*-fixed-medium-r-semicondensed-*-13-*
2865 Flags NoReliefString Hidden
2874 # MoveThreshold: pixels
2879 Font -*-fixed-medium-r-semicondensed-*-13-*
2880 Flags NoReliefString Hidden NoFocus
2889 #-----------------------------------------------------------------------------
2893 #-----------------------------------------------------------------------------
2901 Flags NoReliefString Hidden NoFocus
2910 # NakedTransient/DecorateTransient
2915 Font -*-fixed-medium-r-semicondensed-*-13-*
2916 Flags NoReliefString Hidden
2925 # DontRaiseTransient/RaiseTransient
2930 Font -*-fixed-medium-r-semicondensed-*-13-*
2931 Flags NoReliefString Hidden
2940 # DontLowerTransient/LowerTransient
2945 Font -*-fixed-medium-r-semicondensed-*-13-*
2946 Flags NoReliefString Hidden
2955 # DontStackTransientParent/StackTransientParent
2960 Font -*-fixed-medium-r-semicondensed-*-13-*
2961 Flags NoReliefString Hidden
2970 # GrabFocusTransient/GrabFocusTransientOff
2975 Font -*-fixed-medium-r-semicondensed-*-13-*
2976 Flags NoReliefString Hidden
2985 #-------------------------
2992 Flags NoReliefString Hidden NoFocus
3006 Font -*-fixed-medium-r-semicondensed-*-13-*
3007 Flags NoReliefString Hidden NoFocus
3022 Font -*-fixed-medium-r-semicondensed-*-13-*
3023 Flags NoReliefString Hidden
3032 # ShadeScroll/Shrinks
3037 Font -*-fixed-medium-r-semicondensed-*-13-*
3038 Flags NoReliefString Hidden
3047 # SetAnimation title
3052 Font -*-fixed-medium-r-semicondensed-*-13-*
3053 Flags NoReliefString Hidden NoFocus
3062 # SetAnimation speed title
3067 Font -*-fixed-medium-r-semicondensed-*-13-*
3068 Flags NoReliefString Hidden NoFocus
3077 # SetAnimation speed value
3082 Font -*-fixed-medium-r-semicondensed-*-13-*
3083 Flags NoReliefString Hidden
3092 # SetAnimation fractions-to-move-list title
3097 Font -*-fixed-medium-r-semicondensed-*-13-*
3098 Flags NoReliefString Hidden NoFocus
3107 # SetAnimation fractions-to-move-list value
3113 Font -*-fixed-medium-r-semicondensed-*-13-*
3114 Flags NoReliefString Hidden
3123 # Some preconfigured value title
3128 Font -*-fixed-medium-r-semicondensed-*-13-*
3129 Flags NoReliefString Hidden NoFocus
3138 # Some preconfigured value: value
3143 Font -*-fixed-medium-r-semicondensed-*-13-*
3144 Flags NoReliefString Hidden
3153 #-----------------------------------------------------------------------------
3155 # Hints, Busy Cursor
3157 #-----------------------------------------------------------------------------
3165 Flags NoReliefString Hidden NoFocus
3179 Font -*-fixed-medium-r-semicondensed-*-13-*
3180 Flags NoReliefString Hidden
3194 Font -*-fixed-medium-r-semicondensed-*-13-*
3195 Flags NoReliefString Hidden NoFocus
3209 Font -*-fixed-medium-r-semicondensed-*-13-*
3210 Flags NoReliefString Hidden
3224 Font -*-fixed-medium-r-semicondensed-*-13-*
3225 Flags NoReliefString Hidden
3239 Font -*-fixed-medium-r-semicondensed-*-13-*
3240 Flags NoReliefString Hidden
3254 Font -*-fixed-medium-r-semicondensed-*-13-*
3255 Flags NoReliefString Hidden
3264 #---------------------
3265 # Busy cursor Title:
3271 Flags NoReliefString Hidden NoFocus
3285 Font -*-fixed-medium-r-semicondensed-*-13-*
3286 Flags NoReliefString Hidden
3300 Font -*-fixed-medium-r-semicondensed-*-13-*
3301 Flags NoReliefString Hidden
3315 Font -*-fixed-medium-r-semicondensed-*-13-*
3316 Flags NoReliefString Hidden
3330 Font -*-fixed-medium-r-semicondensed-*-13-*
3331 Flags NoReliefString Hidden
3332 Title {ModuleSynchronous}
3340 #--------------------------------
3341 # Advanced (defaults are good!)
3347 Flags NoReliefString Hidden NoFocus
3361 Font -*-fixed-medium-r-semicondensed-*-13-*
3362 Flags NoReliefString Hidden NoFocus
3376 Font -*-fixed-medium-r-semicondensed-*-13-*
3377 Flags NoReliefString Hidden
3378 Title {Default|2|9|19|29|39|49|61|No Limit}
3386 # MixedVisualWorkaround
3391 Font -*-fixed-medium-r-semicondensed-*-13-*
3392 Flags NoReliefString Hidden
3393 Title { MixedVisualWorkaround}
3401 # RaiseOverNativeWindows
3406 Font -*-fixed-medium-r-semicondensed-*-13-*
3407 Flags NoReliefString Hidden
3408 Title { RaiseOverNativeWindows}
3421 Font -*-fixed-medium-r-semicondensed-*-13-*
3422 Flags NoReliefString Hidden
3436 Font -*-fixed-medium-r-semicondensed-*-13-*
3437 Flags NoReliefString Hidden
3438 Title { BackingStore}
3452 Font -*-fixed-medium-r-semicondensed-*-13-*
3453 Flags NoReliefString Hidden NoFocus
3462 # ModuleTimeOut: value
3467 Font -*-fixed-medium-r-semicondensed-*-13-*
3468 Flags NoReliefString Hidden
3469 Title {2 sec|5 sec|7 sec|10 sec|15 sec |30 sec|45 sec|60 sec|120 sec}
3477 #-----------------------------------------------------------------------------
3481 #-----------------------------------------------------------------------------
3483 #theme and files title
3489 Flags NoReliefString Hidden NoFocus
3503 Flags NoReliefString Hidden NoFocus
3504 Font -*-fixed-medium-r-semicondensed-*-13-*
3513 # load an other config: title
3518 Flags NoReliefString Hidden NoFocus
3519 Font -*-fixed-medium-r-semicondensed-*-13-*
3528 # load an other config: choices
3533 Flags NoReliefString Hidden
3548 Flags NoReliefString Hidden NoFocus
3557 # load an other config: apply
3563 Flags NoReliefString Hidden
3569 Set $ThemeToLoad = (GetValue 953)
3570 Set $GF_UpdateConfig = 1
3571 Set $LoadFromPreference = 1
3576 # where we save: title
3581 Flags NoReliefString Hidden NoFocus
3582 Font -*-fixed-medium-r-semicondensed-*-13-*
3591 # where we save: theme
3596 Flags NoReliefString Hidden NoFocus
3597 Font -*-fixed-medium-r-semicondensed-*-13-*
3606 # change where we save: title
3611 Flags NoReliefString Hidden NoFocus
3612 Font -*-fixed-medium-r-semicondensed-*-13-*
3621 # change where we save: choice
3626 Flags NoReliefString Hidden
3635 # change where we save: apply
3641 Flags NoReliefString Hidden
3647 Set $tmp = (GetValue 959)
3648 Set $cmd = $SendMsgAndGet{"set-save-file }$Component{ }$tmp{"}
3649 Set $tmp = (GetOutput $cmd 1 -1)
3650 ChangeTitle 957 $tmp
3660 Flags NoReliefString Hidden NoFocus
3674 Font -*-fixed-medium-r-semicondensed-*-13-*
3675 Flags NoReliefString Hidden
3681 Set $GF_TryIsGlobal = (GetValue 962)
3689 Font -*-fixed-medium-r-semicondensed-*-13-*
3690 Flags NoReliefString Hidden
3696 Set $GF_DefaultIsGlobal = (GetValue 963)
3704 Font -*-fixed-medium-r-semicondensed-*-13-*
3705 Flags NoReliefString Hidden
3711 Set $GF_SaveIsGlobal = (GetValue 964)
3716 ##############################################################################
3718 # EEEEEEEEEEEEEEENNNNNNNNNNNNNNNNNNNNNNNNDDDDDDDDDDDDDDDDDDDD
3720 ##############################################################################
3722 #-----------------------------------------------------------------------------
3724 # Message, Apply, quit, ...
3726 #-----------------------------------------------------------------------------
3731 Flags NoReliefString NoFocus
3746 Flags NoReliefString
3755 #Execute 1 : just below
3756 #If $Component == {globalfeel} Then
3761 If $ConfigTool == {GF_Preference} Then
3763 Set $msg = {Preference Saved}
3764 Set $cmd = $SendMsgAndGet{"save-preferences }$GF_TryIsGlobal $GF_DefaultIsGlobal $GF_SaveIsGlobal{"}
3765 Set $dummy = (GetOutput $cmd 1 -1)
3766 ChangeTitle 990 $msg
3770 Set $GF_BuildConfig = 1
3771 If $GF_SaveIsGlobal == 1 Then
3772 Set $GF_BuildAllConfig = 1
3774 Set $GF_BuildAllConfig = 0
3776 Set $CmdType = {Save}
3784 Flags NoReliefString
3793 #Execute 1 : just below
3798 If $ConfigTool <> {GF_Preference} Then
3800 Set $GF_BuildConfig = 1
3801 If $GF_TryIsGlobal == 1 Then
3802 Set $GF_BuildAllConfig = 1
3804 Set $GF_BuildAllConfig = 0
3806 Set $CmdType = {Try}
3810 ChangeTitle 990 $l_NoEffectHere
3818 Flags NoReliefString
3827 #Execute 1 : just below
3832 If $ConfigTool <> {GF_Preference} Then
3834 Set $GF_UpdateConfig = 1
3835 Set $ThemeToLoad = {default}
3836 Set $LoadFromPreference = 0
3840 ChangeTitle 990 $l_NoEffectHere
3848 Flags NoReliefString
3857 #Execute 1 : just below
3862 Set $arg={FvwmScript-Help --text-colorset }$TextColorset{ --message " Documentation in progress" --title "Help for the Main Config}
3863 Set $dummy = (LaunchScript $arg)
3870 Flags NoReliefString
3879 #Execute 1 : just below
3884 Set $cmd = $SendMsg{"exit"}