mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 08:49:50 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/swaymsg
Normal file
30
tldr/swaymsg
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# swaymsg
|
||||
|
||||
> Send messages to a running instance of Sway using IPC.
|
||||
> See <https://github.com/swaywm/sway/blob/master/sway/sway.5.scd> for available commands.
|
||||
> More information: <https://github.com/swaywm/sway/blob/master/swaymsg/swaymsg.1.scd>.
|
||||
|
||||
- Run a Sway command:
|
||||
|
||||
`swaymsg {{command}}`
|
||||
|
||||
- Display a list of workspaces:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_workspaces`
|
||||
|
||||
- Display a list of input devices:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_inputs`
|
||||
|
||||
- Display a list of output devices:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_outputs`
|
||||
|
||||
- Display a layout tree of all open windows, containers, outputs, and workspaces:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_tree`
|
||||
Reference in New Issue
Block a user