Debian Codegraph @

fvwm/recipes/SilentHacker

raw
1 # SilentHacker desktop
2 # Written by: Maciej Delmanowski <[email protected]>
3 #
4 # 2007-2013 - Dominique Michel
5 # See ChangeLog for details
6 #
7 # You can use folding to navigate this file
8
9 Echo SilentHacker recipe loading from $.
10 InfoStoreAdd Recipe "SilentHacker"
11
12 # Includes and FVWM modules {{{1
13 Include components/bindings/Desktop-MMB-ToggleTopBar
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
29 EWMH-Desktop 0 0 0 0
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]-33))+$((((50*$[IconColumnsNumber]))+25))+30, 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]-33))+$((((50*$[IconColumnsNumber]))+25))+30, IconFill left bottom, IconGrid 30 30"'
42 Test (!EnvMatch DefaultDesktopManager Crystal) PipeRead 'echo "Style * IconBox $(($[vp.width]-6))x$(($[vp.height]-50))+3+30, IconFill left bottom, IconGrid 30 30"'
43
44 # Applications generator and main menu{{{1
45 # This creates the menu with applications available under Alt+Win_R
46 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'
47
48 # Desktop menu with left click
49 SetEnv DesktopMenu /FVWM-Crystal
50 #SetEnv DesktopMenu /Applications
51
52 # InfoLine {{{1
53 DestroyFunc Get-InfoLine
54 AddToFunc Get-InfoLine
55 + I PipeRead 'fvwm-crystal.infoline'
56 + I SendToModule FvwmButtons-InfoLine ChangeButton InfoLine Title "$[FVWM_INFOLINE]"
57
58 All (FvwmButtons-InfoLine) Close
59 DestroyModuleConfig FvwmButtons-InfoLine: *
60 PipeRead "echo \*FvwmButtons-InfoLine: Geometry $(($[vp.width]-180))x$(($[panel_font_size]+10))+90+-1"
61 *FvwmButtons-InfoLine: BoxSize smart
62 *FvwmButtons-InfoLine: ActiveColorset $[infostore.cs_panel_active]
63 *FvwmButtons-InfoLine: Colorset $[infostore.cs_panel_inactive]
64 PipeRead 'echo "*FvwmButtons-InfoLine: Columns $(((($[vp.width]-180))/24))"'
65 *FvwmButtons-InfoLine: Padding 2 2
66 *FvwmButtons-InfoLine: Frame 0
67 *FvwmButtons-InfoLine: Font "xft:$[panel_font]:pixelsize=$[panel_font_size]:$[panel_font_style]"
68
69 PipeRead 'fvwm-crystal.infoline'
70
71 PipeRead 'echo "*FvwmButtons-InfoLine: ($(((((($[vp.width]-180))/24))-3))x1, Size $(($[vp.width]-240)) $(($[panel_font_size]+10)), Id InfoLine, Title (Left) \\"$[FVWM_INFOLINE]\\", Action Get-InfoLine)"'
72
73 # Update Infoline
74 AddToFunc ExitFunction I Test (Quit) Exec exec killall UpdateInfoline $[infostore.SILENT]
75 AddToFunc ExitFunction I Test (ToRestart) Exec exec killall UpdateInfoline $[infostore.SILENT]
76 Exec exec $[FVWM_SYSTEMDIR]/scripts/UpdateInfoline 5 $[infostore.Fvwm_Crystal_Recipe]
77
78 # Clock {{{1
79 # original height = 16
80 PipeRead "echo \"*FvwmButtons-InfoLine: (3x1, Size 60 $(($[panel_font_size]+10)), \
81 Swallow (Close, Respawn, FvwmModule) FvwmScript-Clock 'Script components/scripts/FvwmScript-Clock', \
82 Action (Mouse 3) SendToModule *FvwmScript-Clock SendString 1 1 str)\""
83
84 Module FvwmButtons FvwmButtons-InfoLine
85 Style FvwmButtons-InfoLine StaysOnTop
86
87 # MMB Toggle-TopBar-OnTop 1{{{
88 DestroyFunc Toggle-TopBar-OnTop
89 AddToFunc Toggle-TopBar-OnTop
90 + I All (FvwmButtons-InfoLine, !State 1) PutTopBar-OnTop
91 + I TestRc (NoMatch) PutTopBar-OnBottom
92 + I Restore-TopBar-RaiseLower
93
94 DestroyFunc PutTopBar-OnTop
95 AddToFunc PutTopBar-OnTop
96 + I All (FvwmButtons-InfoLine) PutOnTop
97
98 DestroyFunc PutTopBar-OnBottom
99 AddToFunc PutTopBar-OnBottom
100 + I All (FvwmButtons-InfoLine) PutOnBottom
101
102 Echo /--------- Fvwm-Crystal: Recipe loaded ---------/
103 #PrintInfo infostore
104
105 # vim:foldmethod=marker:foldenable:foldlevel=0:ft=fvwm