| 1 |
# Old School desktop (former "0.9") |
| 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 OldSchool recipe loading from $. |
| 10 |
InfoStoreAdd Recipe "OldSchool" |
| 11 |
|
| 12 |
# Includes and FVWM modules {{{1 |
| 13 |
# Media player {{{2 |
| 14 |
Include components/functions/Music-$[infostore.MusicPlayer] |
| 15 |
|
| 16 |
# Desktop settings {{{1 |
| 17 |
EdgeScroll 0 0 |
| 18 |
EdgeResistance 0 |
| 19 |
Style * EdgeMoveDelay 250 |
| 20 |
Style * EdgeMoveResistance 100 |
| 21 |
HideGeometryWindow Move, Resize |
| 22 |
OpaqueMoveSize 100 |
| 23 |
EdgeThickness 1 |
| 24 |
|
| 25 |
EWMH-Desktop 3 3 3 3 |
| 26 |
EWMH-Panel-Top 30 |
| 27 |
EWMH-Panel-Right 30 |
| 28 |
EWMH-Panel-Bottom 30 |
| 29 |
|
| 30 |
# Desktop manager {{{2 |
| 31 |
DestroyFunc RedrawIconBox |
| 32 |
AddToFunc RedrawIconBox |
| 33 |
+ I Nop |
| 34 |
LoadPreferences DefaultDesktopManager |
| 35 |
|
| 36 |
# Main panel with FVWM-Crystal menu {{{1 |
| 37 |
All (FvwmButtons-MainMenu) Close |
| 38 |
DestroyModuleConfig FvwmButtons-MainMenu: * |
| 39 |
*FvwmButtons-MainMenu: Geometry -31+3 |
| 40 |
*FvwmButtons-MainMenu: BoxSize smart |
| 41 |
*FvwmButtons-MainMenu: ActiveColorset $[infostore.cs_panel_active] |
| 42 |
*FvwmButtons-MainMenu: Colorset $[infostore.cs_panel_inactive] |
| 43 |
*FvwmButtons-MainMenu: Rows 1 |
| 44 |
*FvwmButtons-MainMenu: Padding 1 1 |
| 45 |
*FvwmButtons-MainMenu: Frame 0 |
| 46 |
*FvwmButtons-MainMenu: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 47 |
|
| 48 |
# Diamond {{{2 |
| 49 |
*FvwmButtons-MainMenu: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \ |
| 50 |
Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_SW], \ |
| 51 |
Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_SW], \ |
| 52 |
Action (Mouse 3) Menu /Applications $[MenuPosition_SW]) |
| 53 |
|
| 54 |
Module FvwmButtons FvwmButtons-MainMenu |
| 55 |
|
| 56 |
# Music panel {{{1 |
| 57 |
All (FvwmButtons-Music) Close |
| 58 |
DestroyModuleConfig FvwmButtons-Music: * |
| 59 |
*FvwmButtons-Music: Geometry -3+3 |
| 60 |
*FvwmButtons-Music: BoxSize smart |
| 61 |
*FvwmButtons-Music: ActiveColorset $[infostore.cs_panel_active] |
| 62 |
*FvwmButtons-Music: Colorset $[infostore.cs_panel_inactive] |
| 63 |
*FvwmButtons-Music: Columns 1 |
| 64 |
*FvwmButtons-Music: Padding 1 1 |
| 65 |
*FvwmButtons-Music: Frame 0 |
| 66 |
*FvwmButtons-Music: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 67 |
|
| 68 |
# Main music button, with some menus {{{2 |
| 69 |
*FvwmButtons-Music: (1x1, Size 22 22, Icon "22x22/categories/Multimedia.png", \ |
| 70 |
Action (Mouse 1) Menu /Player $[MenuPosition_WS], \ |
| 71 |
Action (Mouse 2) Music-GUI, \ |
| 72 |
Action (Mouse 3) Music-QJackGUI, \ |
| 73 |
Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \ |
| 74 |
Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step]) |
| 75 |
# music controls button {{{2 |
| 76 |
*FvwmButtons-Music: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-eject.png", \ |
| 77 |
Action (Mouse 1) Menu /Playlist-button $[MenuPosition_WS], \ |
| 78 |
Action (Mouse 2) Menu /Music/Volume $[MenuPosition_WS], \ |
| 79 |
Action (Mouse 3) Menu /Mixer $[MenuPosition_WS], \ |
| 80 |
Action (Mouse 4) Music-Next, \ |
| 81 |
Action (Mouse 5) Music-Prev) |
| 82 |
# music controls button {{{2 |
| 83 |
*FvwmButtons-Music: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \ |
| 84 |
Action (Mouse 1) Music-Play, \ |
| 85 |
Action (Mouse 2) Music-Pause, \ |
| 86 |
Action (Mouse 3) Menu /Playback $[MenuPosition_WS], \ |
| 87 |
Action (Mouse 4) Music-Speed-Up, \ |
| 88 |
Action (Mouse 5) Music-Speed-Down) |
| 89 |
# music controls button 4 {{{2 |
| 90 |
*FvwmButtons-Music: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \ |
| 91 |
Action (Mouse 1) Menu /Speed $[MenuPosition_WS], \ |
| 92 |
Action (Mouse 4) Button-Seek-+, \ |
| 93 |
Action (Mouse 5) Button-Seek--) |
| 94 |
# }}}2 |
| 95 |
|
| 96 |
Module FvwmButtons FvwmButtons-Music |
| 97 |
|
| 98 |
# Applications panel and menu generator {{{1 |
| 99 |
|
| 100 |
All (ApplicationPanel) Close |
| 101 |
DestroyModuleConfig ApplicationPanel: * |
| 102 |
*ApplicationPanel: Geometry -3+101 |
| 103 |
*ApplicationPanel: BoxSize smart |
| 104 |
*ApplicationPanel: ActiveColorset $[infostore.cs_panel_active] |
| 105 |
*ApplicationPanel: Colorset $[infostore.cs_panel_inactive] |
| 106 |
*ApplicationPanel: Columns 1 |
| 107 |
*ApplicationPanel: Padding 1 1 |
| 108 |
*ApplicationPanel: Frame 0 |
| 109 |
*ApplicationPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 110 |
|
| 111 |
|
| 112 |
# fvwm-crystal.apps {{{2 |
| 113 |
# This creates the distribution-based panel button - defaut distribution |
| 114 |
# icon, only menu is opened (no default app on the panel) |
| 115 |
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]/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=WS --menuname-suffix="Panel" --check-execs' |
| 116 |
# This creates the main panel with applications - default app icon is |
| 117 |
# shown on the panel, and can be launched using RMB; LMB opens the app |
| 118 |
# category menu |
| 119 |
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=WS --menuname-suffix="Panel" --check-execs' |
| 120 |
# This creates the menu with applications available under Alt+Win_R |
| 121 |
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=WS --no-panel --check-execs' |
| 122 |
# }}}2 |
| 123 |
|
| 124 |
Module FvwmButtons ApplicationPanel |
| 125 |
|
| 126 |
# DesktopMenu with left click |
| 127 |
SetEnv DesktopMenu /FVWM-Crystal |
| 128 |
#SetEnv DesktopMenu /Applications |
| 129 |
|
| 130 |
# Clock {{{1 |
| 131 |
All (FvwmButtons-Clock) Close |
| 132 |
DestroyModuleConfig FvwmButtons-Clock: * |
| 133 |
*FvwmButtons-Clock: Geometry -59+3 |
| 134 |
*FvwmButtons-Clock: BoxSize smart |
| 135 |
*FvwmButtons-Clock: ActiveColorset $[infostore.cs_panel_active] |
| 136 |
*FvwmButtons-Clock: Colorset $[infostore.cs_panel_inactive] |
| 137 |
*FvwmButtons-Clock: Columns 2 |
| 138 |
*FvwmButtons-Clock: Padding 2 2 |
| 139 |
*FvwmButtons-Clock: Frame 0 |
| 140 |
*FvwmButtons-Clock: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 141 |
|
| 142 |
*FvwmButtons-Clock: (2x1, Size 60 24, \ |
| 143 |
Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock" 'Script components/scripts/FvwmScript-Clock', \ |
| 144 |
Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str) |
| 145 |
|
| 146 |
Module FvwmButtons FvwmButtons-Clock |
| 147 |
|
| 148 |
# Pager {{{1 |
| 149 |
DestroyFunc FvwmPagerWindow |
| 150 |
AddToFunc FvwmPagerWindow |
| 151 |
+ I All (FvwmPager) Close |
| 152 |
+ I DestroyModuleConfig FvwmPager: * |
| 153 |
+ I PipeRead 'echo \*FvwmPager: Geometry $((28*$[infostore.Desk_Pages_X]))x$((24*$[infostore.Desk_Pages_Y]))-123+3' |
| 154 |
+ I *FvwmPager: MiniIcons |
| 155 |
+ I *FvwmPager: Font none |
| 156 |
+ I *FvwmPager: WindowBorderWidth 1 |
| 157 |
+ I *FvwmPager: Window3DBorders |
| 158 |
#*FvwmPager: NoSeparators |
| 159 |
+ I *FvwmPager: UseSkipList |
| 160 |
+ I *FvwmPager: Colorset * $[infostore.cs_panel_inactive] |
| 161 |
+ I *FvwmPager: HilightColorset * $[infostore.cs_panel_active] |
| 162 |
+ I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive] |
| 163 |
+ I Module FvwmPager |
| 164 |
|
| 165 |
FvwmPagerWindow |
| 166 |
|
| 167 |
# Change desktop pages using mouse wheel on pager |
| 168 |
Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right |
| 169 |
Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left |
| 170 |
|
| 171 |
# Icons panel {{{1 |
| 172 |
All (FvwmIconMan-Icons) Close |
| 173 |
DestroyModuleConfig FvwmIconMan-Icons: * |
| 174 |
|
| 175 |
*FvwmIconMan-Icons: Resolution Global |
| 176 |
*FvwmIconMan-Icons: UseWinList True |
| 177 |
*FvwmIconMan-Icons: DontShow Class=xmms,FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm |
| 178 |
*FvwmIconMan-Icons: ShowOnlyIcons True |
| 179 |
*FvwmIconMan-Icons: DrawIcons True |
| 180 |
*FvwmIconMan-Icons: Sort Id |
| 181 |
*FvwmIconMan-Icons: FollowFocus True |
| 182 |
*FvwmIconMan-Icons: Format "" |
| 183 |
*FvwmIconMan-Icons: Title "" |
| 184 |
*FvwmIconMan-Icons: ButtonGeometry 24x24 |
| 185 |
*FvwmIconMan-Icons: ManagerGeometry 10x0+3+3 |
| 186 |
*FvwmIconMan-Icons: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 187 |
# Tips {{{2 |
| 188 |
*FvwmIconMan-Icons: Tips always |
| 189 |
*FvwmIconMan-Icons: TipsDelays 200 100 |
| 190 |
*FvwmIconMan-Icons: TipsFormat "%t" |
| 191 |
*FvwmIconMan-Icons: TipsFont "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 192 |
*FvwmIconMan-Icons: TipsBorderWidth 0 |
| 193 |
*FvwmIconMan-Icons: TipsColorset $[infostore.cs_panel_inactive] |
| 194 |
*FvwmIconMan-Icons: TipsJustification leftup |
| 195 |
# Button look {{{2 |
| 196 |
*FvwmIconMan-Icons: PlainButton flat |
| 197 |
*FvwmIconMan-Icons: FocusButton flat |
| 198 |
*FvwmIconMan-Icons: SelectButton flat |
| 199 |
*FvwmIconMan-Icons: FocusAndSelectButton flat |
| 200 |
*FvwmIconMan-Icons: IconButton flat |
| 201 |
# Colorsets {{{2 |
| 202 |
*FvwmIconMan-Icons: Colorset $[infostore.cs_panel_inactive] |
| 203 |
*FvwmIconMan-Icons: PlainColorset $[infostore.cs_panel_wininactive] |
| 204 |
*FvwmIconMan-Icons: FocusColorset $[infostore.cs_panel_winactive] |
| 205 |
*FvwmIconMan-Icons: SelectColorset $[infostore.cs_panel_active] |
| 206 |
*FvwmIconMan-Icons: FocusAndSelectColorset $[infostore.cs_panel_active] |
| 207 |
*FvwmIconMan-Icons: IconColorset $[infostore.cs_panel_inactive] |
| 208 |
# Actions {{{2 |
| 209 |
*FvwmIconMan-Icons: Action Mouse 1 $[Mod] SendCommand "Function Window-Focus-CurrentDesk-Raised" |
| 210 |
*FvwmIconMan-Icons: Action Mouse 2 $[Mod2] SendCommand "Close" |
| 211 |
*FvwmIconMan-Icons: Action Mouse 2 $[Mod0] SendCommand "Nop" |
| 212 |
*FvwmIconMan-Icons: Action Mouse 3 $[Mod] SendCommand "Function Window-Focus-DefaultDesk-Raised" |
| 213 |
# }}}2 |
| 214 |
|
| 215 |
Module FvwmIconMan FvwmIconMan-Icons |
| 216 |
Style * NoIcon |
| 217 |
|
| 218 |
# Window list {{{1 |
| 219 |
All (FvwmIconMan-Windows) Close |
| 220 |
DestroyModuleConfig FvwmIconMan-Windows: * |
| 221 |
|
| 222 |
*FvwmIconMan-Windows: Resolution Global |
| 223 |
*FvwmIconMan-Windows: UseWinList True |
| 224 |
*FvwmIconMan-Windows: DontShow Class=xmms,FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm |
| 225 |
*FvwmIconMan-Windows: ShowNoIcons True |
| 226 |
*FvwmIconMan-Windows: DrawIcons Always |
| 227 |
*FvwmIconMan-Windows: Sort Id |
| 228 |
*FvwmIconMan-Windows: FollowFocus True |
| 229 |
*FvwmIconMan-Windows: Format "%t" |
| 230 |
*FvwmIconMan-Windows: Title "" |
| 231 |
PipeRead "echo \*FvwmIconMan-Windows: ButtonGeometry $(($[vp.width]-8))x24" |
| 232 |
*FvwmIconMan-Windows: ManagerGeometry 1x1+3-3 |
| 233 |
*FvwmIconMan-Windows: MaxButtonWidthByColumns 8 |
| 234 |
*FvwmIconMan-Windows: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 235 |
# Tips {{{2 |
| 236 |
*FvwmIconMan-Windows: Tips needed |
| 237 |
*FvwmIconMan-Windows: TipsDelays 500 200 |
| 238 |
*FvwmIconMan-Windows: TipsFont "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]" |
| 239 |
*FvwmIconMan-Windows: TipsBorderWidth 0 |
| 240 |
*FvwmIconMan-Windows: TipsColorset $[infostore.cs_panel_inactive] |
| 241 |
*FvwmIconMan-Windows: TipsJustification leftup |
| 242 |
# Button look {{{2 |
| 243 |
*FvwmIconMan-Windows: PlainButton flat |
| 244 |
*FvwmIconMan-Windows: FocusButton flat |
| 245 |
*FvwmIconMan-Windows: SelectButton flat |
| 246 |
*FvwmIconMan-Windows: FocusAndSelectButton flat |
| 247 |
*FvwmIconMan-Windows: IconButton flat |
| 248 |
# Colorsets {{{2 |
| 249 |
*FvwmIconMan-Windows: Colorset $[infostore.cs_panel_inactive] |
| 250 |
*FvwmIconMan-Windows: PlainColorset $[infostore.cs_panel_wininactive] |
| 251 |
*FvwmIconMan-Windows: FocusColorset $[infostore.cs_panel_winactive] |
| 252 |
*FvwmIconMan-Windows: SelectColorset $[infostore.cs_panel_active] |
| 253 |
*FvwmIconMan-Windows: FocusAndSelectColorset $[infostore.cs_panel_active] |
| 254 |
*FvwmIconMan-Windows: IconColorset $[infostore.cs_panel_inactive] |
| 255 |
# Actions {{{2 |
| 256 |
*FvwmIconMan-Windows: Action Mouse 1 A SendCommand "Function Window-Focus-DefaultDesk-Raised" |
| 257 |
*FvwmIconMan-Windows: Action Mouse 2 $[Mod2] SendCommand "Close" |
| 258 |
*FvwmIconMan-Windows: Action Mouse 2 $[Mod0] SendCommand "Window-Iconify" |
| 259 |
*FvwmIconMan-Windows: Action Mouse 3 $[Mod] SendCommand "Function Window-Focus-CurrentDesk-Raised" |
| 260 |
# }}}2 |
| 261 |
|
| 262 |
Module FvwmIconMan FvwmIconMan-Windows |
| 263 |
|
| 264 |
# Notification aera {{{1 |
| 265 |
# Settings of stalonetray {{{2 |
| 266 |
Test (!EnvMatch trayer_width 0) \ |
| 267 |
PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \ |
| 268 |
24 $(($[trayer_width]/24)) 1 +$(((($[vp.width]-$[trayer_width]))/2)) "+3" W $[trayer_width] 24 +$(((($[vp.width]-$[trayer_width]))/2)) "+3"; fi' |
| 269 |
# Settings of trayer {{{2 |
| 270 |
Test (!EnvMatch trayer_width 0) \ |
| 271 |
PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \ |
| 272 |
request pixel 24 top right $(((($[vp.width]-$[trayer_width]))/2)) 3 ""; fi' |
| 273 |
|
| 274 |
Style FvwmButtons-Music NoIcon |
| 275 |
Style FvwmButtons-Clock Layer 2 |
| 276 |
|
| 277 |
Echo /--------- Fvwm-Crystal: Recipe loaded ---------/ |
| 278 |
#PrintInfo infostore |
| 279 |
|
| 280 |
# ViM modeline {{{1 |
| 281 |
# vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm |