Debian Codegraph @

fvwm/recipes/Clean

raw
1 # Clean - make it simple!
2 # Written by: Maciej Delmanowski <[email protected]>
3 # 2007-2013: Dominique Michel <[email protected]>
4 # See ChangeLog for details
5
6 # You can use folding to navigate this file
7
8 Echo Clean recipe loading from $.
9 InfoStoreAdd Recipe "Clean"
10
11 # Includes and FVWM modules {{{1
12 Include components/bindings/Desktop-MMB-EdgeScroll
13 # Type of icons on the desktop {{{2
14 LoadPreferences IconsType
15
16 # Media player {{{2
17 Include components/functions/Music-$[infostore.MusicPlayer]
18
19 # Desktop settings {{{1
20 EdgeScroll 0 0
21 EdgeResistance 0
22 Style * EdgeMoveDelay 0
23 Style * EdgeMoveResistance 100
24 HideGeometryWindow Move, Resize
25 OpaqueMoveSize 100
26 EdgeThickness 1
27
28 EWMH-Desktop 3 3 3 3
29 EWMH-Panel-Bottom 30
30 EWMH-Panel-Right 30
31
32 # Desktop manager {{{2
33 DestroyFunc RedrawIconBox
34 AddToFunc RedrawIconBox
35 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+46))))x$(($[vp.height]-42))+$((((50*$[IconColumnsNumber]))+18))-39, IconFill left bottom, IconGrid 30 30"'
36 LoadPreferences DefaultDesktopManager
37
38 # Settings for icons on the desktop {{{1
39 Style * StickyIcon
40 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+46))))x$(($[vp.height]-42))+$((((50*$[IconColumnsNumber]))+18))-39, IconFill left bottom, IconGrid 30 30"'
41 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-36))x$(($[vp.height]-42))+3-39, IconFill left bottom, IconGrid 30 30"'
42
43 # Applications generator and main menu {{{1
44 # fvwm-crystal.apps {{{2
45 PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --search-icons-in=$[FVWM_USERDIR]/icons/$[infostore.Icon_Theme]/32x32/categories:$[FVWM_USERDIR]/icons/$[infostore.Icon_Theme]/32x32/apps:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/32x32/categories:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/32x32/apps:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/32x32/categories:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/32x32/apps --default-file-icon=32x32/apps/default.png --default-dir-icon=32x32/categories/directory.png --min-submenu-length=5 --sort=prio --no-panel --check-execs'
46 AddToMenu /Applications "" Nop
47 AddToMenu /Applications "%32x32/fvwm-crystal/fvwm-crystal.png%FVWM-Crystal" Popup /FVWM-Crystal
48
49 # Desktop menu with left click {{{1
50 #SetEnv DesktopMenu /FVWM-Crystal
51 SetEnv DesktopMenu /Applications
52
53 # Pager {{{1
54 DestroyFunc FvwmPagerWindow
55 AddToFunc FvwmPagerWindow
56 + I All (FvwmPager) Close
57 + I DestroyModuleConfig FvwmPager: *
58 + I PipeRead 'echo \*FvwmPager: Geometry $((42*$[infostore.Desk_Pages_X]))x$((36*$[infostore.Desk_Pages_Y]))-1-1'
59 + I *FvwmPager: MiniIcons
60 + I *FvwmPager: Font none
61 + I *FvwmPager: WindowBorderWidth 1
62 + I *FvwmPager: Window3DBorders
63 #+ I *FvwmPager: NoSeparators
64 + I *FvwmPager: UseSkipList
65 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
66 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
67 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
68 + I Module FvwmPager
69 FvwmPagerWindow
70
71 # Change desktop pages using mouse wheel on pager
72 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
73 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
74
75 # Notification Area {{{1
76 # Settings of stalonetray {{{2
77 Test (!EnvMatch trayer_width 0) \
78 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel 24 1 $(($[trayer_width]/24)) "-3" "-43" "NE" 24 $[trayer_width] "-3" "-43"; fi'
79 # Settings of trayer {{{2
80 Test (!EnvMatch trayer_width 0) \
81 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel request pixel 24 right right 43 3 ""; fi'
82
83 # Styles {{{1
84 Style FvwmPager !Icon
85
86 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
87
88 #PrintInfo Locale 1 #2
89 #PrintInfo infostore
90
91 # ViM modeline {{{1
92 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm