aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2018-03-27swaybar: correctly render min_width for stringsJonathan Rouleau-1/+1
fixes #1635
2018-02-04Handle swaybar status line errorsCalvin Lee-4/+10
The event loop API was redesigned to avoid race conditions as well. Fixes #1583
2017-12-29Keep tray separategnidorah-0/+2
2017-12-29Fix icon updating on secondary outputsgnidorah-0/+1
2017-12-29Fix `get_icon`Calvin Lee-3/+11
Property reply functions are now notified if there was an error with the property instead of silent failure. Also issues in `get_item` were resolved.
2017-12-29Add `dbus_get_prop_async` utilityCalvin Lee-0/+17
This drastically reduces the amount of boilerplate needed to get a property from a bus object.
2017-12-29Plug memory `dbus_message_iter_get_signature` leakCalvin Lee-0/+6
2017-12-29Correct context menu placement if bar is bottomCalvin Lee-0/+1
Originally the context menu would draw at the top of the screen, which is incorrect.
2017-12-29Allow multiple object paths for each connectionCalvin Lee-0/+11
2017-12-29Allow registering StatusNotifierItems by obj pathCalvin Lee-0/+8
This commit impliments a KDE hidden feature where a SNI could be registered by object path instead of well-known name. This should allow libappindicator programs to work correctly under sway. See #1372
2017-12-17Adaptions for API change in json-c v0.130.15.1Björn Esser-1/+17
Lift restriction on json-c <= 0.12.1 ipc-server: Acquire ownership of referenced json_object properly When adding a referenced json_object with an unknown lifetime to another json_object, it must be done with a wrapped call to json_object_get() to acquire the ownership of that json_object.
2017-12-17Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"Drew DeVault-17/+1
This reverts commit 1c4a086e7556475139960a25cb642f115d057c23, reversing changes made to 1263ea6497c732bfa1835eea4a8ffe2e6ea6e377.
2017-12-14Adaptions for API change in json-c v0.13Björn Esser-1/+17
2017-11-05Fix init_tray function declarationAdam Mizerski-1/+1
This fixes compilation failure: error: call to function 'init_tray' without a real prototype
2017-10-08Merge pull request #1263 from nyorain/masterDrew DeVault-1/+8
Implement get_clipboard ipc message
2017-08-29click_events as documented at https://i3wm.org/docs/i3bar-protocol.htmlakokshar@redhat.com-0/+11
2017-07-31Allow swaylock indicator size to be configurableCalvin Lee-0/+3
2017-07-13Don't trust SNI names, fixes #1274Calvin Lee-0/+1
If an item doesn't have a well-formed name, it will not be added to the tray.
2017-07-12Use WLC v2 pointer interfaceScott Anderson-1/+1
2017-07-07Rework get_clipboard implementationnyorain-1/+6
2017-07-07Implement ipc get_clipboardnyorain-1/+3
2017-07-01Add the 'clipboard' command to set the clipboardnyorain-0/+1
2017-06-14Merge branch 'master' into server-decorationDrew DeVault-1/+217
2017-06-13Remove Xembed SupportCalvin Lee-3/+0
Xembed support is premature in sway and should be postponed. This commit only removes swaybar starting xembedsniproxy, if users would like, they can still start xembedsniproxy manually, however there will be no official support.
2017-06-07Reorganize Tray CodeCalvin Lee-4/+13
Remove tray code from bar.c and render.c
2017-06-07Implement Tray IconsCalvin Lee-1/+211
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
2017-04-28Implement KDE's server-side decoration protocolDrew DeVault-0/+7
2017-04-26Implement no_focusDrew DeVault-0/+5
Ref #2
2017-04-20Make sway_abort() report locationJerzi Kaminsky-1/+4
2017-04-16Add resolve_path() to utilsJerzi Kaminsky-0/+8
2017-04-16Move get_feature_policy to sway/security.cJerzi Kaminsky-0/+2
2017-04-16Disambiguate get_*_policy() and get_*_policy_mask()Jerzi Kaminsky-3/+3
2017-04-16Fix location reported by sway_assertJerzi Kaminsky-2/+2
2017-04-16Fix variadic forwarding in sway_assertJerzi Kaminsky-0/+3
_sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616
2017-04-10Merge branch 'master' into pretty-print-swaymsgDrew DeVault-0/+15
2017-04-05Improve criteria handlingCalvin Lee-0/+6
This commit changes how commands decide what container to act on. Commands get the current container though `current_container`, a global defined in sway/commands.c. If a criteria is given before a command, then the following command will be run once for every container the criteria matches with a reference to the matching container in 'current_container'. Commands should use this instead of `get_focused_container()` from now on. This commit also fixes a few (minor) mistakes made in implementing marks such as non-escaped arrows in sway(5) and calling the "mark" command "floating" by accident. It also cleans up `criteria.c` in a few places.
2017-04-03Impliment i3-style marksCalvin Lee-0/+9
This commit adds three commands to sway: `show_marks`, `mark` and `unmark`. Marks are displayed right-aligned in the window border as i3 does. Marks may be found using criteria. Fixes #1007
2017-04-03Add pretty printing to swaymsgDrew DeVault-0/+1
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-18wl_poitner -> wl_pointerZandr Martin-1/+1
2017-03-14Removed superfluous include, causing failures if WLC headers aren't ↵Sebastian Noack-1/+0
installed globally
2017-03-13Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliasesZandr Martin-19/+19
2017-03-10Correct indentationDrew DeVault-19/+19
2017-03-09deprecate new_window and new_float commandsZandr Martin-1/+3
2017-03-01i3 feature support: Moving flotaing containersCalvin Lee-1/+1
This commit lets the 'move' command apply to floating containers as well as tiled ones. The command may be appended with a number of pixels and then optionally the string `px` (like '10 px') in order to move the container more or fewer than the standard ten pixels.
2017-02-22Merge branch 'master' into swaylock_colorsDrew DeVault-5/+18
2017-02-21Documentation and style fixes for swaylockCalvin Lee-0/+6
2017-02-21Feature for #1078: Configurable swaylock colorsCalvin Lee-21/+41
Colors are configured through the command line so that swaylock conforms to the i3lock fork 'github.com/chrjguill/i3lock-color'. Differences from it are that one letter options '-r' and '-s' are not implimentend because '-s' is already used by '--scaling' in swaylock. This commit also fixed whitespace in 'include/swaylock/swaylock.h' and changed `parse_color` in 'common/util.h' so that it can accept colors that do not start with a hash. This was done to keep compatability with the i3lock fork.
2017-02-20Read configs from /etc/sway/security.d/*Drew DeVault-0/+2
2017-02-20Add * policies and fix bugDrew DeVault-1/+6
2017-02-20Add initial support code for new IPC securityDrew DeVault-4/+10