Debian Codegraph @

fvwm/recipes/Dock

raw
1 # Dock desktop, similar to the XFCE or CDE panel
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 Dock recipe loading from $.
10 InfoStoreAdd Recipe "Dock"
11
12 # Includes and FVWM modules {{{1
13 Include components/bindings/Desktop-MMB-EdgeScroll
14 # Type of icons on the desktop {{{2
15 LoadPreferences IconsType
16
17 # Media player {{{2
18 Include components/functions/Music-$[infostore.MusicPlayer]
19
20 # Desktop settings {{{1
21 EdgeScroll 0 0
22 EdgeResistance 0
23 Style * EdgeMoveDelay 250
24 Style * EdgeMoveResistance 100
25 HideGeometryWindow Move, Resize
26 OpaqueMoveSize 100
27 EdgeThickness 1
28
29 EWMH-Desktop 3 3 3 3
30 EWMH-Panel-Bottom 40
31
32 # Desktop manager {{{2
33 DestroyFunc RedrawIconBox
34 AddToFunc RedrawIconBox
35 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+30))))x$(($[vp.height]-50))+$((((50*$[IconColumnsNumber]))+30))-50, IconFill left bottom, IconGrid 30 30"'
36 LoadPreferences DefaultDesktopManager
37
38 # Settings for icons on the desktop {{{1
39 #Style * IconBox 1200x800+30-50, IconFill left bottom, IconGrid 30 30
40 Style * StickyIcon
41 Style ApplicationPanel !Icon
42 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+30))))x$(($[vp.height]-50))+$((((50*$[IconColumnsNumber]))+30))-50, IconFill left bottom, IconGrid 30 30"'
43 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-30))x$(($[vp.height]-50))+30-50, IconFill left bottom right, IconGrid 30 30"'
44
45 # Panel with main buttons {{{1
46 All (FvwmButtons-Panel) Close
47 DestroyModuleConfig FvwmButtons-Panel: *
48 *FvwmButtons-Panel: Geometry -3+3
49 *FvwmButtons-Panel: BoxSize smart
50 *FvwmButtons-Panel: ActiveColorset $[infostore.cs_panel_active]
51 *FvwmButtons-Panel: Colorset $[infostore.cs_panel_inactive]
52 *FvwmButtons-Panel: Rows 2
53 *FvwmButtons-Panel: Columns 3
54 *FvwmButtons-Panel: Padding 0 0
55 *FvwmButtons-Panel: Frame 0
56 *FvwmButtons-Panel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
57
58 # Button 1 - diamond {{{2
59 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/fvwm-crystal/fvwm-crystal.png", \
60 Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_NE], \
61 Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_NE], \
62 Action (Mouse 3) Menu /Applications $[MenuPosition_NE])
63
64 # Button 2 - window list {{{2
65 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/fvwm-crystal/window-list.png", \
66 Action (Mouse 1) Window-List "$[MenuPosition_NE]", \
67 Action (Mouse 2) All (CurrentPage) PlaceAgain anim, \
68 Action (Mouse 3) Window-List-Icons "$[MenuPosition_NE]")
69
70 # Button 3 - Main music button, with some menus {{{2
71 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/categories/Multimedia.png", \
72 Action (Mouse 1) Menu /Player $[MenuPosition_NE], \
73 Action (Mouse 2) Music-GUI, \
74 Action (Mouse 3) Music-QJackGUI, \
75 Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \
76 Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step])
77
78 # Button 4 - music controls {{{2
79 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/fvwm-crystal/media-eject.png", \
80 Action (Mouse 1) Menu /Playlist-button $[MenuPosition_NE], \
81 Action (Mouse 2) Menu /Playback $[MenuPosition_NE], \
82 Action (Mouse 3) Menu /Music/Volume $[MenuPosition_NE], \
83 Action (Mouse 4) Music-Next, \
84 Action (Mouse 5) Music-Prev)
85
86 # Button 5 - music controls {{{2
87 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/fvwm-crystal/media-playback-start.png", \
88 Action (Mouse 1) Music-Play, \
89 Action (Mouse 2) Music-Pause, \
90 Action (Mouse 3) Menu /Mixer $[MenuPosition_NE], \
91 Action (Mouse 4) Music-Speed-Up, \
92 Action (Mouse 5) Music-Speed-Down)
93
94 # Button 6 - music controls {{{2
95 *FvwmButtons-Panel: (1x1, Size 18 18, Icon "16x16/fvwm-crystal/media-skip-forward.png", \
96 Action (Mouse 1) Menu /Speed $[MenuPosition_NE], \
97 Action (Mouse 4) Button-Seek-+, \
98 Action (Mouse 5) Button-Seek--)
99
100 # Pager {{{1
101 DestroyFunc FvwmPagerWindow
102 AddToFunc FvwmPagerWindow
103 + I All (FvwmPager) Close
104 + I DestroyModuleConfig FvwmPager: *
105 #InfoStoreAdd Desk_Pages_X "8"
106 #InfoStoreAdd Desk_Pages_Y "1"
107 #DesktopSize $[infostore.Desk_Pages_X]x$[infostore.Desk_Pages_Y]
108 + I *FvwmPager: MiniIcons
109 + I *FvwmPager: Font none
110 + I *FvwmPager: WindowBorderWidth 1
111 + I *FvwmPager: Window3DBorders
112 #+ I *FvwmPager: NoSeparators
113 + I *FvwmPager: UseSkipList
114 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
115 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
116 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
117 FvwmPagerWindow
118
119 # Dock, applications panel and menu generator {{{1
120 All (ApplicationPanel) Close
121 DestroyModuleConfig ApplicationPanel: *
122 *ApplicationPanel: BoxSize smart
123 *ApplicationPanel: ActiveColorset $[infostore.cs_panel_active]
124 *ApplicationPanel: Colorset $[infostore.cs_panel_inactive]
125 *ApplicationPanel: Rows 2
126 *ApplicationPanel: Padding 1 1
127 *ApplicationPanel: Frame 0
128 *ApplicationPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
129
130 *ApplicationPanel: (3x2, Size 54 36, Swallow (Close, Respawn, FvwmModule) "FvwmButtons-Panel" 'Module FvwmButtons FvwmButtons-Panel')
131
132 # fvwm-crystal.apps {{{2
133 # This creates the distribution-based panel button - defaut distribution
134 # icon, only menu is opened (no default app on the panel). Menus are not
135 # generated
136 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 --button-geometry=2 2 --menu-pos=N --menuname-suffix="Dock" --no-menus --check-execs'
137 # This creates the main panel with applications - default app icon is
138 # shown on the panel, and can be launched using RMB; LMB opens the app
139 # category menu. Menus are not generated
140 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 --button-geometry=2 2 --menu-pos=N --menuname-suffix="Dock" --no-menus --check-execs'
141 # This generates menus for the panel buttons. They are created upside-down,
142 # because panel is on the bottom of the screen
143 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="Dock" --submenu-suffix="Item 100 o100" --sort=rprio --no-panel --check-execs'
144 # This creates the menu with applications available under Alt+Win_R
145 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'
146 # }}}2
147
148 # $[ApplicationPanelLength] is set by fvwm-crystal.apps, contains the number
149 # of the buttons on the panel
150 PipeRead 'echo "*ApplicationPanel: Geometry 538x36+$(((($[vp.width]-(((($[ApplicationPanelLength]*32))+200))))/2))-1"'
151 *ApplicationPanel: (9x1, Size 162 18, Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock-small_date" 'Function Script components/scripts/FvwmScript-Clock-small_date')
152 *ApplicationPanel: (9x1, Size 162 18, Swallow (Close, FvwmModule) "FvwmPager" 'Module FvwmPager')
153
154 Module FvwmButtons ApplicationPanel
155
156 # Desktop menu with left click
157 SetEnv DesktopMenu /FVWM-Crystal
158 #SetEnv DesktopMenu /Applications
159
160 # Notification Area {{{1
161 # Settings of stalonetray {{{2
162 Test (!EnvMatch trayer_width 0) \
163 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
164 24 $(($[trayer_width]/24)) 1 "-3" "-3" NE $[trayer_width] 24 "-3" "-3"; fi'
165 # Settings of trayer {{{2
166 Test (!EnvMatch trayer_width 0) \
167 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
168 request pixel 24 bottom right 3 3; fi'
169
170 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
171
172 # ViM modeline {{{1
173 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm