Debian Codegraph @

fvwm/recipes/Corner

raw
1 # Corner desktop (former "devel")
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 Corner recipe loading from $.
10 InfoStoreAdd Recipe "Corner"
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 EWMH-Desktop 3 3 3 3
29 EWMH-Panel-Right 30
30 EWMH-Panel-Top 55
31
32 # Desktop manager {{{2
33 DestroyFunc RedrawIconBox
34 AddToFunc RedrawIconBox
35 + I PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-42))+$((((50*$[IconColumnsNumber]))+24))+39, IconFill left bottom, IconGrid 30 30"'
36 LoadPreferences DefaultDesktopManager
37
38 # Settings for icons on the desktop {{{1
39 Style * StickyIcon
40
41 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-42))+$((((50*$[IconColumnsNumber]))+24))+39, IconFill left bottom, IconGrid 30 30"'
42 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-36))x$(($[vp.height]-42))+3-39, IconFill left bottom, IconGrid 30 30"'
43
44 # Pager {{{1
45 DestroyFunc FvwmPagerWindow
46 AddToFunc FvwmPagerWindow
47 + I All (FvwmPager) Close
48 + I DestroyModuleConfig FvwmPager: *
49 + I PipeRead 'echo \*FvwmPager: Geometry $((28*$[infostore.Desk_Pages_X]))x24--1+-1'
50 + I *FvwmPager: Rows 1
51 + I *FvwmPager: MiniIcons
52 + I *FvwmPager: Font none
53 + I *FvwmPager: WindowBorderWidth 1
54 + I *FvwmPager: Window3DBorders
55 #+ I *FvwmPager: NoSeparators
56 + I *FvwmPager: UseSkipList
57 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
58 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
59 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
60 + I Module FvwmPager
61
62 FvwmPagerWindow
63
64 # Clock {{{1
65 All (FvwmButtons-Clock) Close
66 DestroyModuleConfig FvwmButtons-Clock: *
67 *FvwmButtons-Clock: Geometry --1+24
68 *FvwmButtons-Clock: BoxSize smart
69 *FvwmButtons-Clock: ActiveColorset $[infostore.cs_panel_active]
70 *FvwmButtons-Clock: Colorset $[infostore.cs_panel_inactive]
71 *FvwmButtons-Clock: Columns 2
72 *FvwmButtons-Clock: Padding 2 2
73 *FvwmButtons-Clock: Frame 0
74 *FvwmButtons-Clock: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
75
76 *FvwmButtons-Clock: (2x1, Size 60 24, \
77 Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock" 'Script components/scripts/FvwmScript-Clock', \
78 Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str)
79
80 Module FvwmButtons FvwmButtons-Clock
81
82 # Main panel {{{1
83 All (FvwmButtons-Panel) Close
84 DestroyModuleConfig FvwmButtons-Panel: *
85 *FvwmButtons-Panel: Geometry --1+49
86 *FvwmButtons-Panel: BoxSize smart
87 *FvwmButtons-Panel: ActiveColorset $[infostore.cs_panel_active]
88 *FvwmButtons-Panel: Colorset $[infostore.cs_panel_inactive]
89 *FvwmButtons-Panel: Columns 1
90 *FvwmButtons-Panel: Padding 1 1
91 *FvwmButtons-Panel: Frame 0
92 *FvwmButtons-Panel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
93
94 # diamond with menus {{{2
95 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \
96 Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_WS], \
97 Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_WS], \
98 Action (Mouse 3) Menu /Applications $[MenuPosition_WS])
99 # window list {{{2
100 *FvwmButtons-Panel: (1x1, Icon "22x22/fvwm-crystal/window-list.png", \
101 Action (Mouse 1) Window-List "$[MenuPosition_WS]", \
102 Action (Mouse 2) All (CurrentPage) PlaceAgain anim, \
103 Action (Mouse 3) Window-List-Icons "$[MenuPosition_WS]")
104
105 # Main music button 1, with main menus and controls {{{2
106 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/categories/Multimedia.png", \
107 Action (Mouse 1) Menu /Player $[MenuPosition_WS], \
108 Action (Mouse 2) Music-GUI, \
109 Action (Mouse 3) Music-QJackGUI, \
110 Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \
111 Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step])
112 # music controls button 2 {{{2
113 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-eject.png", \
114 Action (Mouse 1) Menu /Playlist-button $[MenuPosition_WS], \
115 Action (Mouse 2) Menu /Music/Volume $[MenuPosition_WS], \
116 Action (Mouse 3) Menu /Mixer $[MenuPosition_WS], \
117 Action (Mouse 4) Music-Next, \
118 Action (Mouse 5) Music-Prev)
119 # music controls button 3 {{{2
120 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \
121 Action (Mouse 1) Music-Play, \
122 Action (Mouse 2) Music-Pause, \
123 Action (Mouse 3) Menu /Playback $[MenuPosition_WS], \
124 Action (Mouse 4) Music-Speed-Up, \
125 Action (Mouse 5) Music-Speed-Down)
126 # music controls button 4 {{{2
127 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \
128 Action (Mouse 1) Menu /Speed $[MenuPosition_WS], \
129 Action (Mouse 4) Button-Seek-+, \
130 Action (Mouse 5) Button-Seek--)
131 # }}}2
132
133 # Settings of stalonetray {{{2
134 Test (!EnvMatch trayer_width 0) \
135 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
136 24 1 $(($[trayer_width]/24)) "--1" "+194" SE \
137 24 $[trayer_width] "--1" "+194"; fi'
138 Test (!EnvMatch trayer_width 0) \
139 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo "*FvwmButtons-Panel: (1x$(($[trayer_width]/24)), \
140 Size 24 $[trayer_width], Swallow (Close, Respawn, FvwmModule) FvwmStalonePanel Nop)"; fi'
141
142 # Settings of trayer {{{2
143 Test (!EnvMatch trayer_width 0) \
144 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
145 request pixel 24 right left 195 1; fi'
146
147 Module FvwmButtons FvwmButtons-Panel
148
149 # Applications menu generator {{{1
150 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 --sort=prio --no-panel --check-execs'
151 AddToMenu /Applications '%22x22/fvwm-crystal/audio-x-generic.png%$[gt.Music]' Popup /Music
152
153 # Desktop menu with left click
154 SetEnv DesktopMenu /Applications
155 #SetEnv DesktopMenu /FVWM-Crystal
156
157 # Change desktop pages using mouse wheel on pager
158 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
159 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
160
161 # Styles {{{1
162 Style FvwmButtons-Panel !Icon
163 Style FvwmButtons-Music !Icon
164 Style FvwmButtons-Clock !Icon
165 Style FvwmPager !Icon
166 Style FvwmButtons-Clock Layer 2
167
168 # Styles for FvwmButtons-Music
169 Style FvwmButtons-Musi* NoIcon
170
171 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
172 #PrintInfo Locale 1 #2
173 #PrintInfo infostore
174
175 # ViM modeline {{{1
176 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm