Page Indicator: Difference between revisions

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
## Functions
## Functions


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


DestroyFunc DeskPgNo
DestroyModuleConfig PgNo:*
AddToFunc DeskPgNo
*PgNo: Geometry 235x32+10+10
+ I Current InfoStoreAdd CURRENTWINDOW $[w.id]
*PgNo: Fore #ffffff
+ I AddToMenu DeskNoMenu " CURRENT Desk: $[desk.n] | Page: $[page.nx] - $[page.ny"  Title
*PgNo: Pixmap none
+ I + DynamicPopDownAction DestroyMenu DeskNoMenu
*PgNo: Font "xft:Sans:size=11:antialias=True"
+ I WindowId $[infostore.CURRENTWINDOW] WarpToWindow 50 50
*PgNo: Frame 0
+ I Popup DeskNoMenu Colorset 6
*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)


## Desk Number Panel
Style PgNo !Title, !Borders, WindowListSkip, StaysOnTop, Sticky


Module FvwmButtons NoDeskI
KillModule FvwmButtons PgNo
DestroyModuleConfig NoDeskI: *
Module FvwmButtons PgNo
*NoDeskI: Geometry 264x32+8+10
*NoDeskI: Fore #ffffff
*NoDeskI: Rows 1
*NoDeskI: Pixmap none
*NoDeskI: Frame 0
*NoDeskI: (80x1, Title "DESK NO:", Font "xft:Sans:Bold:size=10:antialias=True", Back #2c4e5e)
*NoDeskI: (50x1, Title "click", Action DeskPgNo, Colorset 15)
*NoDeskI: (134x1, Action DeskPgNo, Back #cadfdb, Colorset 15)


Style NoDeskI !Title, !Borders, WindowListSkip, Sticky
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
</pre>
</pre>
----
----

Latest revision as of 15:35, 15 July 2025

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