Debian Codegraph @

fvwm/recipes/SideLine

raw
1 # SideLine desktop
2 # Based on TopLine by Maciej Delmanowski <[email protected]>
3 # Written by: Lluis Vilanova <[email protected]>
4 # Modified by harnir
5 #
6 # 2007-2013 - Dominique Michel <[email protected]>
7 # See ChangeLog for details
8 #
9 # You can use folding to navigate this file
10
11 Echo SideLine recipe loading from $.
12 InfoStoreAdd Recipe "SideLine"
13
14 # Includes and FVWM modules {{{1
15 # Default FVWM-Crystal functions, initialization {{{2
16 Include components/functions/Window-Autohide
17
18 # Type of icons on the desktop {{{2
19 LoadPreferences IconsType
20
21 # Media player {{{2
22 Include components/functions/Music-$[infostore.MusicPlayer]
23
24 # Desktop settings {{{1
25 EdgeScroll 0 0
26 EdgeResistance 0
27 Style * EdgeMoveDelay 250
28 Style * EdgeMoveResistance 100
29 HideGeometryWindow Move, Resize
30 OpaqueMoveSize 100
31 EdgeThickness 1
32
33 EWMH-Desktop 0 0 0 0
34 EWMH-Panel-Left 52
35 EWMH-Panel-Bottom 1
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]-33))+50+30, IconFill left top, IconGrid 30 30"'
41 LoadPreferences DefaultDesktopManager
42
43 # Settings for icons on the desktop {{{1
44 Style * StickyIcon
45 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-33))+50+30, IconFill left top, IconGrid 30 30"'
46 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-50))+50+30, IconFill left top, IconGrid 30 30"'
47
48 # Main menu panel {{{1
49 All (FvwmButtons-Panel) Close
50 DestroyModuleConfig FvwmButtons-Panel: *
51 *FvwmButtons-Panel: Geometry +25-0
52 *FvwmButtons-Panel: BoxSize smart
53 *FvwmButtons-Panel: ActiveColorset $[infostore.cs_panel_active]
54 *FvwmButtons-Panel: Colorset $[infostore.cs_panel_inactive]
55 *FvwmButtons-Panel: Columns 1
56 *FvwmButtons-Panel: Padding 1 1
57 *FvwmButtons-Panel: Frame 0
58 *FvwmButtons-Panel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
59
60 # Notification area {{{1
61 UnSetEnv NotificationGeom 123
62 # Settings of stalonetray {{{2
63 Test (!EnvMatch trayer_width 0) \
64 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
65 24 1 $(($[trayer_width]/24)) "+25" "-123" W 24 $[trayer_width] "+25" "-122"; fi'
66 # Settings of trayer {{{2
67 Test (!EnvMatch trayer_width 0) \
68 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
69 request pixel "24" left right "123" "25"; fi'
70 # The button {{{2
71 Test (!EnvMatch trayer_width 0) \
72 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo "*FvwmButtons-Panel: (1x$(($[trayer_width]/24)), \
73 Swallow (Close, Respawn, FvwmModule) FvwmStalonePanel Nop)"; fi
74
75 # Main music button, with some menus {{{2
76 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/categories/Multimedia.png", \
77 Action (Mouse 1) Menu /Player $[MenuPosition_EN], \
78 Action (Mouse 2) Music-GUI, \
79 Action (Mouse 3) Music-QJackGUI, \
80 Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \
81 Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step])
82 # Music controls {{{2
83 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-eject.png", \
84 Action (Mouse 1) Menu /Playlist-button $[MenuPosition_EN], \
85 Action (Mouse 2) Menu /Music/Volume $[MenuPosition_EN], \
86 Action (Mouse 3) Menu /Mixer $[MenuPosition_EN], \
87 Action (Mouse 4) Music-Next, \
88 Action (Mouse 5) Music-Prev)
89 # music controls {{{2
90 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \
91 Action (Mouse 1) Music-Play, \
92 Action (Mouse 2) Music-Pause, \
93 Action (Mouse 3) Menu /Playback $[MenuPosition_EN], \
94 Action (Mouse 4) Music-Speed-Up, \
95 Action (Mouse 5) Music-Speed-Down)
96 # music controls {{{2
97 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \
98 Action (Mouse 1) Menu /Speed $[MenuPosition_EN], \
99 Action (Mouse 4) Button-Seek-+, \
100 Action (Mouse 5) Button-Seek--)
101
102 # diamond {{{2
103 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \
104 Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_EN], \
105 Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_EN], \
106 Action (Mouse 3) Menu /Applications $[MenuPosition_EN])
107
108 Module FvwmButtons FvwmButtons-Panel
109
110 # Applications panel and menu generator {{{1
111 All (ApplicationPanel) Close
112 DestroyModuleConfig ApplicationPanel: *
113 *ApplicationPanel: Geometry +0-0
114 *ApplicationPanel: BoxSize smart
115 *ApplicationPanel: ActiveColorset $[infostore.cs_panel_active]
116 *ApplicationPanel: Colorset $[infostore.cs_panel_inactive]
117 *ApplicationPanel: Columns 1
118 *ApplicationPanel: Padding 1 1
119 *ApplicationPanel: Frame 0
120 *ApplicationPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
121
122 # fvwm-crystal.apps {{{2
123 # Debian
124 PipeRead 'fvwm-crystal.apps --database=$[FVWM_DISTROMENUDIR]/Applications --database=$[FVWM_USERDIR]/Applications --with=/Applications/$[FVWM_DISTROMENUNAME] --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 --panel-icons=standard --panel-action1=menu --panel-action2=none --panel-action3=menu --menu-pos=EN --menuname-suffix="Panel" --no-menus --check-execs'
125 # Preset applications
126 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]/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 --panel-icons=topapp --panel-action1=menu --panel-action2=none --panel-action3=topapp --menu-pos=EN --menuname-suffix="Panel" --no-menus --check-execs'
127 # This generates menus for the panel buttons. They are created upside-down,
128 # because panel is in the bottom-left corner of the screen
129 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="Panel" --submenu-suffix="Item 100 o100" --sort=rprio --no-panel --check-execs'
130 # Hotkey menu
131 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 --panel-icons=topapp --panel-action1=menu --panel-action2=none --panel-action3=topapp --menu-pos=S --no-panel --check-execs'
132 # }}}2
133
134 Module FvwmButtons ApplicationPanel
135
136 # Desktop menu with left click
137 SetEnv DesktopMenu /FVWM-Crystal
138 #SetEnv DesktopMenu /Applications
139
140 # Bottom panel {{{1
141 PipeRead 'echo InfoStoreAdd FvwmButtons_Columns $(($[vp.width]/28))'
142
143 All (FvwmButtons-BotPanel) Close
144 DestroyModuleConfig FvwmButtons-BotPanel: *
145 PipeRead 'echo \*FvwmButtons-BotPanel: Geometry $(($[vp.width]-52))x$((24*$[infostore.Desk_Pages_Y]))-0-0'
146 *FvwmButtons-BotPanel: BoxSize smart
147 *FvwmButtons-BotPanel: ActiveColorset $[infostore.cs_panel_active]
148 *FvwmButtons-BotPanel: Colorset $[infostore.cs_panel_inactive]
149 *FvwmButtons-BotPanel: Rows 1
150 *FvwmButtons-BotPanel: Columns $[infostore.FvwmButtons_Columns]
151 *FvwmButtons-BotPanel: Padding 0 0
152 *FvwmButtons-BotPanel: Frame 0
153 *FvwmButtons-BotPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
154
155 # Window list {{{2
156 All (FvwmIconMan-Windows) Close
157 DestroyModuleConfig FvwmIconMan-Windows: *
158
159 *FvwmIconMan-Windows: Resolution Global
160 *FvwmIconMan-Windows: UseWinList True
161 *FvwmIconMan-Windows: DontShow Class=xmms,FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm
162 *FvwmIconMan-Windows: ShowNoIcons True
163 *FvwmIconMan-Windows: DrawIcons Always
164 *FvwmIconMan-Windows: Sort Id
165 *FvwmIconMan-Windows: FollowFocus True
166 *FvwmIconMan-Windows: Format "%t"
167 *FvwmIconMan-Windows: Title ""
168 PipeRead "echo \*FvwmIconMan-Windows: ButtonGeometry $(($[vp.width]))x24"
169 PipeRead "echo \*FvwmIconMan-Windows: ManagerGeometry 1x1-$((28*$[infostore.Desk_Pages_X]))-1"
170 #*FvwmIconMan-Windows: MaxButtonWidthByColumns 80
171 *FvwmIconMan-Windows: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
172 # Tips {{{3
173 *FvwmIconMan-Windows: Tips needed
174 *FvwmIconMan-Windows: TipsDelays 500 200
175 *FvwmIconMan-Windows: TipsFont "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
176 *FvwmIconMan-Windows: TipsBorderWidth 0
177 *FvwmIconMan-Windows: TipsColorset $[infostore.cs_panel_inactive]
178 *FvwmIconMan-Windows: TipsJustification leftup
179 # Button look {{{3
180 *FvwmIconMan-Windows: PlainButton flat
181 *FvwmIconMan-Windows: FocusButton flat
182 *FvwmIconMan-Windows: SelectButton flat
183 *FvwmIconMan-Windows: FocusAndSelectButton flat
184 *FvwmIconMan-Windows: IconButton flat
185 # Colorsets {{{3
186 *FvwmIconMan-Windows: Colorset $[infostore.cs_panel_inactive]
187 *FvwmIconMan-Windows: PlainColorset $[infostore.cs_panel_wininactive]
188 *FvwmIconMan-Windows: FocusColorset $[infostore.cs_panel_winactive]
189 *FvwmIconMan-Windows: SelectColorset $[infostore.cs_panel_active]
190 *FvwmIconMan-Windows: FocusAndSelectColorset $[infostore.cs_panel_active]
191 *FvwmIconMan-Windows: IconColorset $[infostore.cs_panel_inactive]
192 # Actions {{{3
193 *FvwmIconMan-Windows: Action Mouse 1 A SendCommand "Function Window-Focus-DefaultDesk-Raised"
194 *FvwmIconMan-Windows: Action Mouse 2 $[Mod2] SendCommand "Close"
195 *FvwmIconMan-Windows: Action Mouse 2 $[Mod0] SendCommand "Window-Iconify"
196 *FvwmIconMan-Windows: Action Mouse 3 $[Mod] SendCommand "Function Window-Focus-CurrentDesk-Raised"
197 # }}}3
198 PipeRead 'echo "*FvwmButtons-BotPanel: ($(($[infostore.FvwmButtons_Columns]-$[infostore.Desk_Pages_X]))x1, Frame 0, Padding 0 0, \
199 Swallow(UseOld, Hints, Respawn) FvwmIconMan-Windows \\"Module FvwmIconMan FvwmIconMan-Windows\\")"'
200 # }}}2
201
202 # Pager {{{2
203 DestroyFunc FvwmPagerWindow
204 AddToFunc FvwmPagerWindow
205 + I All (FvwmPager) Close
206 + I DestroyModuleConfig FvwmPager: *
207 + I *FvwmPager: MiniIcons
208 + I *FvwmPager: Font none
209 + I *FvwmPager: WindowBorderWidth 1
210 + I *FvwmPager: Window3DBorders
211 #+ I *FvwmPager: NoSeparators
212 + I *FvwmPager: UseSkipList
213 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
214 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
215 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
216
217 FvwmPagerWindow
218 *FvwmButtons-BotPanel: ($[infostore.Desk_Pages_X]x1, Frame 0, Padding 0 0, \
219 Swallow(UseOld, Hints, Respawn) "FvwmPager" "Module FvwmPager FvwmPager"))
220
221 # Change desktop pages using mouse wheel on pager
222 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
223 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
224 # }}}2
225
226 Module FvwmButtons FvwmButtons-BotPanel
227
228 # Override FVWM style (it's applied later)
229 #Autohidng of the bottom panel.
230 Style FvwmButtons-BotPanel NoIcon
231 Style ApplicationPanel !Icon
232 Style FvwmButtons-Panel !Icon
233
234 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
235 #PrintInfo infostore
236
237 # ViM modeline {{{1
238 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm