fxde-core/infra/funcrc
2021-03-06 13:17:27 -04:00

76 lines
2.0 KiB
Plaintext

# Test function. You shouldn't be seeing this.
DestroyFunc TestScrotFunc
AddToFunc TestScrotFunc
+ I Exec exec $[infostore.posix]/hunter -g
# Load and restore preferences.
DestroyFunc PrefFunc
AddToFunc PrefFunc
+ I Read $[FVWM_USERDIR]/.data/prefrc
+ I Function PaperBoy $[infostore.papedir]/$[infostore.pape]
# Start daemons.
DestroyFunc DaemonFunc
AddToFunc DaemonFunc
+ I Exec exec $[infostore.compositor]
+ I Exec exec /usr/bin/xssstart $[infostore.locker]
+ I Exec exec $[infostore.notifs]
+ I Exec exec $[infostore.posix]/batman
+ I Exec exec emacs --daemon
# Spawn modules and whatnot.
AddToFunc ModuleFunc
+ I Module FvwmEvent AudioEvents
+ I Module FvwmButtons TaskBar
+ I Schedule 5 Module FvwmButtons Shelf
+ I Schedule 10 Module FvwmPager ShelfPager
# Define how to handle task switching.
DestroyFunc TaskSwitchFunc
AddToFunc TaskSwitchFunc
+ I Iconify off
+ I Focus
+ I Raise
+ I WarpToWindow !raise 5 5
# Define the "Show Desktop" feature
DestroyFunc ShowDeskFunc
AddToFunc ShowDeskFunc
+ I All (CurrentDesk, Iconic, State 1) HideDeskFunc
+ I TestRc (Match) Break
+ I All (CurrentDesk, !Iconic, !State 1) ThisWindow State 1 True
+ I All (CurrentDesk, !Iconic, State 1) Iconify
DestroyFunc HideDeskFunc
AddToFunc HideDeskFunc
+ I All (CurrentDesk, Iconic, State 1) Iconify off
+ I All (CurrentDesk, State1) ThisWindow State 1 False
# Remove widgets and set window dimensions to the size of the screen minus the
# UI elements. This simulates "full screen" without covering stuff.
DestroyFunc LargeifyFunc
AddToFunc LargeifyFunc
+ I PipeRead ""
# A simple function to set the wallpaper.
DestroyFunc PaperBoy
AddToFunc PaperBoy
+ I InfoStoreAdd pape /home/midfavila/.config/fvwm/.data/prefs/cosmetics/pape
+ I Exec exec $[infostore.posix]/paperboy $[infostore.papedir]/`cat $[infostore.pape]`