Desk Launcher

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search
Image

Desk Launcher (functions) 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 how to do that using FvwmButtons.

## FILE 1: deskL.txt
## Functions

SetEnv dLicons $[HOME]/.fvwm/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 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 $[HOME]/.fvwm/deskL.txt


Read more:
https://www.fvwm.org/Wiki/Tips/IconsOnDesktop
https://www.fvwm.org/Wiki/CookBook/IconifyExcept