aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2017-04-12Merge pull request #1147 from SirCmpwn/nvidia-supportDrew DeVault-8/+35
Downgrade nvidia proprietary driver warning
2017-04-12Implement more thourough nvidia config checkDrew DeVault-4/+35
2017-04-12Downgrade nvidia proprietary driver warningDrew DeVault-5/+1
2017-04-10Merge pull request #1146 from SirCmpwn/pretty-print-swaymsgDrew DeVault-17/+248
Add pretty printing to swaymsg
2017-04-10Merge branch 'master' into pretty-print-swaymsgDrew DeVault-84/+424
2017-04-08Merge pull request #1150 from JerziKaminsky/cmake_find_libcapDrew DeVault-1/+59
Add libcap check to CMake
2017-04-07Merge pull request #1155 from 4e554c4c/get_marksDrew DeVault-0/+37
Add `-t get_marks` and use more i3-like marks
2017-04-07Add `-t get_marks` and use more i3-like marksCalvin Lee-0/+37
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-07Merge pull request #1153 from SirCmpwn/fix-1152Drew DeVault-3/+3
Fix dangling file descriptors (fixes #1152)
2017-04-07Merge pull request #1154 from ascent12/fix-1152Drew DeVault-3/+0
Removed explicitly setting file descriptors to -1
2017-04-08Removed explicitly setting file descriptors to -1Scott Anderson-3/+0
2017-04-07Fix dangling file descriptors (fixes #1152)Drew DeVault-1/+4
2017-04-07Add libcap check to CMakeJerziKaminsky-1/+59
- 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-06Merge pull request #1151 from ascent12/masterDrew DeVault-34/+27
Change regex to use PCRE
2017-04-07Added designated initaliser, to prevent any possible problem withScott Anderson-12/+11
ordering
2017-04-07Changed regular expressions to use PCRE for i3 compatibilityScott Anderson-23/+17
2017-04-06Merge pull request #1149 from 4e554c4c/criteriaDrew DeVault-53/+116
Improve criteria handling
2017-04-05Improve criteria handlingCalvin Lee-53/+116
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-03Merge pull request #1145 from 4e554c4c/marksDrew DeVault-0/+189
Impliment i3-style marks
2017-04-03Impliment i3-style marksCalvin Lee-0/+189
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-2/+2
2017-04-03Add pretty printing to swaymsgDrew DeVault-17/+248
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-28Update README.mdDrew DeVault-0/+3
2017-03-27Mention cap_sys_tty_config in readmeDrew DeVault-0/+1
2017-03-19Merge pull request #1130 from oranenj/fix_move_next_crashDrew DeVault-2/+2
Fix move next crash
2017-03-19Prevent "move next" and "move prev" commands from crashingJarkko Oranen-1/+1
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-1/+1
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-18Merge pull request #1126 from zandrmartin/prevent-fullscreen-focus-stealingDrew DeVault-2/+5
prevent fullscreen focus thievery
2017-03-18prevent fullscreen focus thieveryZandr Martin-2/+5
I believe this fixes #1102
2017-03-18Merge pull request #1125 from zandrmartin/remove-unnecessary-todoDrew DeVault-5/+1
remove unnecessary todo item
2017-03-18Merge branch 'master' into remove-unnecessary-todoDrew DeVault-1/+1
2017-03-18remove unnecessary todo itemZandr Martin-5/+1
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-18Merge pull request #1124 from zandrmartin/correct-typoDrew DeVault-1/+1
wl_poitner -> wl_pointer
2017-03-18wl_poitner -> wl_pointerZandr Martin-1/+1
2017-03-18Merge pull request #1119 from oranenj/masterDrew DeVault-4/+4
Fix off-by-one error when checking workspace_layout arguments
2017-03-18Merge branch 'master' into masterDrew DeVault-1/+1
2017-03-18Fix off-by-one error when checking workspace_layout argumentsJarkko Oranen-4/+4
2017-03-18Merge pull request #1121 from zandrmartin/registry-keyboard-capsDrew DeVault-1/+1
add missing ! for wl seat keyboard caps
2017-03-18add missing ! for wl seat capsZandr Martin-1/+1
2017-03-16Merge pull request #1117 from jnsaff/masterDrew DeVault-3/+3
Allow also 444 for security file mode
2017-03-16Allow also 444 for security file modeJaanus Torp-3/+3
2017-03-14Merge pull request #1115 from snoack/missing-includesDrew DeVault-1/+0
Superfluous include causes failures if WLC headers aren't installed globally
2017-03-14Removed superfluous include, causing failures if WLC headers aren't ↵Sebastian Noack-1/+0
installed globally
2017-03-13Merge pull request #1108 from zandrmartin/new-command-aliasesDrew DeVault-89/+114
deprecate new_window and new_float commands
2017-03-13Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliasesZandr Martin-57/+147
2017-03-12Merge pull request #1113 from johnchen902/patch-1Drew DeVault-1/+1
Fix trivial typo in sway.5.txt (right_ -> _right_)
2017-03-13Fix trivial typo in sway.5.txt (right_ -> _right_)John Chen-1/+1
as title
2017-03-10UnGNUify the codebaseDrew DeVault-33/+123
2017-03-10Further indentation correctionsDrew DeVault-4/+4
2017-03-10Correct indentationDrew DeVault-19/+19