aboutsummaryrefslogtreecommitdiff
path: root/include/sway/commands.h
AgeCommit message (Collapse)Author
2017-12-05Add minimal config subsystememersion
2017-11-22Add initial command subsystem (untested)Drew DeVault
Need to spin up the IPC server to test this
2017-11-18Move everything to sway/old/Drew DeVault
2017-07-01Add the 'clipboard' command to set the clipboardnyorain
2017-06-07Implement Tray IconsCalvin Lee
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-26Implement no_focusDrew DeVault
Ref #2
2017-04-05Improve criteria handlingCalvin Lee
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
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-03-09deprecate new_window and new_float commandsZandr Martin
2016-12-02Add IPC security policy command handlersDrew DeVault
2016-12-02Enforce command policiesDrew DeVault
2016-12-02Add support for command policies in config fileDrew DeVault
2016-12-01Implement permit and reject commandsDrew DeVault
2016-11-02add bar colours for focused_(workspace|statusline|separator)D.B
If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
2016-10-25Add left_handed support for input devicesMichał Winiarski
Some users may want to switch buttons on their input devices, turns out libinput already supports it. Let's add a support for it in our config. Signed-off-by: Michał Winiarski <knr@hardline.pl>
2016-10-07add force_focus_wrapping optionD.B
2016-09-02Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactorZandr Martin
2016-09-01Reorganize includesDrew DeVault