Debian Codegraph @

fvwm/recipes/Light

raw
1 # Light 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 Light recipe loading from $.
10 InfoStoreAdd Recipe "Light"
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 100
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-Top 30
31
32 # Desktop manager {{{2
33 DestroyFunc RedrawIconBox
34 AddToFunc RedrawIconBox
35 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+36))))x$(($[vp.height]-30))+$((((50*$[IconColumnsNumber]))+18))+27, IconFill left bottom, IconGrid 30 30"'
36 LoadPreferences DefaultDesktopManager
37
38 # Main "/ApplicationsAndRootMenu" menu {{{1
39 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'
40 AddToMenu /ApplicationsAndRootMenu
41 + "" Nop
42 + '%22x22/fvwm-crystal/audio-x-generic.png%$[gt.Music]' Popup /Music
43 + "" Nop
44 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.FVWM-Crystal documentation]' Popup /Developer/FVWM-Crystal-Documentation
45 + "" Nop
46 + '%22x22/fvwm-crystal/handles.png%$[gt.Screen resolution]' Popup /ScreenResolution
47 + '%22x22/fvwm-crystal/preferences-desktop-screensaver.png%$[gt.Screensaver]' Popup /Screensaver
48 + '%22x22/fvwm-crystal/camera-photo.png%$[gt.Screenshot]' Popup /Screenshot
49 + "" Nop
50 + '%22x22/fvwm-crystal/preferences-desktop-theme.png%$[gt.Window decorations]' Popup /Window-Decorations
51 + '%22x22/fvwm-crystal/colorsets.png%$[gt.Colorsets]' Popup /Colorsets
52 + '%22x22/fvwm-crystal/preferences-desktop-wallpaper.png%$[gt.Wallpaper]' Popup /Wallpaper
53 + '%22x22/fvwm-crystal/preferences-desktop.png%$[gt.Preferences]' Popup /Preferences
54 + "" Nop
55 + '%22x22/fvwm-crystal/applications-development.png%$[gt.Developer menu]' Popup /Developer
56 + '%22x22/fvwm-crystal/fvwm-crystal.png%$[gt.About FVWM-Crystal]' Include components/functions/About
57 + '%22x22/fvwm-crystal/system-log-out.png%$[gt.Exit]' Popup /Exit
58
59 # Desktop menu with left click {{{1
60 SetEnv DesktopMenu /ApplicationsAndRootMenu
61 #SetEnv DesktopMenu /FVWM-Crystal
62
63 # Applications menu {{{1
64 # This creates the menu with applications available under Alt+Win_R
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]/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'
66
67 # Pager {{{1
68 DestroyFunc FvwmPagerWindow
69 AddToFunc FvwmPagerWindow
70 + I All (FvwmPager) Close
71 + I DestroyModuleConfig FvwmPager: *
72 #InfoStoreAdd Desk_Pages_X "8"
73 #InfoStoreAdd Desk_Pages_Y "1"
74 #DesktopSize $[infostore.Desk_Pages_X]x$[infostore.Desk_Pages_Y]
75 + I PipeRead 'echo \*FvwmPager: Geometry $(((($[panel_font_size]+(($[panel_font_size]/2))))*$[infostore.Desk_Pages_X]))x$(((($[panel_font_size]+(($[panel_font_size]/2))))*$[infostore.Desk_Pages_Y]))+$(((($[vp.width]-((28*$[infostore.Desk_Pages_X]))))/2))+3'
76 + I *FvwmPager: MiniIcons
77 + I *FvwmPager: Font none
78 + I *FvwmPager: WindowBorderWidth 1
79 + I *FvwmPager: Window3DBorders
80 #+ I *FvwmPager: NoSeparators
81 + I *FvwmPager: UseSkipList
82 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
83 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
84 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
85 + I Module FvwmPager
86
87 FvwmPagerWindow
88
89 # Change desktop pages using mouse wheel on pager
90 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
91 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
92
93 # Settings for icons on the desktop {{{1
94 Style * StickyIcon
95 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+36))))x$(($[vp.height]-30))+$((((50*$[IconColumnsNumber]))+18))+27, IconFill left bottom, IconGrid 30 30"'
96 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-30))+3+27, IconFill left bottom, IconGrid 30 30"'
97
98 # NotificationArea {{{1
99 # Settings of stalonetray {{{2
100 Test (!EnvMatch trayer_width 0) \
101 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
102 $(($[panel_font_size]+$(($[panel_font_size]/2)))) \
103 $(($[trayer_width]/$(($[panel_font_size]+$(($[panel_font_size]/2)))))) 1 \
104 "-1" "+3" W $(($(($[trayer_width]*$(($[panel_font_size]+$(($[panel_font_size]/2))))))/24)) $(($[panel_font_size]+$(($[panel_font_size]/2)))) \
105 "-1" "+3"; fi'
106 # Settings of trayer {{{2
107 Test (!EnvMatch trayer_width 0) \
108 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
109 request pixel 24 top right 3 "-1"; fi'
110
111 Style FvwmPager !Icon
112
113 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
114 #PrintInfo infostore
115
116 # ViM modeline {{{1
117 # vim:foldmethod=marker:foldenable:foldlevel=0:filetype=fvwm