Page Indicator

From Fvwm Extensions (configs) Archive
Revision as of 15:35, 15 July 2025 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Image

Page Indicator (functions) a horizontal Desk and page indicator shows the desk number and indicates which page is currently being displayed. Requires a mouse click to display the numbers.

## FILE 1: deskPgNo.txt
## Functions

ColorSet 15 RootTransparent Buffer, Tint #4a516a 50, fg white, bg black

DestroyModuleConfig PgNo:*
*PgNo: Geometry 235x32+10+10
*PgNo: Fore #ffffff
*PgNo: Pixmap none
*PgNo: Font "xft:Sans:size=11:antialias=True"
*PgNo: Frame 0
*PgNo: Rows 1
*PgNo: (80x1, Back #2b4e5e, Title "DESK NO:", \
	Font "xft:Sans:Bold:size=10:antialias=True")
*PgNo: (70x1, Colorset 15, Title "Desk: $[monitor.$[monitor.current].desk]", \
Id D, Action (Mouse 1) Nop)
*PgNo: (85x1, Colorset 15, Title (Left) "Page: $[monitor.$[monitor.current].pagex]  \
$[monitor.$[monitor.current].pagey]", Left, Id P, Action (Mouse 1) Nop)

Style PgNo !Title, !Borders, WindowListSkip, StaysOnTop, Sticky

KillModule FvwmButtons PgNo
Module FvwmButtons PgNo

DestroyModuleConfig FE-Label:*
*FE-Label: Cmd
*FE-Label: new_desk "SendToModule PgNo ChangeButton D \
Title 'Desk: $$$$[monitor.$[monitor.current].desk]'"
*FE-Label: new_page "SendToModule PgNo ChangeButton P \
Title 'Page: $$$$[monitor.$[monitor.current].pagex]  \
$$$$[monitor.$[monitor.current].pagey]'"

KillModule FvwmEvent FE-Label
Module FvwmEvent FE-Label

HOW TO: Copy the code and paste it into your config. Or create FILE 1 and run the below line:
Read $[HOME]/.fvwm/deskPgNo.txt