aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
Commit message (Collapse)AuthorAge
...
* Add initial command subsystem (untested)Libravatar Drew DeVault2017-11-22
| | | | Need to spin up the IPC server to test this
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Fire up the wlroots backend and run the event loopLibravatar Drew DeVault2017-11-11
|
* commands: fail when criteria match nothingLibravatar lbonn2017-10-08
| | | | For whatever command, this probably was not intended by the user
* Do not add empty policiesLibravatar Mykyta Holubakha2017-07-01
| | | | Policy allocation failure is non-fatal
* Add the 'clipboard' command to set the clipboardLibravatar nyorain2017-07-01
|
* Implement Tray IconsLibravatar Calvin Lee2017-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* FreeBSD fixesLibravatar johalun2017-06-06
| | | | | | | Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
* Support specifying fewer than 5 colorsLibravatar Drew DeVault2017-04-29
| | | | | This doesn't work, I'm not sure why. The color structs definitely get changed but if you specify fewer than 5, it renders with the defaults.
* Implement no_focusLibravatar Drew DeVault2017-04-26
| | | | Ref #2
* Disambiguate get_*_policy() and get_*_policy_mask()Libravatar Jerzi Kaminsky2017-04-16
|
* Improve criteria handlingLibravatar Calvin Lee2017-04-05
| | | | | | | | | | | | | | 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.
* Impliment i3-style marksLibravatar Calvin Lee2017-04-03
| | | | | | | | 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
* Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliasesLibravatar Zandr Martin2017-03-13
|\
| * UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
| |
* | deprecate new_window and new_float commandsLibravatar Zandr Martin2017-03-09
|/
* Add * policies and fix bugLibravatar Drew DeVault2017-02-20
|
* Handle allocation failures in security codeLibravatar Drew DeVault2016-12-15
| | | | Note that such errors are generally going to be fatal
* Handle some more memory allocation failuresLibravatar Drew DeVault2016-12-15
|
* Handle allocation failure in commandsLibravatar Drew DeVault2016-12-15
|
* Disallow everything by defaultLibravatar Drew DeVault2016-12-03
| | | | And update config.d/security to configure sane defaults
* Add ipc connection feature policy controlsLibravatar Drew DeVault2016-12-02
|
* Add IPC security policy command handlersLibravatar Drew DeVault2016-12-02
|
* Enforce command policiesLibravatar Drew DeVault2016-12-02
|
* Add support for command policies in config fileLibravatar Drew DeVault2016-12-02
|
* Implement permit and reject commandsLibravatar Drew DeVault2016-12-01
|
* change bar colors from char[10] to *charLibravatar D.B2016-11-02
| | | | | This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.
* add bar colours for focused_(workspace|statusline|separator)Libravatar D.B2016-11-02
| | | | | If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
* Add left_handed support for input devicesLibravatar Michał Winiarski2016-10-25
| | | | | | | 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>
* reorder cmd_handler arrays for bsearchLibravatar D.B2016-10-08
|
* add force_focus_wrapping optionLibravatar D.B2016-10-07
|
* squash commits, move enum into resize.cLibravatar Zandr Martin2016-09-07
|
* Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactorLibravatar Zandr Martin2016-09-02
|\
| * Reorganize includesLibravatar Drew DeVault2016-09-01
| |
* | refactor commands.cLibravatar Zandr Martin2016-09-01
|/
* Rerender after every split commandLibravatar Guillaume Brogi2016-08-12
|
* Fix container move when workspace is focusedLibravatar D.B2016-08-07
| | | | | | Fixes #819. If workspace is focused and command 'move container to workspace/output' is issued, workspace child containers are wrapped in a new container and moved according to command.
* Fix 'workspace back_and_forth' and workspace_auto_back_and_forth clashLibravatar D.B2016-08-04
| | | | | | | | When workspace_auto_back_and_forth is enabled, workspaces get switched twice with previously mentioned command, which is not the expected behavior. Removes one redundant creation of previous workspace.
* Merge pull request #811 from acrisci/feature/focus-containerLibravatar Drew DeVault2016-08-01
|\ | | | | Implement focus handling for containers
| * Refactor functions to update container bordersLibravatar Tony Crisci2016-07-31
| | | | | | | | | | | | Replace `update_view_border()` with `update_container_border()`. The latter should handle both the case where the container is a view or if the container has children.
* | cache floating container size when fullscreeningLibravatar Zandr Martin2016-07-31
|/
* Update container geometry on layout switchLibravatar D.B2016-07-31
| | | | | | | | | Deeply nested containers which had their layouts changed didn't update their actual_geometry, this messed up their child containers. Those got width and height of 0, which was then decreased for stacked/tabbed containers by title height. Underflow ensued, these containers suddenly had height 4294967273. In short, not updating actual_geometry didn't play nicely with nested containers.
* implement solid color rendering for swaybgLibravatar Zandr Martin2016-07-30
|
* Update hidpi support to latest wlc APILibravatar Drew DeVault2016-07-28
|
* Initial pass on HiDPI supportLibravatar Drew DeVault2016-07-28
|
* Merge pull request #791 from acrisci/feature/focus-child0.9-rc1Libravatar Drew DeVault2016-07-28
|\ | | | | Implement `focus child` command
| * Implement `focus child` commandLibravatar Tony Crisci2016-07-27
| | | | | | | | | | The `focus child` command focuses the child container within the selected container.
* | Close all focused container's child views on killLibravatar D.B2016-07-28
|/ | | | | | Previously, cmd_kill only closed a focused view, while containers were not affected. Now it closes all views that are children of the focused container.
* Put ipc command result json in an arrayLibravatar Tony Crisci2016-07-23
| | | | | | For compatibility with i3, put the command result into an array. Returning multiple command results is still unsupported.
* Initial work on window eventsLibravatar Mykyta Holubakha2016-07-21
|