Desk Launcher
Jump to navigation
Jump to search
Desk Launcher (function) is an application launcher. Normally an icon represents a minimized application. If you want to turn that around, launch functions or modules by clicking on icons. Here’s to do that using FvwmButtons.
## FILE 1
## Functions: deskL.sys
SetEnv dLicons /icons
## Iconify all except focused window.
DestroyFunc AIconic
AddToFunc AIconic
+ I All (CurrentPage, !Iconic, !Focused) Thumbnail
## OverView (using function FvwmExpose)
## Vertical/horizontal tiling
DestroyFunc WTile
AddToFunc WTile
+ I Read deTile.txt
## Work Desk environment
DestroyFunc WorkD
AddToFunc WorkD
+ I Read workDesktxt
## Exclude the possibility of FvwmButtons being iconified.
Style FvwmButtons !Iconifiable
DestroyFunc DLauncher
AddToFunc DLauncher
+ I DestroyModuleConfig $0DLaunch: *
+ I *$0DLaunch: Geometry 80x80
+ I *$0DLaunch: PressColorset 7
+ I *$0DLaunch: Columns 1
+ I *$0DLaunch: Rows 4
+ I *$0DLaunch: Frame 0
+ I *$0DLaunch: (1x3+0+0, Icon $1, Action (Mouse 1) `$2`)
+ I *$0DLaunch: Pixmap none
+ I *$0DLaunch: (1x1+0+3, Font 9x15, Fore White, Back #2b4e5e, \
Title $0, Action (Mouse 1) `Exec exec $2`)
+ I Style $0DLaunch HandleWidth 0, NoTitle
+ I Module FvwmButtons $3 $0DLaunch
+ I UpdateStyles
DLauncher Iconify $[dLicons]/iconifyBkg.png "AIconic" "-g +15-15"
DLauncher OverView $[dLicons]/overViewBkg.png 'FvwmExpose' "-g +105-15"
DLauncher Tile $[dLicons]/tileBkg.png "WTile" "-g +195-15"
DLauncher WorkDesk $[dLicons]/work.png "WorkD" "-g +285-15"
Style *DLaunch* !Borders, !Title, WindowListSkip, Sticky, StaysOnTop
Style *DLaunch* NeverFocus
HOW TO:
Copy the code and paste it into your config. Or create FILE 1 and run the below line:
Read deskL.txt
Add this line in .fvwm/config when iconifying all except one which is focused.
Style *DLaunch* NeverFocus
Read more:
https://www.fvwm.org/Wiki/Tips/IconsOnDesktop
https://www.fvwm.org/Wiki/CookBook/IconifyExcept