Debian Codegraph @

fvwm/recipes/TopLine

raw
1 # TopLine desktop (former "1.1"
2 # Written by: Maciej Delmanowski <[email protected]>
3 #
4 # 2007-2013 - Dominique Michel <[email protected]>
5 # For details see ChangeLog
6 #
7 # You can use folding to navigate this file
8
9 Echo TopLine recipe loading from $.
10 InfoStoreAdd Recipe "TopLine"
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
22 Style * EdgeMoveDelay 0
23 Style * EdgeMoveResistance 100
24
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]))+50))))x$(($[vp.height]-(((((((($[panel_font_size]*3))/2))))+6))))+$((((50*$[IconColumnsNumber]))+25))+$(((((((($[panel_font_size]*3))/2))))+3)), IconFill left bottom, IconGrid 30 30"'
36 LoadPreferences DefaultDesktopManager
37
38 # Settings for icons on the desktop {{{1
39 #Style * IconBox 1200x800+30-30, IconFill left bottom, IconGrid 30 30
40 Style * StickyIcon
41 Test (EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-((((50*$[IconColumnsNumber]))+50))))x$(($[vp.height]-(((((((($[panel_font_size]*3))/2))))+6))))+$((((50*$[IconColumnsNumber]))+25))+$(((((((($[panel_font_size]*3))/2))))+3)), IconFill left bottom, IconGrid 30 30"'
42 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-50))+30-30, IconFill left bottom, IconGrid 30 30"'
43
44 # Main menu panel {{{1
45 All (FvwmButtons-Panel) Close
46 DestroyModuleConfig FvwmButtons-Panel: *
47 *FvwmButtons-Panel: Geometry -3+3
48 *FvwmButtons-Panel: BoxSize smart
49 *FvwmButtons-Panel: ActiveColorset $[infostore.cs_panel_active]
50 *FvwmButtons-Panel: Colorset $[infostore.cs_panel_inactive]
51 *FvwmButtons-Panel: Rows 1
52 *FvwmButtons-Panel: Padding 1 1
53 *FvwmButtons-Panel: Frame 0
54 *FvwmButtons-Panel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
55
56 # Main music button, with some menus {{{2
57 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/categories/Multimedia.png", \
58 Action (Mouse 1) Menu /Player $[MenuPosition_SW], \
59 Action (Mouse 2) Music-GUI, \
60 Action (Mouse 3) Music-QJackGUI, \
61 Action (Mouse 4) Change-Volume-Up $[infostore.Vol_Step], \
62 Action (Mouse 5) Change-Volume-Down $[infostore.Vol_Step])
63 # Music controls {{{2
64 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-eject.png", \
65 Action (Mouse 1) Menu /Playlist-button $[MenuPosition_SW], \
66 Action (Mouse 2) Menu /Music/Volume $[MenuPosition_SW], \
67 Action (Mouse 3) Menu /Mixer $[MenuPosition_SW], \
68 Action (Mouse 4) Music-Next, \
69 Action (Mouse 5) Music-Prev)
70 # music controls button {{{2
71 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-playback-start.png", \
72 Action (Mouse 1) Music-Play, \
73 Action (Mouse 2) Music-Pause, \
74 Action (Mouse 3) Menu /Playback $[MenuPosition_SW], \
75 Action (Mouse 4) Music-Speed-Up, \
76 Action (Mouse 5) Music-Speed-Down)
77 # music controls button 4 {{{2
78 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/media-skip-forward.png", \
79 Action (Mouse 1) Menu /Speed $[MenuPosition_SW], \
80 Action (Mouse 4) Button-Seek-+, \
81 Action (Mouse 5) Button-Seek--)
82
83 # Window list {{{2
84 *FvwmButtons-Panel: (1x1, Icon "22x22/fvwm-crystal/window-list.png", \
85 Action (Mouse 1) Window-List "$[MenuPosition_SW]", \
86 Action (Mouse 2) All (CurrentPage) PlaceAgain anim, \
87 Action (Mouse 3) Window-List-Icons "$[MenuPosition_SW]")
88
89 # diamond {{{2
90 *FvwmButtons-Panel: (1x1, Size 22 22, Icon "22x22/fvwm-crystal/fvwm-crystal.png", \
91 Action (Mouse 1) Menu /FVWM-Crystal $[MenuPosition_SW], \
92 Action (Mouse 2) Menu /Random-Wallpaper $[MenuPosition_SW],\
93 Action (Mouse 3) Menu /Applications $[MenuPosition_SW])
94
95 *FvwmButtons-Panel: (3x1, Size 60 24, \
96 Swallow (Close, Respawn, FvwmModule) "FvwmScript-Clock" 'Script components/scripts/FvwmScript-Clock', \
97 Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str)
98
99 Module FvwmButtons FvwmButtons-Panel
100
101 # Applications panel and menu generator {{{1
102 All (ApplicationPanel) Close
103 DestroyModuleConfig ApplicationPanel: *
104 *ApplicationPanel: Geometry +3+3
105 *ApplicationPanel: BoxSize smart
106 *ApplicationPanel: ActiveColorset $[infostore.cs_panel_active]
107 *ApplicationPanel: Colorset $[infostore.cs_panel_inactive]
108 *ApplicationPanel: Rows 1
109 *ApplicationPanel: Padding 1 1
110 *ApplicationPanel: Frame 0
111 *ApplicationPanel: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
112
113 # fvwm-crystal.apps {{{2
114 # This creates the distribution-based panel button - defaut distribution
115 # icon, only menu is opened (no default app on the panel)
116 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=S --menuname-suffix="Panel" --check-execs'
117 # This creates the main panel with applications - default app icon is
118 # shown on the panel, and can be launched using RMB; LMB opens the app
119 # category menu
120 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=S --menuname-suffix="Panel" --check-execs'
121 # This creates the menu with applications available under Alt+Win_R
122 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'
123 # }}}2
124
125 Module FvwmButtons ApplicationPanel
126
127 # Desktop menu with left click
128 SetEnv DesktopMenu /FVWM-Crystal
129 #SetEnv DesktopMenu /Applications
130
131 # Pager {{{1
132 DestroyFunc FvwmPagerWindow
133 AddToFunc FvwmPagerWindow
134 + I All (FvwmPager) Close
135 + I DestroyModuleConfig FvwmPager: *
136 + I PipeRead 'echo InfoStoreAdd FvwmPager_Width $((28*$[infostore.Desk_Pages_X])); echo InfoStoreAdd FvwmPager_Height $((24*$[infostore.Desk_Pages_Y]))'
137 + I PipeRead 'echo \*FvwmPager: Geometry $[infostore.FvwmPager_Width]x$[infostore.FvwmPager_Height]+$((($[vp.width]-$[infostore.FvwmPager_Width])/2))+3'
138 + I *FvwmPager: MiniIcons
139 + I *FvwmPager: Font none
140 + I *FvwmPager: WindowBorderWidth 1
141 + I *FvwmPager: Window3DBorders
142 #+ I *FvwmPager: NoSeparators
143 + I *FvwmPager: UseSkipList
144 + I *FvwmPager: Colorset * $[infostore.cs_panel_inactive]
145 + I *FvwmPager: HilightColorset * $[infostore.cs_panel_active]
146 + I *FvwmPager: WindowColorsets $[infostore.cs_panel_wininactive] $[infostore.cs_panel_winactive]
147 + I Module FvwmPager
148
149 FvwmPagerWindow
150
151 # Change desktop pages using mouse wheel on pager
152 Mouse (FvwmPager) 4 W $[Mod] GotoPage-Right
153 Mouse (FvwmPager) 5 W $[Mod] GotoPage-Left
154
155 Style FvwmPager !Icon
156 Style ApplicationPanel !Icon
157 Style FvwmButtons-Panel !Icon
158
159 # Notification area {{{1
160 # Settings of stalonetray {{{2
161 Test (!EnvMatch trayer_width 0) \
162 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "stalonetray" ]; then echo FvwmStalonePanel \
163 24 $(($[trayer_width]/24)) 1 "-225" "+3" W $[trayer_width] 24 "-225" "+3"; fi'
164
165 # Settings of trayer {{{2
166 Test (!EnvMatch trayer_width 0) \
167 PipeRead 'if [ "$[infostore.NotificationAreaManager]" = "trayer" ]; then echo FvwmTrayerPanel \
168 request pixel "24" top right "225" "4"; fi'
169
170 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
171 #PrintInfo infostore
172
173 # ViM modeline {{{1
174 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm