Tony Crisci
ad879c99e0
ipc show focused container
8 years ago
Tony Crisci
93084c9cf8
remove old focus member
8 years ago
Tony Crisci
f2985000f3
ipc get_inputs
8 years ago
emersion
4e2ab53119
Add IPC get_outputs
8 years ago
Tony Crisci
421f49fe03
basic get_tree
8 years ago
Drew DeVault
7753a0ec75
Wire up IPC server
8 years ago
Drew DeVault
733993a651
Move everything to sway/old/
8 years ago
Drew DeVault
1efd5f819f
Wire up output frame loop
8 years ago
Drew DeVault
7eafcc75f6
Initialize outputs from backend and add to tree
8 years ago
Drew DeVault
46e5aeac50
Fix crash on swaygrab with scratchpad populated
...
Fixes #1217
8 years ago
lbonn
fd7c4bacbd
ipc/tree: populate `focus` fields
...
Ids of children, by order of focus
8 years ago
lbonn
661625b29e
ipc/tree: output mandatory fields for all nodes
...
Still missing: focus
8 years ago
Calvin Lee
843ad38b3c
Implement Tray Icons
...
This commit implements the StatusNotifierItem protocol, and enables
swaybar to show tray icons. It also uses `xembedsniproxy` in order to
communicate with xembed applications.
The tray is completely optional, and can be disabled on compile time
with the `enable-tray` option. Or on runtime with the bar config option
`tray_output none`.
Overview of changes:
In swaybar very little is changed outside the tray subfolder except
that all events are now polled in `event_loop.c`, this creates no
functional difference.
Six bar configuration options were added, these are detailed in
sway-bar(5)
The tray subfolder is where all protocol implementation takes place and
is organised as follows:
tray/sni_watcher.c:
This file contains the StatusNotifierWatcher. It keeps track of
items and hosts and reports when they come or go.
tray/tray.c
This file contains the StatusNotifierHost. It keeps track of
sway's version of the items and represents the tray itself.
tray/sni.c
This file contains the StatusNotifierItem struct and all
communication with individual items.
tray/icon.c
This file implements the icon theme protocol. It allows for
finding icons by name, rather than by pixmap.
tray/dbus.c
This file allows for asynchronous DBus communication.
See #986 #343
9 years ago
Sebastian Noack
173b338567
Add -DVERSION flag for release version numbers
9 years ago
Jerzi Kaminsky
b463fb8adc
Remain compat with libinput < 1.7.0
9 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:五
```
9 years ago
Mykyta Holubakha
e714fbcbec
Add window instance support
9 years ago
Hummer12007
d59af31256
Fix workspace layouts in json data
9 years ago
Drew DeVault
10c8b73075
Handle calloc failures
9 years ago
D.B
58eb7ac19f
change bar colors from char[10] to *char
...
This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
9 years ago
D.B
ad4d21d60b
add bar colours for focused_(workspace|statusline|separator)
...
If these aren't defined in config, color settings without 'focused_'
prefix are used as a fallback.
9 years ago
D.B
39ee0ec552
use urgent_ws color in swaybar if binding_mode is undefined
9 years ago
Zandr Martin
ba581c4442
consolidate nodes json
9 years ago
Zandr Martin
7d947fdb95
add unique IDs to containers
9 years ago
Zandr Martin
0516dba3f6
implement "focused container" feature for swaygrab
9 years ago
Zandr Martin
87080bb9cc
take four!
9 years ago
Drew DeVault
416417a54c
Reorganize includes
10 years ago
Tony Crisci
50901a0892
ipc: always include nodes in views
...
This is for i3 (and i3ipc library) compatability.
10 years ago
Tony Crisci
c98e91f01f
Use uintptr_t for ipc container id
...
This is for compatability with i3.
10 years ago
Zandr Martin
9fa92951fe
remove unmanaged nodes from get_tree
10 years ago
Drew DeVault
cad085ed9d
Update IPC JSON responses for HiDPI setups
10 years ago
Mykyta Holubakha
f022628a2e
Handle transient_for
10 years ago
Mykyta Holubakha
f52daa26c9
Unite describe_view and describe_window
10 years ago
Mykyta Holubakha
2029fef6b8
More progress on window events
10 years ago
Drew DeVault
3bb880bf20
Implement configurable wrapping on bar ws scroll
10 years ago
Hummer12007
cf7c6c5822
Fix a memory leak
10 years ago
Mykyta Holubakha
ea7917784d
Fix build on x86
10 years ago
Zandr Martin
c65d6e6e95
get_tree json fixes
...
- null pointer check against container names
- use actual json null values instead of "null" strings
- add "visible" property to all containers
10 years ago
Zandr Martin
f8a94f2f4b
fix typo in ipc-json.c
10 years ago
Zandr Martin
15a324b0d3
implement `get_tree` command
10 years ago