summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2017-04-20Merge pull request #1184 from JerziKaminsky/logging2Furkan Sahin-1/+4
More Logging Fixes
2017-04-14Add resolve_path() to utilsFurkan Sahin-0/+8
2017-04-15Move get_feature_policy to sway/security.cFurkan Sahin-0/+2
2017-04-15Disambiguate get_*_policy() and get_*_policy_mask()Furkan Sahin-3/+3
2017-04-16Fix location reported by sway_assertFurkan Sahin-2/+2
2017-04-16Fix variadic forwarding in sway_assertFurkan Sahin-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-swaymsgFurkan Sahin-0/+15
2017-04-04Improve criteria handlingFurkan Sahin-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-03Add pretty printing to swaymsgFurkan Sahin-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-04-02Impliment i3-style marksFurkan Sahin-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-03-18wl_poitner -> wl_pointerFurkan Sahin-1/+1
2017-03-14Removed superfluous include, causing failures if WLC headers aren't ↵Furkan Sahin-1/+0
installed globally
2017-03-13Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliasesFurkan Sahin-19/+19
2017-03-10Correct indentationFurkan Sahin-19/+19
2017-03-09deprecate new_window and new_float commandsFurkan Sahin-1/+3
2017-02-27i3 feature support: Moving flotaing containersFurkan Sahin-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_colorsFurkan Sahin-5/+18
2017-02-21Documentation and style fixes for swaylockFurkan Sahin-0/+6
2017-02-21Feature for #1078: Configurable swaylock colorsFurkan Sahin-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/*Furkan Sahin-0/+2
2017-02-20Add * policies and fix bugFurkan Sahin-1/+6
2017-02-20Add initial support code for new IPC securityFurkan Sahin-4/+10
2017-01-19Add window instance supportFurkan Sahin-0/+1
2017-01-14Merge branch 'master' into masterFurkan Sahin-1/+3
2017-01-13Add output wrappingFurkan Sahin-0/+1
This fixes issue #733. Now if the user focuses output right but is at the rightmost monitor, the focus will wrap the the leftmost monitor. This commit adds a new function, swayc_opposite_output, which selects the opposite output given a position and a direction. Now, when calling output_by_name, we first check if there is an adjacent output to switch to. If that fails, we call swayc_opposite_output to handle wrapping.
2017-01-12Implement hide_edge_borders smart (like in i3 4.13)Furkan Sahin-1/+2
2017-01-07simplification of apply_auto_layoutFurkan Sahin-4/+5
Achieved by introducing auto_group_bounds function that produces the start/end indexes of a group inside an auto layot container.
2017-01-07Moved auto_* layout functions from resize.c to layout.cFurkan Sahin-0/+4
2017-01-01Merge branch 'master' of https://github.com/willakat/swayFurkan Sahin-0/+1
2017-01-01[fix] cleanups suggested by Sway communityFurkan Sahin-5/+3
2017-01-01changed "layout promote" command to "move first"Furkan Sahin-1/+2
This is more consistent with other Sway semantics.
2017-01-01Fix inline is_auto_layoutFurkan Sahin-3/+2
2016-12-29Added "layout promote" command.Furkan Sahin-0/+2
2016-12-29cleanup in auto layoutsFurkan Sahin-1/+4
- added L_AUTO_FIRST/LAST instead of using explicit layouts. - when switching between auto layout that don't share the same major axis, invert the width/height of their child views to preserve their relative proportions.
2016-12-22introduce next/prev as a direction for focus/move commands.Furkan Sahin-2/+3
2016-12-17Change how security config is loaded0.11-rc3Furkan Sahin-0/+5
2016-12-15Always log filename and line numberFurkan Sahin-5/+0
2016-12-10Added Awesome/Monad type "auto" layoutsFurkan Sahin-0/+20
2016-11-17fix layout switching (was broken because of workspace_layout)0.11-rc1Furkan Sahin-1/+1
For workspace containers, swayc_change_layout also changes ->layout alongside ->workspace_layout when it's a sensible thing to do. There is an additional test for 'layout toggle' command which ensures that containers will be tiled horizontally after toggling from tabbed or stacked.
2016-10-10add workspace_layout to containerFurkan Sahin-0/+7
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type.
2016-12-02Add ipc connection feature policy controlsFurkan Sahin-0/+1
2016-12-02Enforce IPC security policyFurkan Sahin-0/+17
2016-12-02Add IPC security policy command handlersFurkan Sahin-0/+5
2016-12-02Add IPC policy to configFurkan Sahin-4/+7
Also reduces enum abuse, cc @minus7
2016-12-02Enforce command policiesFurkan Sahin-1/+3
2016-12-02Add support for command policies in config fileFurkan Sahin-1/+10
2016-12-01Implement permit and reject commandsFurkan Sahin-11/+6
2016-12-01Implement policy lookupsFurkan Sahin-3/+11
2016-12-01Add config related code and initial headersFurkan Sahin-3/+45
2016-11-02change bar colors from char[10] to *charFurkan Sahin-29/+21
This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.