aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2017-04-14Fix style in sway-bar(5) manpageJerzi Kaminsky
2017-04-14Remain compat with libinput < 1.7.0Jerzi Kaminsky
2017-04-12Implement more thourough nvidia config checkDrew DeVault
2017-04-12Downgrade nvidia proprietary driver warningDrew DeVault
2017-04-10Merge branch 'master' into pretty-print-swaymsgDrew DeVault
2017-04-08Merge pull request #1150 from JerziKaminsky/cmake_find_libcapDrew DeVault
Add libcap check to CMake
2017-04-07Add `-t get_marks` and use more i3-like marksCalvin Lee
In i3 every mark is unique and one mark cannot be used in more than one window, sway behavior has been amended to match this. `swaymsg -t get_marks` will now return an array of all marks used in sway. See #98
2017-04-08Removed explicitly setting file descriptors to -1Scott Anderson
2017-04-07Fix dangling file descriptors (fixes #1152)Drew DeVault
2017-04-07Add libcap check to CMakeJerziKaminsky
- Moved ``<sys/capability.h>`` include inside `__linux__` guard, because all uses are similarly guarded. - <sys/capability.h> is part of an optional devel package, at least in fedora. CMake now explicitly checks that libcap devel files are available. - Added libcap to the list of install packages in .travis.yml, to make the dependency explicit. travis-ci installs the package by default, which is why this hasn't surfaced previously.
2017-04-07Added designated initaliser, to prevent any possible problem withScott Anderson
ordering
2017-04-07Changed regular expressions to use PCRE for i3 compatibilityScott Anderson
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-04-03Update man pageDrew DeVault
2017-04-03Add pretty printing to swaymsgDrew DeVault
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-19Prevent "move next" and "move prev" commands from crashingJarkko Oranen
Fixes #1120 When the parent of a view is C_WORKSPACE and the movement direction is either MOVE_PREV or MOVE_NEXT, the code would attempt to move the views to the next output, but swayc_adjacent_output can't accept non-directional movement commands and causes undefined behaviour and a segfault. If the code is simply skipped, we end up in an infinite loop. Instead, we can allow containers whose parent is a C_WORKSPACE take the path that handles MOVE_PREV and MOVE_NEXT, which behaves as you would expect. I'm not certain that this fix is entirely correct as the desired behaviour of move_container is not very well defined, but it seems to work.
2017-03-19The default layout of a workspace should follow the outputJarkko Oranen
Hardcoding it to L_HORIZ does not make sense to me, as you get the unexpected behaviour that windows will be arranged horizontally until you switch the layout.
2017-03-18prevent fullscreen focus thieveryZandr Martin
I believe this fixes #1102
2017-03-18remove unnecessary todo itemZandr Martin
As best I can tell this todo was intended to add workspace movement to the given output with the `workspace <ws> output <op>` command, but i3 does not behave this way.
2017-03-18Fix off-by-one error when checking workspace_layout argumentsJarkko Oranen
2017-03-16Allow also 444 for security file modeJaanus Torp
2017-03-13Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliasesZandr Martin
2017-03-13Fix trivial typo in sway.5.txt (right_ -> _right_)John Chen
as title
2017-03-10UnGNUify the codebaseDrew DeVault
2017-03-10Further indentation correctionsDrew DeVault
2017-03-09deprecate new_window and new_float commandsZandr Martin
2017-03-08fix workspace output assignmentZandr Martin
2017-03-01Fix #1099: Allow spaces in worspace namesCalvin Lee
This commit allows unquoted spaces in worspace names in order to keep compatability with i3. The names _must not_ contain the string "output" which is documented in 'sway.5' because how sway detects the `move <workspace> output <output>` command. Also I documented that "number" may be used before the worspace name without affecting how the name is evaluated.
2017-03-01Clarify move documentation for floating containersCalvin Lee
2017-03-01i3 feature support: Moving flotaing containersCalvin Lee
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-23Move env logging to earlier than wlc_initDrew DeVault
2017-02-20Read configs from /etc/sway/security.d/*Drew DeVault
2017-02-20Add * policies and fix bugDrew DeVault
2017-02-20Enforce new IPC policiesDrew DeVault
2017-02-20Add initial support code for new IPC securityDrew DeVault
2017-02-19Revise IPC security configurationDrew DeVault
2017-02-14use absolute view geometry to calculate positionZandr Martin
2017-02-06xdg-positioner: log window placementMykyta Holubakha
2017-02-06Handle xdg-positioner stuffMykyta Holubakha
2017-01-19Merge pull request #1055 from Hummer12007/positionerDrew DeVault
Properly place windows with xdg-positioner
2017-01-19Properly place windows with xdg-positionerMykyta Holubakha
2017-01-18Merge pull request #1053 from Hummer12007/__focused__Drew DeVault
Support __focused__ as a valid criterion
2017-01-19Support __focused__ as a valid criterionMykyta Holubakha
This reflects i3 behavior (see i3/i3#1770) Scrapping focused support will probably break some existing configs
2017-01-19Display instance (if present) in nested layoutsMykyta Holubakha
2017-01-19Add window instance supportMykyta Holubakha
2017-01-17add hide_edge_borders smart to sway.5 manualFrantisek Fladung
2017-01-16Unset LD_LIBRARY_PATH, unless specifiedMykyta Holubakha
2017-01-14[fix] handle auto layout of empty containerwil
2017-01-14replaced "bot" with "bottom" in auto layout commandswil