Drew DeVault
60ce81e06a
Add pretty printing to swaymsg
...
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:五
```
8 years ago
Drew DeVault
8d9a928058
Update README.md
8 years ago
Drew DeVault
82729eeb0c
Mention cap_sys_tty_config in readme
8 years ago
Drew DeVault
e659db4f73
Merge pull request #1130 from oranenj/fix_move_next_crash
...
Fix move next crash
8 years ago
Jarkko Oranen
924ed6464c
Prevent "move next" and "move prev" commands from crashing
...
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.
8 years ago
Jarkko Oranen
d7350915d9
The default layout of a workspace should follow the output
...
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.
8 years ago
Drew DeVault
0fa8b5abfb
Merge pull request #1126 from zandrmartin/prevent-fullscreen-focus-stealing
...
prevent fullscreen focus thievery
8 years ago
Zandr Martin
2d46fc5602
prevent fullscreen focus thievery
...
I believe this fixes #1102
8 years ago
Drew DeVault
856984a7f6
Merge pull request #1125 from zandrmartin/remove-unnecessary-todo
...
remove unnecessary todo item
8 years ago
Drew DeVault
84ae6d02e8
Merge branch 'master' into remove-unnecessary-todo
8 years ago
Zandr Martin
baa17ec696
remove unnecessary todo item
...
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.
8 years ago
Drew DeVault
cef4a5cf70
Merge pull request #1124 from zandrmartin/correct-typo
...
wl_poitner -> wl_pointer
8 years ago
Zandr Martin
956eb6d714
wl_poitner -> wl_pointer
8 years ago
Drew DeVault
5c3d3184a3
Merge pull request #1119 from oranenj/master
...
Fix off-by-one error when checking workspace_layout arguments
8 years ago
Drew DeVault
e956c61719
Merge branch 'master' into master
8 years ago
Jarkko Oranen
f6196b7e9a
Fix off-by-one error when checking workspace_layout arguments
8 years ago
Drew DeVault
b01e8dea58
Merge pull request #1121 from zandrmartin/registry-keyboard-caps
...
add missing ! for wl seat keyboard caps
8 years ago
Zandr Martin
2d2ce91883
add missing ! for wl seat caps
8 years ago
Drew DeVault
ec50b92bb4
Merge pull request #1117 from jnsaff/master
...
Allow also 444 for security file mode
8 years ago
Jaanus Torp
8306b886e9
Allow also 444 for security file mode
8 years ago
Drew DeVault
109f384771
Merge pull request #1115 from snoack/missing-includes
...
Superfluous include causes failures if WLC headers aren't installed globally
8 years ago
Sebastian Noack
d90f97b3d4
Removed superfluous include, causing failures if WLC headers aren't installed globally
8 years ago
Drew DeVault
39ecc10553
Merge pull request #1108 from zandrmartin/new-command-aliases
...
deprecate new_window and new_float commands
8 years ago
Zandr Martin
b507462d1c
Merge branch 'master' of git://github.com/SirCmpwn/sway into new-command-aliases
8 years ago
Drew DeVault
2e1083f52c
Merge pull request #1113 from johnchen902/patch-1
...
Fix trivial typo in sway.5.txt (right_ -> _right_)
8 years ago
John Chen
a0711d9c94
Fix trivial typo in sway.5.txt (right_ -> _right_)
...
as title
8 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Drew DeVault
74d4f1bec9
Further indentation corrections
8 years ago
Drew DeVault
d5c338d9ee
Correct indentation
8 years ago
Zandr Martin
18450dd16a
deprecate new_window and new_float commands
8 years ago
Drew DeVault
dc33c2cc1d
Merge pull request #1105 from zandrmartin/fix-workspace-output-assignment
...
fix workspace output assignment
8 years ago
Zandr Martin
8684b9ecca
fix workspace output assignment
8 years ago
Drew DeVault
79468d2c74
Update unsupported packages link in readme
8 years ago
Drew DeVault
d4aa604812
Merge pull request #1101 from 4e554c4c/worspace_names
...
Fix #1099 : Allow spaces in worspace names
8 years ago
Calvin Lee
d47d3d78de
Fix #1099 : Allow spaces in worspace names
...
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.
8 years ago
Drew DeVault
d6ac3021ce
Merge pull request #1092 from 4e554c4c/move_floating
...
i3 feature support: Moving flotaing containers
8 years ago
Calvin Lee
032907e9d2
Clarify move documentation for floating containers
8 years ago
Calvin Lee
b35782bcad
i3 feature support: Moving flotaing containers
...
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.
8 years ago
Drew DeVault
21ad45b622
Fix #1087
8 years ago
Drew DeVault
893c049aa3
Merge pull request #1086 from Fale/ignore-Wimplicit-fallthrough
...
Ignore Wimplicit-fallthrough
8 years ago
Fabio Alessandro Locati
c51e83f834
Make it work for all compilers
8 years ago
Fabio Alessandro Locati
6800c60d4b
Ignore Wimplicit-fallthrough
8 years ago
Drew DeVault
e1ff88a8d2
Correct typo in swaylock(1)
8 years ago
Drew DeVault
11f0260aab
Merge pull request #1084 from Fale/improve-swaylock-man
...
Improve swaylock man
8 years ago
Fabio Alessandro Locati
b6ea813e01
Improve swaylock man
8 years ago
Drew DeVault
117264ce40
Edit packages in README
8 years ago
Drew DeVault
407ebe9cd3
Move env logging to earlier than wlc_init
8 years ago
Drew DeVault
7f58ea5ec2
Merge pull request #1081 from 4e554c4c/swaylock_colors
...
Feature for #1078 : Configurable swaylock colors
8 years ago
Drew DeVault
6927682303
Merge branch 'master' into swaylock_colors
8 years ago
Calvin Lee
46bd2bb5df
Documentation and style fixes for swaylock
8 years ago