aboutsummaryrefslogtreecommitdiff
path: root/swaymsg/main.c
AgeCommit message (Collapse)AuthorLines
2018-10-10Fix program name in version stringsRyan Dwyer-1/+1
When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
2018-08-01ipc: add tick eventIan Fan-1/+7
2018-07-10Remove `clipboard` command and `get_clipboard` messageemersion-42/+2
2018-07-10Add get_config message type to ipcIan Fan-1/+14
2018-07-10Add get_binding_modes message type to ipcIan Fan-0/+2
2018-07-09Update for swaywm/wlroots#1126emersion-1/+1
2018-06-30refactor success_objectArmin Preiml-5/+1
2018-06-30fix swaymsg: errors are displayed againArmin Preiml-6/+21
Command errors didn't get displayed, because the success function didn't accept objects
2018-06-06Store sway_outputs so that they can be reenabledBrian Ashworth-20/+29
2018-05-29Add tree representation to IPC workspace descriptionRyan Dwyer-3/+7
2018-05-28swaymsg: Fix exit codeRyan Dwyer-4/+17
2018-05-12Implement IPC get_seats commandRyan Dwyer-1/+36
2018-05-05swaymsg: Fix spelling in error messageNicolas Braud-Santoni-1/+1
2018-03-12ipc: add output modesemersion-2/+24
2018-01-05swaymsg: convert to wlr_logDominique Martinet-1/+1
2018-01-04update json-c dep to 0.13Rachel K-1/+1
2017-12-29Pretty-print all output info in swaymsg -t get_outputsemersion-3/+16
2017-12-19fix memory leak in swaymsgTony Crisci-1/+3
2017-12-18fix memory leak in swaymsgTony Crisci-1/+1
2017-12-18ipc get_inputsTony Crisci-39/+33
2017-07-11Add get_clipbard ipc errors; Adapt swaymsgnyorain-2/+14
Also increase the get_clipboard timeout to 30 secs
2017-07-07Rework get_clipboard implementationnyorain-14/+27
2017-07-07Implement ipc get_clipboardnyorain-1/+21
2017-04-26Add -DVERSION flag for release version numbersSebastian Noack-5/+1
2017-04-03Add pretty printing to swaymsgDrew DeVault-5/+179
If stdout is a tty, it will pretty print unless -r (--raw) is given. Sample outputs: ``` ~/s/s/build > ./bin/swaymsg fullscreen toggle Error: Permission denied for fullscreen toggle via IPC ~/s/s/build > ./bin/swaymsg -t get_workspaces Workspace 3:三 Output: DVI-I-1 Layout: splith Workspace 1:一 (off-screen) Output: HDMI-A-1 Layout: splith Workspace 5:五 (focused) Output: HDMI-A-1 Layout: splith ~/s/s/build > ./bin/swaymsg -t get_inputs Input device Metadot - Das Keyboard Das Keyboard Type: Keyboard Sway ID: 9456:320:Metadot_-_Das_Keyboard_Das_Keyb Input device Wacom Intuos S 2 Pen Type: Tablet tool Sway ID: 1386:827:Wacom_Intuos_S_2 Input device Wacom Intuos S 2 Pad Type: Tablet pad Sway ID: 1386:827:Wacom_Intuos_S_2 Input device Logitech Gaming Mouse G502 Type: Keyboard, Mouse Sway ID: 1133:49277:Logitech_Gaming_Mous ~/s/s/build > ./bin/swaymsg -t get_outputs Output DVI-I-1 Geometry: 1920x1080 @ 3840,0 Scale factor: 1x Workspace: 3:三 Output DVI-D-1 Geometry: 1920x1080 @ 0,0 Scale factor: 1x Workspace: 4:四 Output HDMI-A-1 Geometry: 1920x1080 @ 1920,0 Scale factor: 1x Workspace: 5:五 ```
2017-03-10UnGNUify the codebaseDrew DeVault-0/+2
2016-07-31swaymsg: pretty print ipc responseTony Crisci-2/+14
fixes #809
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik-2/+2
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-01-19libinputCole Mickens-0/+2
2015-12-02swaymsg: add newline after responseChristoph Gysin-1/+1
2015-11-28Fix option parsingChristoph Gysin-2/+3
Using 'flag' results in duplicate code paths for short and long options. This broke the -q short option in swaymsg, because there was: {"quiet", no_argument, &quiet, 'q'} Which will set quiet to 'q' and return 0, not 'q'.
2015-11-28swaymsg: Add --help option that prints usageChristoph Gysin-1/+3
2015-11-28swaymsg: Print usage and exit on unknown optionsChristoph Gysin-0/+11
2015-11-28Use macros for exit valuesChristoph Gysin-2/+2
2015-11-27Add command line to swaygrabDrew DeVault-1/+4
Also modifies IPC client so that we can work with persistent connections.
2015-11-27Move IPC client into common, refactor IPCDrew DeVault-68/+2
2015-11-27Fix build warningsDrew DeVault-1/+3
2015-11-26Implement swaymsg IPC behaviorDrew DeVault-2/+70
2015-11-26Parse command line args for swaymsgDrew DeVault-2/+92
2015-11-26Add swaymsg subprojectDrew DeVault-0/+11