-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdButtonPager.sys
138 lines (111 loc) · 4.64 KB
/
dButtonPager.sys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
## Modules/Extra: dButtonPager.sys
## Loaded by deskerConf.sys
SetEnv HOME_DIR $[HOME]/.fvwm
SetEnv CORE_DIR $[HOME]/.fvwm/core
## Load RetunDesk
Read $[CORE_DIR]/7Modules/Desker/deskerConf.sys
Colorset 21 fg #ffffff, bg #028383, hi, sh, Plain, NoShape
Colorset 18 fg #ffffff, bg #306ea2, hi #ffffff, sh #ffffff, Plain
Colorset 15 RootTransparent Buffer, Tint #4A516A 40, fg white, bg black
## Icon location.
SetEnv icons $[CORE_DIR]/7Modules/Desker/icons
##########
## Desker Panel button
##########
## Bar Buttons
Module FvwmButtons BarButtons
DestroyModuleConfig BarButtons: *
*BarButtons: Geometry 160x250-0+0
*BarButtons: Font "xft:Sans:size=10:antialias=True"
#*BarButtons: Colorset 16
*BarButtons: (Padding 0 10, Colorset 18, Container(Rows 1, Frame 0))
*BarButtons: (1x1, Padding 0 0, Container(Columns 4, Colorset 16, Frame 1))
*BarButtons: (2x2, Icon $[icons]/work-line.png, \
Panel(left, position module -10+4 top, steps 6, delay 10, indicator 48) \
"FvwmDesker" 'Module FvwmPager FvwmDesker 0 3', Id open-panel, Frame 2)
*BarButtons: (1x1, Icon $[icons]/move.png, Action Move)
*BarButtons: (1x1, Icon $[icons]/curve.png, Action(Mouse 1) `ReturnDesk`)
*BarButtons: (1x1, Icon $[icons]/resize.png, Action Resize)
*BarButtons: (1x1, Icon $[icons]/close.png, Action Close)
*BarButtons: (2x2, Title "1rof/3cal", Icon $[icons]/calendar-rofi.png, \
Action(Mouse 1) 'Exec exec rofi -show', \
Action(Mouse 3) 'Exec exec $[CORE_DIR]/7Modules/TimeDayButton/script/Calendar.sh', Frame 1)
*BarButtons: (2x2, Title "xclock", Swallow "xclock" 'Exec exec xclock')
*BarButtons: (4x2, Swallow "FvwmPagerBar" 'FvwmPager FvwmPagerBar *')
*BarButtons: (End)
*BarButtons: (End)
Style BarButtons NoTitle, NoHandles, !Title, WindowListSkip, Layer 4, Sticky, !Iconifiable, \
BorderColorset 10, BorderWidth 0, StaysOnTop, NeverFocus
######
# FvwmPager: Swallowed by BarButtons
######
DestroyModuleConfig FvwmPagerBar: *
*FvwmPagerBar: Colorset * 15
*FvwmPagerBar: HilightColorset * 21 ## (active page background)
*FvwmPagerBar: BalloonColorset * 10 ## (font color)
*FvwmPagerBar: WindowColorsets 37 18 ## (inactive - active apps)
*FvwmPagerBar: WindowBorderWidth 1
*FvwmPagerBar: BalloonStringFormat %c
*FvwmPagerBar: BallonYOffset +2
*FvwmPagerBar: Window3dBorders
*FvwmPagerBar: UseSkipList # hides modules
*FvwmPagerBar: MiniIcons
######
# Desker Pager: Swallowed by BarButtons Panel
######
## Desktop size
DesktopSize "2 1" ## (columns - rows)
## Desk names:
DesktopName 0 Web
DesktopName 1 Email
DesktopName 2 Office
DesktopName 3 Misc
## Transparent tint color example
#Colorset 22 RootTransparent Buffer, fg black, Tint #8bade7 60
## With thumbnail
Colorset 22 Pixmap $[CORE_DIR]/7Modules/Desker/bkg/web-bkg-bw.png, Tint #9cd7d7 35
Colorset 23 Pixmap $[CORE_DIR]/7Modules/Desker/bkg/email-bkg-bw.png, Tint #5ff34b 30
Colorset 28 Pixmap $[CORE_DIR]/7Modules/Desker/bkg/work-bkg-bw.png, Tint #ffd176 40
Colorset 25 Pixmap $[CORE_DIR]/7Modules/Desker/bkg/misc-bkg-bw.png, Tint #d4cbcb 20
## Pager
DestroyModuleConfig FvwmDesker: *
*FvwmDesker: Geometry 528x62
*FvwmDesker: Rows 1 ## (page rows)
*FvwmDesker: HilightColorset * 21 ## (active page background)
*FvwmDesker: BalloonColorset * 10 ## (font color)
*FvwmDesker: WindowColorsets 37 18 ## (inactive - active apps)
*FvwmDesker: Font "xft:Sans:size=12:antialias=True"
*FvwmDesker: Colorset 0 22
*FvwmDesker: Colorset 1 23
*FvwmDesker: Colorset 2 28
*FvwmDesker: Colorset 3 25
*FvwmDesker: WindowBorderWidth 1
*FvwmDesker: BalloonStringFormat %c
*FvwmDesker: BallonYOffset +2
*FvwmDesker: Window3dBorders
*FvwmDesker: UseSkipList # hides modules
*FvwmDesker: MiniIcons
Style FvwmDesker NoTitle, !Handles, Borders, BorderWidth 1, BorderColorset 6, Sticky, \
WindowListSkip, FixedSize, !Iconifiable, StaysOnTop, NeverFocus
## Desk wallpaper
DestroyModuleConfig FvwmBacker: *
*FvwmBacker: Command (Desk 0) Exec exec $[infostore.VER] $[CORE_DIR]/7Modules/Desker/bkg/web-tiled-col.png
*FvwmBacker: Command (Desk 1) Exec exec $[infostore.VER] $[CORE_DIR]/7Modules/Desker/bkg/email-tiled-col.png
*FvwmBacker: Command (Desk 2) Exec exec $[infostore.VER] $[CORE_DIR]/7Modules/Desker/bkg/work-tiled-col.png
*FvwmBacker: Command (Desk 3) Exec exec $[infostore.VER] $[CORE_DIR]/7Modules/Desker/bkg/misc-tiled-col.png
## Panel open at start
Module FvwmBacker
Schedule 1500 SendToModule BarButtons PressButton open-panel 1
######
# Change preset menu style: Titlebar Right Click
# (check core/4Menus/KMenu/kMenu.conf "Send To")
######
DestroyMenu SendToDesk
AddToMenu SendToDesk
+ " Web Desk " MoveToDesk 0 0
+ " Email Desk " MoveToDesk 0 1
+ " Office Desk " MoveToDesk 0 2
+ " Misc Desk " MoveToDesk 0 3
+ "-" Nop
+ " Right Page " Move w+115 w
+ " Left Page " Move w-115 w