Debian Codegraph @

fvwm/recipes/TopDown

raw
1 # TopDown desktop
2 # Written by: Maciej Delmanowski <[email protected]>
3 #
4 # 2007-2013 - Dominique Michel <[email protected]>
5 # See ChangeLog for details
6 #
7 # You can use folding to navigate this file
8
9 Echo TopDown recipe loading from $.
10 InfoStoreAdd Recipe "TopDown"
11
12 # ImagePath {{{1
13 InfoStoreAdd Icon_Theme "Default"
14 ImagePath $[FVWM_USERDIR]/icons/$[infostore.Icon_Theme]:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]
15
16 # Includes and FVWM modules {{{1
17 # Type of icons on the desktop {{{2
18 LoadPreferences IconsType
19
20 # Media player {{{2
21 Include components/functions/Music-$[infostore.MusicPlayer]
22
23 # Desktop settings {{{1
24 EdgeScroll 0 0
25 EdgeResistance 0
26 Style * EdgeMoveDelay 0
27 Style * EdgeMoveResistance 100
28
29 HideGeometryWindow Move, Resize
30 OpaqueMoveSize 100
31 EdgeThickness 1
32
33 EWMH-Desktop 3 3 3 3
34 EWMH-Panel-Top 51
35 EWMH-Panel-Bottom 30
36
37 # Desktop manager {{{2
38 DestroyFunc RedrawIconBox
39 AddToFunc RedrawIconBox
40 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-(((((((($[panel_font_size]*3))/2))))+88))))+$((((50*$[IconColumnsNumber]))+25))-50, IconFill left bottom, IconGrid 30 30"'
41 LoadPreferences DefaultDesktopManager
42
43 # Settings for icons on the desktop {{{1
44 #Style * IconBox 1200x800+30-50, IconFill left bottom, IconGrid 30 30
45 Style * StickyIcon
46 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-(((((((($[panel_font_size]*3))/2))))+88))))+$((((50*$[IconColumnsNumber]))+25))-50, IconFill left bottom, IconGrid 30 30"'
47 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-50))+30-50, IconFill left bottom, IconGrid 30 30"'
48
49 # Main "/ApplicationsAndRootMenu" menu {{{1
50 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]/22x22/categories:$[FVWM_USERDIR]/icons/$[infostore.Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=5 --menuname-suffix=AndRootMenu --sort=prio --no-panel --check-execs'
51 AddToMenu /ApplicationsAndRootMenu
52 + "" Nop
53 + '%22x22/fvwm-crystal/audio-x-generic.png%$[gt.Music]' Popup /Music
54 + "" Nop
55 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.FVWM-Crystal documentation]' Popup /Developer/FVWM-Crystal-Documentation
56 + "" Nop
57 + '%22x22/fvwm-crystal/handles.png%$[gt.Screen resolution]' Popup /ScreenResolution
58 + '%22x22/fvwm-crystal/preferences-desktop-screensaver.png%$[gt.Screensaver]' Popup /Screensaver
59 + '%22x22/fvwm-crystal/camera-photo.png%$[gt.Screenshot]' Popup /Screenshot
60 + "" Nop
61 + '%22x22/fvwm-crystal/preferences-desktop-theme.png%$[gt.Window decorations]' Popup /Window-Decorations
62 + '%22x22/fvwm-crystal/colorsets.png%$[gt.Colorsets]' Popup /Colorsets
63 + '%22x22/fvwm-crystal/preferences-desktop-wallpaper.png%$[gt.Wallpaper]' Popup /Wallpaper
64 + '%22x22/fvwm-crystal/preferences-desktop.png%$[gt.Preferences]' Popup /Preferences
65 + "" Nop
66 + '%22x22/fvwm-crystal/applications-development.png%$[gt.Developer menu]' Popup /Developer
67 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.About FVWM-Crystal]' Include components/functions/About
68 + '%22x22/fvwm-crystal/system-log-out.png%$[gt.Exit]' Popup /Exit
69
70 # Desktop menu with left click
71 #SetEnv DesktopMenu /FVWM-Crystal
72 SetEnv DesktopMenu /ApplicationsAndRootMenu
73
74 # Pager {{{1
75 DestroyFunc FvwmPagerWindow
76 AddToFunc FvwmPagerWindow
77 + I All (FvwmPager) Close
78 + I DestroyModuleConfig FvwmPager: *
79 + I PipeRead 'echo InfoStoreAdd FvwmPager_Width $((65*$[infostore.Desk_Pages_X]))'
80 + I PipeRead 'echo \*FvwmPager: Geometry $[infostore.FvwmPager_Width]x$((48*$[infostore.Desk_Pages_Y]))+$((($[vp.width]-$[infostore.FvwmPager_Width])/2))+3'
81 + I *FvwmPager: MiniIcons
82 + I *FvwmPager: Font none
83 + I *FvwmPager: WindowBorderWidth 1
84 + I *FvwmPager: Window3DBorders
85 #*FvwmPager: NoSeparators
86 + I *FvwmPager: UseSkipList
87 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
88 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
89 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
90 + I Module FvwmPager
91
92 FvwmPagerWindow
93
94 # Change desktop pages using mouse wheel on pager
95 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
96 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
97
98 # Dock, applications panel and menu generator {{{1
99 All (ApplicationPanel) Close
100 DestroyModuleConfig ApplicationPanel: *
101 *ApplicationPanel: BoxSize smart
102 *ApplicationPanel: ActiveColorset $[infostore.cs_panel_active]
103 *ApplicationPanel: Colorset $[infostore.cs_panel_inactive]
104 *ApplicationPanel: Rows 1
105 *ApplicationPanel: Padding 1 1
106 *ApplicationPanel: Frame 0
107 *ApplicationPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
108
109 # fvwm-crystal.apps {{{2
110 # This creates the distribution-based panel button - defaut distribution
111 # icon, only menu is opened (no default app on the panel). Menus are not
112 # generated
113 PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --with=/Applications/$[FVWM_DISTROMENUNAME] --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 --panel-icons=standard --panel-action1=menu --panel-action2=none --panel-action3=menu --panel-size=40 40 --menu-pos=N --menuname-suffix="Dock" --no-menus --check-execs'
114 # This creates the main panel with applications - default app icon is
115 # shown on the panel, and can be launched using RMB; LMB opens the app
116 # category menu. Menus are not generated
117 PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --without=/Applications/$[FVWM_DISTROMENUNAME] --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 --panel-icons=topapp --panel-action1=menu --panel-action2=none --panel-action3=topapp --panel-size=40 40 --menu-pos=N --menuname-suffix="Dock" --no-menus --check-execs'
118 # This generates menus for the panel buttons. They are created upside-down,
119 # because panel is on the bottom of the screen
120 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 --menuname-suffix="Dock" --submenu-suffix="Item 100 o100" --sort=rprio --no-panel --check-execs'
121 # This creates the menu with applications available under Alt+Win_R
122 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]/22x22/categories:$[FVWM_USERDIR]/icons/$[infostore.Icon_Theme]/22x22/apps:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/22x22/categories:$[FVWM_SYSTEMDIR]/icons/$[infostore.Icon_Theme]/22x22/apps:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/22x22/categories:$[FVWM_DISTROMENUDIR]/icons/$[infostore.Icon_Theme]/22x22/apps --default-file-icon=22x22/apps/default.png --default-dir-icon=22x22/categories/directory.png --min-submenu-length=5 --sort=prio --no-panel --check-execs'
123 # }}}2
124
125 # $[ApplicationPanelLength] is set by fvwm-crystal.apps, contains the number
126 # of the buttons on the panel
127 PipeRead 'echo \*ApplicationPanel: Geometry +$((($[vp.width]-(($[ApplicationPanelLength]*40)))/2))-1'
128
129 Module FvwmButtons ApplicationPanel
130
131 # Clock {{{1
132 All (FvwmButtons-Clock) Close
133 DestroyModuleConfig FvwmButtons-Clock: *
134 *FvwmButtons-Clock: Geometry -1-1
135 *FvwmButtons-Clock: BoxSize smart
136 *FvwmButtons-Clock: ActiveColorset $[infostore.cs_panel_active]
137 *FvwmButtons-Clock: Colorset $[infostore.cs_panel_inactive]
138 *FvwmButtons-Clock: Columns 2
139 *FvwmButtons-Clock: Padding 2 2
140 *FvwmButtons-Clock: Frame 0
141 *FvwmButtons-Clock: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
142
143 *FvwmButtons-Clock: (2x1, Size 60 24, \
144 Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock" 'Script components/scripts/FvwmScript-Clock', \
145 Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str)
146
147 Module FvwmButtons FvwmButtons-Clock
148
149 Style FvwmPager !Icon
150 Style ApplicationPanel !Icon
151 Style FvwmButtons-Clock !Icon
152 Style FvwmButtons-Clock Layer 2
153
154 # Notification area {{{1
155 # Settings of stalonetray {{{2
156 Test (!EnvMatch trayer_width 0) \
157 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
158 24 $(($[trayer_width]/24)) 1 "-64" "-1" W $[trayer_width] 24 "-64" "-1"; fi'
159
160 # Settings of trayer {{{2
161 Test (!EnvMatch trayer_width 0) \
162 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
163 request pixel "24" bottom right "64" "3"; fi'
164
165 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
166 #PrintInfo infostore
167
168 # ViM modeline {{{1
169 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm