nyorain
1e894c1166
Handle x11 text atoms in get_clipboard ipc
7 years ago
nyorain
c0f2acce4e
Rework get_clipboard implementation
7 years ago
nyorain
42547cafb6
Fix/Simplify get_clipboard ipc-server impl
7 years ago
nyorain
02c75ebe37
Implement ipc get_clipboard
7 years ago
Jerzi Kaminsky
cf5e764c7f
Disambiguate get_*_policy() and get_*_policy_mask()
8 years ago
Drew DeVault
5d3a02a7c6
Merge branch 'master' into pretty-print-swaymsg
8 years ago
Calvin Lee
154c6718c1
Add `-t get_marks` and use more i3-like marks
...
In i3 every mark is unique and one mark cannot be used in more than one
window, sway behavior has been amended to match this.
`swaymsg -t get_marks` will now return an array of all marks used in sway.
See #98
8 years ago
Scott Anderson
1b2cd93212
Removed explicitly setting file descriptors to -1
8 years ago
Drew DeVault
50a31a6c88
Fix dangling file descriptors ( fixes #1152 )
8 years ago
Drew DeVault
60ce81e06a
Add pretty printing to swaymsg
...
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:五
```
8 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Drew DeVault
126ce571da
Read configs from /etc/sway/security.d/*
8 years ago
Drew DeVault
1980a08358
Enforce new IPC policies
8 years ago
Drew DeVault
b10721b89e
Add initial support code for new IPC security
8 years ago
Drew DeVault
d859f825d3
Fix build error
8 years ago
Drew DeVault
31b002b6d5
Handle IPC server allocation failures
8 years ago
Drew DeVault
8cef81d6f2
Handle some more memory allocation failures
8 years ago
Greg V
da26d69cb1
Fix build on FreeBSD
...
- Make sure CMake always finds absolute paths for Cairo, Pango and GdkPixbuf
- Add forgotten json-c include path to swaymsg/CMakeLists.txt
- Disable -Werror because of assert warnings
- Add correct /proc/pid/file path for FreeBSD
- Use libepoll-shim on FreeBSD
- Only use Linux capabilities on, well, Linux
8 years ago
Drew DeVault
d93e53fd4b
Use return value of write
8 years ago
Drew DeVault
d353da248b
Add ipc connection feature policy controls
8 years ago
Drew DeVault
62dad7148f
Enforce IPC security policy
8 years ago
Drew DeVault
e9e1a6a409
Add IPC policy to config
...
Also reduces enum abuse, cc @minus7
8 years ago
Drew DeVault
0a1b211e09
Drop -Denable-binding-event
8 years ago
Drew DeVault
39cf9a82f7
Enforce command policies
8 years ago
Zandr Martin
0516dba3f6
implement "focused container" feature for swaygrab
8 years ago
Zandr Martin
e75217cfb1
fix get_workspaces json reply
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Tony Crisci
4ab35df157
ipc: log sending of events
...
Log the sending of the events in the debug log. This makes ipc server events
easier to verify.
8 years ago
Tony Crisci
e1e15bb43e
ipc: recursive workspace containers in event
...
Recursively describe workspace containers in the workspace event. This is for
compatability with i3 and i3ipc libraries.
8 years ago
Mykyta Holubakha
cf8ef2aea2
Initialize client's subscribed events
8 years ago
Mykyta Holubakha
f52daa26c9
Unite describe_view and describe_window
8 years ago
Mykyta Holubakha
e5c7b019ff
Fix dispatching and assigning events
8 years ago
Mykyta Holubakha
2029fef6b8
More progress on window events
8 years ago
Mykyta Holubakha
976e48d79f
Initial work on window events
8 years ago
Zandr Martin
15a324b0d3
implement `get_tree` command
9 years ago
Zandr Martin
1b4d61662c
fix swaybar problem in 08bef67
9 years ago
Eric Engestrom
08bef67f85
sway: refactor ipc_client_handle_command()
...
This fixes a few mem leaks, as well as remove a false-positive error msg
in IPC_GET_BAR_CONFIG
9 years ago
Eric Engestrom
9d7d73df7f
sway: fix IPC resource leak
9 years ago
Eric Engestrom
3d6a3413b8
sway: always terminate ipc path
9 years ago
Mykyta Holubakha
0f1cfdec61
Renamed to pango_markup
9 years ago
Mykyta Holubakha
2e6c43e62b
Added plaintext_markup to swaybar IPC
9 years ago
Mikkel Oscar Lyderik
f39034a55f
Use correct format string for x86_64 and i686
...
Fix #587
9 years ago
Mikkel Oscar Lyderik
212c6a18a2
Add outputs to bar_config ipc response
9 years ago
Mikkel Oscar Lyderik
6f7cbf2eac
Replace deprecated function wlc_output_get_pixels.
...
This makes IPC GET_PIXELS use the new `wlc_pixels_read` call instead of
the deprecated `wlc_output_get_pixels`.
The old version worked by passing a callback function to wlc which would
grab the pixels and send them to the IPC client.
The new version works by maintaining a list of clients who have
requested the pixels of some output and then grap and send the pixels in
the output_post_render hook of the `wlc_interface`.
9 years ago
crondog
0ee5547406
font: Allow adding font to the config. In prep for border titles
...
v2: Give default font and make bar use it if no bar font
9 years ago
Cole Mickens
28081b7689
libinput
9 years ago
Mikkel Oscar Lyderik
15621ea8ff
Add backwards compatability for binding event
9 years ago
Mikkel Oscar Lyderik
e3ddcaabc4
Add bindcode to binding events.
9 years ago
Mikkel Oscar Lyderik
15cbc53a77
Make IPC binding event support a compile time opt.
9 years ago
Mikkel Oscar Lyderik
6392abe35b
Implement IPC binding event (keyboard)
...
This implements the IPC binding event for keyboard bindings. It is
slightly different from the i3 implementation [1] since sway supports
more than one non-modifier key in a binding. Thus the json interface has
been changed from:
{
...
"symbol": "t",
...
}
to:
{
...
"symbols": [ "t" ],
...
}
[1] http://i3wm.org/docs/ipc.html#_binding_event
9 years ago