| 1 |
# Colorsets |
| 2 |
# Written by: Maciej Delmanowski <[email protected]> |
| 3 |
|
| 4 |
SetEnv Colorsets_Suffix ".cs" |
| 5 |
|
| 6 |
# Set default colorset if user haven't choosed it himself |
| 7 |
CheckPreferences LastChoosenColorset 'SavePreferences LastChoosenColorset "Colorsets-Set $[Colorsets_Path]/DarkDesktop.cs"' |
| 8 |
|
| 9 |
DestroyFunc Colorsets-Set |
| 10 |
AddToFunc Colorsets-Set |
| 11 |
+ I Read $* |
| 12 |
+ I UpdateStyles |
| 13 |
# remove me when stalonetray will be fixed, 4 lines: |
| 14 |
+ I Schedule 100 All (FvwmStalonePanel) Iconify True |
| 15 |
+ I Schedule 200 All (FvwmStalonePanel) Iconify False |
| 16 |
+ I Schedule 100 All (FvwmButtons-BottomNotifAera) Iconify True |
| 17 |
+ I Schedule 200 All (FvwmButtons-BottomNotifAera) Iconify False |
| 18 |
+ I SavePreferences LastChoosenColorset "Colorsets-Set $*" |
| 19 |
|
| 20 |
|
| 21 |
DestroyMenu /Colorsets |
| 22 |
AddToMenu /Colorsets |
| 23 |
+ MissingSubmenuFunction Colorsets-generator |
| 24 |
+ '%22x22/categories/directory.png%$[gt.System]' Popup $[FVWM_SYSTEMDIR]/colorsets |
| 25 |
Test (f $[FVWM_USERDIR]/colorsets) + '%22x22/categories/directory.png%$[gt.User]' Popup $[FVWM_USERDIR]/colorsets |
| 26 |
|
| 27 |
DestroyFunc Colorsets-generator |
| 28 |
AddToFunc Colorsets-generator |
| 29 |
+ I DestroyMenu recreate $0 |
| 30 |
+ I AddToMenu $0 |
| 31 |
+ I PipeRead 'for i in $0/*$[Colorsets_Suffix]; do \ |
| 32 |
name=$(basename "${i}" $[Colorsets_Suffix]); \ |
| 33 |
echo \"AddToMenu $0 \'%22x22/fvwm-crystal/colorsets-file.png%${name}\' Colorsets-Set \'${i}\'\"; done' |
| 34 |
|
| 35 |
# vim:ft=fvwm |