fxde-core/infra/funcrc

71 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-03-06 12:17:27 -05:00
# Test function. You shouldn't be seeing this.
DestroyFunc TestScrotFunc
AddToFunc TestScrotFunc
2021-06-15 18:25:01 -04:00
+ I ThisWindow import -window
2021-03-06 12:17:27 -05:00
# Load and restore preferences.
DestroyFunc PrefFunc
2021-04-30 22:50:29 -04:00
AddToFunc PrefFunc
2021-03-06 12:17:27 -05:00
2021-04-30 22:50:29 -04:00
+ I Read $[FVWM_USERDIR]/.data/prefrc
+ I Function PaperBoy $[infostore.papedir]/$[infostore.pape]
2021-03-06 12:17:27 -05:00
# Start daemons.
DestroyFunc DaemonFunc
AddToFunc DaemonFunc
2021-04-30 22:50:29 -04:00
+ I Exec $[infostore.compositor] -c
+ I Exec /usr/bin/env xssstart $[infostore.locker]
+ I Exec $[infostore.notifs]
+ I Exec $[infostore.posix]/batman
+ I Module FvwmCommandS
2021-03-06 12:17:27 -05:00
# Spawn modules and whatnot.
2021-04-30 22:50:29 -04:00
DestroyFunc ModuleFunc
AddToFunc ModuleFunc
2021-03-06 12:17:27 -05:00
2021-04-30 22:50:29 -04:00
+ I Module FvwmEvent AudioEvents
# + I Module FvwmButtons TaskBar
# + I Schedule 5 Module FvwmIconMan TaskBarButtons
+ I Schedule 5 Module FvwmButtons Shelf
+ I Schedule 10 Module FvwmPager ShelfPager
2021-03-06 12:17:27 -05:00
# Define how to handle task switching.
DestroyFunc TaskSwitchFunc
AddToFunc TaskSwitchFunc
2021-04-30 22:50:29 -04:00
+ I Iconify off
2021-03-06 12:17:27 -05:00
+ I Focus
+ I Raise
+ I WarpToWindow !raise 5 5
# Define the "Show Desktop" feature
DestroyFunc ShowDeskFunc
AddToFunc ShowDeskFunc
2021-04-30 22:50:29 -04:00
+ 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
2021-03-06 12:17:27 -05:00
DestroyFunc HideDeskFunc
AddToFunc HideDeskFunc
2021-04-30 22:50:29 -04:00
+ I All (CurrentDesk, Iconic, State 1) Iconify off
+ I All (CurrentDesk, State1) ThisWindow State 1 False
2021-03-06 12:17:27 -05:00
# Remove widgets and set window dimensions to the size of the screen minus the
# UI elements. This simulates "full screen" without covering stuff.
2021-04-30 22:50:29 -04:00
# Currently a WIP.
2021-03-06 12:17:27 -05:00
DestroyFunc LargeifyFunc
AddToFunc LargeifyFunc
2021-04-30 22:50:29 -04:00
+ I Maximize
2021-03-06 12:17:27 -05:00
# A simple function to set the wallpaper.
DestroyFunc PaperBoy
2021-04-30 22:50:29 -04:00
AddToFunc PaperBoy
2021-05-03 15:49:32 -04:00
+ I InfoStoreAdd pape $[FVWM_USERDIR]/../fxde-data/prefs/cosmetics/pape
2021-04-30 22:50:29 -04:00
+ I Exec $[infostore.posix]/paperboy $[infostore.papedir]/`cat $[infostore.pape]`