Page Indicator

From Fvwm Extensions (configs) Archive
Revision as of 09:01, 10 July 2025 by Admin (talk | contribs) (Created page with "right|150px|link=Page Indicator|Image '''Page Indicator''' <small>''(function)''</small> 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. <pre> ## FILE 1 ## Functions: deskPgNo.sys SetEnv HOME_DIR $[HOME]/.fvwm SetEnv CORE_DIR $[HOME]/.fvwm/core ColorSet 15 RootTransparent Buffer, Tint #4A516A 50, fg white, bg black Destro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Image

Page Indicator (function) 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
## Functions: deskPgNo.sys

SetEnv HOME_DIR $[HOME]/.fvwm
SetEnv CORE_DIR $[HOME]/.fvwm/core

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

DestroyFunc DeskPgNo

AddToFunc DeskPgNo
+ I Current InfoStoreAdd CURRENTWINDOW $[w.id]
+ I AddToMenu DeskNoMenu "  CURRENT Desk: $[desk.n] | Page: $[page.nx] - $[page.ny]  "  Title
+ I + DynamicPopDownAction DestroyMenu DeskNoMenu
+ I WindowId $[infostore.CURRENTWINDOW] WarpToWindow 50 50
+ I Popup DeskNoMenu Colorset 6

## Desk Number Panel

Module FvwmButtons NoDeskI
DestroyModuleConfig NoDeskI: *
*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

HOW TO: Create folder .fvwm/core/1Functions/PageIndicator
Copy FILE 1 and run the below line:
Read $[CORE_DIR]/1Functions/PageIndicator/deskPgNo.sys'