Link

Usage


Basic

berry does not handle keyboard input on its own. Instead, a program like sxhkd is needed to translate keypress events into berryc commands. The window manager can be controlled via the following commands:

Example

# Moves the current client by 10 in the x and y direction
berryc move_relative 10 10 

Commands

  • window_movex y
    • move the focused window by x and y pixels, relatively
  • window_move_relativex y
    • move the focused window to position x and y
  • window_resizex y
    • resize the focused window by x and y pixels, relatively
  • window_resize_relativex y
    • resize the focused window by x and y
  • window_raise
    • raise the focused window
  • window_monocle
    • set the focused window the fill the screen, respecting top_gap, maintains decorations
  • window_close
    • close the focused window and its associated application
  • window_center
    • center the focused window, maintains current size
  • switch_workspacei
    • switch the active desktop
  • send_to_workspacei
    • send the focused window to the given workspace
  • fullscreen
    • toggle fullscreen status of the focused window, fills the active screen
  • fullscreen_state
    • toggle fullscreen status of the focused window, doesn’t resize the window
  • snap_left
    • snap the focused window to fill the left half of the screen
  • snap_right
    • snap the focused window to fill the right half of the screen
  • cardinal_focus1/2/3/4
    • shift focus to the nearest client in the specified direction
  • toggle_decorations
    • toggle decorations for the focused client
  • cycle_focus
    • change focus to the next client in the stack
  • pointer_focus
    • focus the window under the current pointer (used by sxhkd)

Secondary Applications

berry is designed with the unix philosophy in mind - do one thing and do it well. Therefore, you will need other applications to emulate an experience similar to that of a full desktop environment. The following is a list of applications that the creator recommends: