Skip to content

Scripting

Vesko Karaganev edited this page Jul 25, 2022 · 1 revision
USAGE:
    fancywm --action <action>

Supported actions

  • PullWindowUp - move the window out of its containing panel
  • ToggleFloatingMode - toggle floating mode for the focused window
  • ToggleManager - toggle FancyWM window management
  • RefreshWorkspace - force a change-detection cycle on the whole workspace

Panel creation

  • CreateHorizontalPanel - create a new horizontal panel around the focused window
  • CreateVerticalPanel - create a new vertical panel around the focused window
  • CreateStackPanel - create a new stack panel around the focused window

Movement

  • MoveFocusLeft - focus the window to the left of the focused window
  • MoveFocusRight - focus the window to the right of the focused window
  • MoveFocusUp - focus the window above the focused window
  • MoveFocusDown - focus the window below the focused window
  • MoveLeft - move the focused window to the left
  • MoveRight - move the focused window to the right
  • MoveUp - move the focused window up
  • MoveDown - move the focused window down
  • SwapLeft - swap the focused window to the left
  • SwapRight - swap the focused window to the right
  • SwapUp - swap the focused window up
  • SwapDown - swap the focused window down

Resizing

  • IncreaseWidth - increase the width of the focused window
  • DecreaseWidth - decrease the width of the focused window
  • IncreaseHeight - increase the height of the focused window
  • DecreaseHeight - decrease the height of the focused window

NOTE: Resizing happens in 8.33% increments of the pixel width of the respective axis (12 increments).

Virtual desktops

  • SwitchToPreviousDesktop - switch to the previous virtual desktop (if any) [v2.7.0+]
  • SwitchToDesktopN - switch to the specified virtual desktop
  • MoveToPreviousDesktop - move the focused window to the previous virtual desktop (if any) [v2.7.0+]
  • MoveToDesktopN - move the focused window to the specified virtual desktop

Multiple monitors

  • SwitchToPreviousDisplay - switch to the previous display (if any) [v2.8.0+]
  • SwitchToDisplayN - switch to the specified display [v2.8.0+]
  • MoveToPreviousDisplay - move the focused window to the previous display (if any) [v2.8.0+]
  • MoveToDisplayN - move the focused window to the specified display [v2.8.0+]
Clone this wiki locally