Debian Codegraph @

fvwm/recipes/Nebulae

raw
1 # Nebulae, loosely based on MS Windows desktop
2 # Written by: Maciej Delmanowski <[email protected]>
3 #
4 # 2007-2013 - Dominique Michel <[email protected]> support for:
5 # See ChangeLog for details
6 #
7 # You can use folding to navigate this file
8
9 Echo Nebulae recipe loading from $.
10 InfoStoreAdd Recipe "Nebulae"
11
12 # Includes and FVWM modules {{{1
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 250
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 28
30
31 # Desktop manager {{{2
32 DestroyFunc RedrawIconBox
33 AddToFunc RedrawIconBox
34 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+36))))x$(($[vp.height]-33))+$((((50*$[IconColumnsNumber]))+18))-30, IconFill left bottom, IconGrid 30 30"'
35 LoadPreferences DefaultDesktopManager
36
37 # Settings for icons on the desktop {{{1
38 #Style * IconBox 1200x800+30-30, IconFill left bottom, IconGrid 30 30
39 Style * StickyIcon
40 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+36))))x$(($[vp.height]-33))+$((((50*$[IconColumnsNumber]))+18))-30, IconFill left bottom, IconGrid 30 30"'
41 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-30))+3+27, IconFill left bottom, IconGrid 30 30"'
42
43 # Main panel {{{1
44 All (FvwmButtons-MainPanel) Close
45 DestroyModuleConfig FvwmButtons-MainPanel: *
46 PipeRead 'echo "*FvwmButtons-MainPanel: Geometry $[vp.width]x$(($(($[panel_font_size]*3))/2))+-1--1"'
47 *FvwmButtons-MainPanel: BoxSize smart
48 *FvwmButtons-MainPanel: ActiveColorset $[infostore.cs_panel_active]
49 *FvwmButtons-MainPanel: Colorset $[infostore.cs_panel_inactive]
50 *FvwmButtons-MainPanel: Rows 1
51 PipeRead 'echo "*FvwmButtons-MainPanel: Columns $(($[vp.width]/24))"'
52 *FvwmButtons-MainPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
53 *FvwmButtons-MainPanel: Padding 1 1
54 *FvwmButtons-MainPanel: Frame 0
55
56 # Diamond {{{2
57 PipeRead 'echo "*FvwmButtons-MainPanel: (4x1, Size 101 $(($(($[panel_font_size]*3))/2)), Title (Side) Crystal, Icon 22x22/fvwm-crystal/fvwm-crystal.png, \
58 Action (Mouse 1) Menu /StartMenu $[MenuPosition_N], \
59 Action (Mouse 3) Menu /FVWM-Crystal $[MenuPosition_N], \
60 Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_N])"'
61
62 # Applications menu generator {{{2
63 # This creates the main "Start Menu", upside down because it's located on the
64 # bottom of the screen
65 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 --root-cat-name="StartMenu" --submenu-suffix="Item 100 o100" --sort=rprio --no-panel --check-execs'
66 AddToMenu /StartMenu "" Nop
67 AddToMenu /StartMenu "%32x32/fvwm-crystal/fvwm-crystal.png%FVWM-Crystal" Popup /FVWM-Crystal
68
69 # This creates app menu available under Alt+Win_R
70 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'
71
72 # Desktop menu with left click {{{1
73 #SetEnv DesktopMenu /FVWM-Crystal
74 SetEnv DesktopMenu /StartMenu
75
76 # Main music button, with some menus {{{2
77 PipeRead 'echo "*FvwmButtons-MainPanel: (1x1, Size 22 $(($(($[panel_font_size]*3))/2)), Icon 22x22/categories/Multimedia.png, \
78 Action (Mouse 1) Menu /Player $[MenuPosition_N], \
79 Action (Mouse 2) Music-GUI, \
80 Action (Mouse 3) Music-QJackGUI, \
81 Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \
82 Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step])"'
83 # music controls button {{{2
84 PipeRead 'echo "*FvwmButtons-MainPanel: (1x1, Size 22 $(($(($[panel_font_size]*3))/2)), Icon 22x22/fvwm-crystal/media-eject.png, \
85 Action (Mouse 1) Menu /Playlist-button $[MenuPosition_N], \
86 Action (Mouse 2) Menu /Music/Volume $[MenuPosition_N], \
87 Action (Mouse 3) Menu /Mixer $[MenuPosition_N], \
88 Action (Mouse 4) Music-Next, \
89 Action (Mouse 5) Music-Prev)"'
90 # music controls button {{{2
91 PipeRead 'echo "*FvwmButtons-MainPanel: (1x1, Size 22 $(($(($[panel_font_size]*3))/2)), Icon 22x22/fvwm-crystal/media-playback-start.png, \
92 Action (Mouse 1) Music-Play, \
93 Action (Mouse 2) Music-Pause, \
94 Action (Mouse 3) Menu /Playback $[MenuPosition_N], \
95 Action (Mouse 4) Music-Speed-Up, \
96 Action (Mouse 5) Music-Speed-Down)"'
97 # music controls button 4 {{{2
98 PipeRead 'echo "*FvwmButtons-MainPanel: (1x1, Size 22 $(($(($[panel_font_size]*3))/2)), Icon 22x22/fvwm-crystal/media-skip-forward.png, \
99 Action (Mouse 1) Menu /Speed $[MenuPosition_N], \
100 Action (Mouse 4) Button-Seek-+, \
101 Action (Mouse 5) Button-Seek--)"'
102 # }}}2
103
104 # Window list {{{1
105 SetEnv WindowsGeom 196
106
107 All (FvwmIconMan-Windows) Close
108 DestroyModuleConfig FvwmIconMan-Windows: *
109
110 *FvwmIconMan-Windows: Resolution Global
111 *FvwmIconMan-Windows: UseWinList True
112 *FvwmIconMan-Windows: DontShow Class=xmms,FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm
113 *FvwmIconMan-Windows: ShowNoIcons false
114 *FvwmIconMan-Windows: DrawIcons Always
115 *FvwmIconMan-Windows: Sort Id
116 *FvwmIconMan-Windows: FollowFocus True
117 *FvwmIconMan-Windows: Format "%t"
118 *FvwmIconMan-Windows: Title ""
119 PipeRead "echo \*FvwmIconMan-Windows: ButtonGeometry $(($[vp.width]-$[trayer_width]-$[WindowsGeom]-88))x$(($(($[panel_font_size]*3))/2))"
120 *FvwmIconMan-Windows: ManagerGeometry 1x1+$[WindowsGeom]--1
121 *FvwmIconMan-Windows: MaxButtonWidthByColumns 4
122 *FvwmIconMan-Windows: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
123 # Tips {{{2
124 *FvwmIconMan-Windows: Tips needed
125 *FvwmIconMan-Windows: TipsDelays 500 200
126 *FvwmIconMan-Windows: TipsFont "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
127 *FvwmIconMan-Windows: TipsBorderWidth 0
128 *FvwmIconMan-Windows: TipsColorset $[infostore.cs_panel_inactive]
129 *FvwmIconMan-Windows: TipsJustification leftup
130 # Button look {{{2
131 *FvwmIconMan-Windows: PlainButton flat
132 *FvwmIconMan-Windows: FocusButton flat
133 *FvwmIconMan-Windows: SelectButton flat
134 *FvwmIconMan-Windows: FocusAndSelectButton flat
135 *FvwmIconMan-Windows: IconButton flat
136 # Colorsets {{{2
137 *FvwmIconMan-Windows: Colorset $[infostore.cs_panel_inactive]
138 *FvwmIconMan-Windows: PlainColorset $[infostore.cs_panel_wininactive]
139 *FvwmIconMan-Windows: FocusColorset $[infostore.cs_panel_winactive]
140 *FvwmIconMan-Windows: SelectColorset $[infostore.cs_panel_active]
141 *FvwmIconMan-Windows: FocusAndSelectColorset $[infostore.cs_panel_active]
142 *FvwmIconMan-Windows: IconColorset $[infostore.cs_panel_inactive]
143 # Actions {{{2
144 *FvwmIconMan-Windows: Action Mouse 1 A SendCommand "Function Window-Focus-DefaultDesk-Raised"
145 *FvwmIconMan-Windows: Action Mouse 2 $[Mod2] SendCommand "Close"
146 *FvwmIconMan-Windows: Action Mouse 2 $[Mod0] SendCommand "Window-Iconify"
147 *FvwmIconMan-Windows: Action Mouse 3 $[Mod] SendCommand "Function Window-Focus-CurrentDesk-Raised"
148 # }}}2
149
150 Module FvwmIconMan FvwmIconMan-Windows
151
152 # The button {{{2
153 PipeRead 'echo "*FvwmButtons-MainPanel: ($(((($[vp.width]-$[trayer_width]-$[WindowsGeom]-88))/24))x1, Size $(($[vp.width]-$[trayer_width]-$[WindowsGeom]-88)) $(($(($[panel_font_size]*3))/2)), Swallow (Close, Respawn, FvwmModule) FvwmIconMan-Windows Nop)"'
154
155 # Pager button {{{2
156 PipeRead 'echo "*FvwmButtons-MainPanel: (1x1, Size 22 $(($(($[panel_font_size]*3))/2)), Icon 22x22/fvwm-crystal/user-desktop.png, \
157 Action (Mouse 2) GotoPage prev, \
158 Action (Mouse 4) GotoPage-Right, \
159 Action (Mouse 5) GotoPage-Left, \
160 Panel (position Button center) FvwmPager \\"Module FvwmPager\\")"'
161
162 # Pager window {{{2
163 DestroyFunc FvwmPagerWindow
164 AddToFunc FvwmPagerWindow
165 + I KillModule FvwmPager
166 + I DestroyModuleConfig FvwmPager: *
167 + I PipeRead 'echo \*FvwmPager: Geometry $((28*$[infostore.Desk_Pages_X]))x$((24*$[infostore.Desk_Pages_Y]))+20000+20000'
168 + I *FvwmPager: MiniIcons
169 + I *FvwmPager: Font none
170 + I *FvwmPager: WindowBorderWidth 1
171 + I *FvwmPager: Window3DBorders
172 #+ I *FvwmPager: NoSeparators
173 + I *FvwmPager: UseSkipList
174 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
175 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
176 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
177
178 FvwmPagerWindow
179
180 # Notification area {{{1
181 # Settings of stalonetray {{{2
182 Test (!EnvMatch trayer_width 0) \
183 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
184 24 $(($[trayer_width]/24)) 1 "-60" "--1" W $[trayer_width] $(($(($[panel_font_size]*3))/2)) "-60" "--1"; fi'
185 # Settings of trayer {{{2
186 Test (!EnvMatch trayer_width 0) \
187 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
188 pixel pixel $(($(($[panel_font_size]*3))/2)) bottom right 62 "1" \\"--width $[trayer_width]\\"; fi'
189 # The button {{{2
190 Test (!EnvMatch trayer_width 0) \
191 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo "*FvwmButtons-MainPanel: ($(($[trayer_width]/24))x1, Size $[trayer_width] $(($(($[panel_font_size]*3))/2)), \
192 Swallow (Close, Respawn, FvwmModule) FvwmStalonePanel Nop)"; \
193 else echo "*FvwmButtons-MainPanel: ($(($[trayer_width]/24))x1, Size $[trayer_width] $(($(($[panel_font_size]*3))/2)), Swallow (UseOld, FvwmModule) trayer Nop)"; fi'
194
195 # Clock {{{2
196 PipeRead 'echo "*FvwmButtons-MainPanel: (3x1, Size 60 $(($(($[panel_font_size]*3))/2)), \
197 Swallow (Close, Respawn, FvwmModule) FvwmScript-Clock \'Script components/scripts/FvwmScript-Clock\', \
198 Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str)"'
199
200 Module FvwmButtons FvwmButtons-MainPanel
201
202 # Change desktop pages using mouse wheel on pager
203 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
204 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
205
206 Style FvwmButtons-Music NoIcon
207 Style FvwmButtons-Clock Layer 2
208
209 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
210 #PrintInfo infostore
211
212 # ViM modeline {{{1
213 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm