Commit graph

1488 commits

Author SHA1 Message Date
S. Christoffer Eliesen de219f6bec swaybar: ipc_update_ws: Fix memory corruption.
json_object_object_get_ex does not require json_object_put according to
docs, this should fix the random crashes.
2015-12-18 15:30:46 +01:00
Drew DeVault a116eafaa4 Fix possible segfault in swaybar 2015-12-18 09:03:45 -05:00
Drew DeVault 7558a274fa Add shims for swaylock on compositor 2015-12-18 08:49:04 -05:00
Drew DeVault 7f7be26cfe Merge pull request #356 from sce/output_vs_workspace_size
layout: Keep output at the correct size, workspace can be smaller.
2015-12-18 08:40:52 -05:00
S. Christoffer Eliesen ed730db11b layout: Keep output at the correct size, workspace can be smaller.
If the output is not at the correct size then that info must be queried
from wlc. The output size is used by e.g. seamless mouse to detect
output edges.

With this patch the output size is now correct and the workspace size is
adjusted according to any panels.

Without this patch seamless mouse would fail to detect outputs
above/below each other if there was a panel in between because the
output would offically end where the panel started, not at the actual
screen edge.
2015-12-18 14:03:11 +01:00
Drew DeVault 8033eb4d6a Merge pull request #355 from sce/fix_moving_last_ws
focus: Fix moving last workspace.
2015-12-18 07:59:49 -05:00
Drew DeVault 62649a56c5 Merge pull request #354 from sce/fix_swaybar_for_fedora
swaybar: Remove stropts.h, fixes build for fedora.
2015-12-18 07:59:23 -05:00
S. Christoffer Eliesen 18a7afa1b3 focus: Fix moving last workspace.
If there's only one workspace on an output and it's moved to a different
output then active workspace will be NULL.
2015-12-18 13:23:49 +01:00
S. Christoffer Eliesen 8a6e05d7a1 swaybar: Remove stropts.h, fixes build for fedora.
Turns out that fedora killed off stropts.h some time ago [1] and
removing it seems to work just fine. (Tested on Fedora 23)

[1] https://bugzilla.redhat.com/show_bug.cgi?id=439403
2015-12-18 13:18:35 +01:00
Drew DeVault 5f9909c9dd Merge pull request #353 from mikkeloscar/swaybar-close-statuscmd
swaybar: terminate status_command process
2015-12-17 21:30:58 -05:00
Mikkel Oscar Lyderik 529ee83ef6 swaybar: terminate status_command process
Fix #346

Send SIGTERM to the `status_command` process before swaybar exits.
2015-12-18 03:15:49 +01:00
Drew DeVault f994f00d00 Merge pull request #352 from progandy/workspace-numbers
Workspace numbers
2015-12-17 19:48:55 -05:00
progandy 76c520a04b sway: insert numbered workspaces in order
fixes #308

Ordered by number ascending, with insert before same numbers.
Workspaces without numbers are appended at the end of the list.

Example order:
1 2:named 3:the_second 3:the_first 9 FIRST_NAME SECOND_NAME ...
2015-12-18 01:22:07 +01:00
progandy 8f1ac1ef2c sway: enable workspace selection by number 2015-12-18 01:21:31 +01:00
Drew DeVault 89341c0c70 Merge pull request #351 from mikkeloscar/swaygrab-default-file
swaygrab: add default output filename.
2015-12-17 13:12:01 -05:00
Mikkel Oscar Lyderik c97555d9f0 swaygrab: add default output filename.
With this it's possible to run `swaygrab` without a filename argument.
With no filename supplied it will use a default name based on the
current time.

The default file will get the extension `png` for screenshots and `webm`
for video capture.
2015-12-17 18:37:09 +01:00
Drew DeVault b656297d4f Merge pull request #350 from mikkeloscar/swaygrab-auto-output
swaygrab: update man page
2015-12-17 10:52:35 -05:00
Mikkel Oscar Lyderik 64ccd63f13 swaygrab: update man page 2015-12-17 16:47:18 +01:00
Drew DeVault ef44b3cf59 Merge pull request #349 from mikkeloscar/swaygrab-auto-output
swaygrab: make focused output default
2015-12-17 10:35:35 -05:00
Mikkel Oscar Lyderik d49282b2c3 swaygrab: make focused output default
This makes swaygrab use the currently focused output as source if no
other output is defined with the `-o, --output <output>` option.
2015-12-17 16:09:03 +01:00
Drew DeVault 101a14faf8 [swaylock] Stupid implementation of password entry 2015-12-17 08:56:08 -05:00
Drew DeVault 9c141f0bf1 Implement PAM password verification in swaylock 2015-12-17 08:44:30 -05:00
Drew DeVault d91185d67b Fix null dereference in swaybar 2015-12-17 08:30:45 -05:00
Drew DeVault 7b8f02146f Add PAM configuration for swaylock 2015-12-17 08:30:45 -05:00
Drew DeVault 3a829362f2 Merge pull request #348 from mikkeloscar/bar-segv
swaybar: Check that registry is set before teardown
2015-12-16 20:55:26 -05:00
Mikkel Oscar Lyderik 0f7614306d swaybar: Check that registry is set before teardown 2015-12-17 02:45:14 +01:00
Drew DeVault d1405da502 Actually that screenshot wasn't so good 2015-12-16 20:22:05 -05:00
Drew DeVault b673f3c931 New README screenshot 2015-12-16 20:18:14 -05:00
Drew DeVault adadb109a7 Only re-render swaybar when it has changed
Fixes #345
2015-12-16 20:09:23 -05:00
Drew DeVault 5a9cc96446 Make swaybar a little quieter 2015-12-16 19:37:03 -05:00
Drew DeVault 03787871d0 Fix bar invocation for multihead setup 2015-12-16 19:36:31 -05:00
Drew DeVault 1a365f19c9 Use system swaybar instead of local swaybar 2015-12-16 19:30:38 -05:00
Drew DeVault 60c204a09b Invoke swaybar when an output matches a bar config 2015-12-16 19:29:47 -05:00
Drew DeVault f6da4dda4b Bring unmanaged windows to front on output arrange
Fixes #312
2015-12-16 19:20:34 -05:00
Drew DeVault 2231acb790 Merge pull request #340 from mikkeloscar/seperator-separator
Correct typo seperator -> separator
2015-12-16 10:42:56 -05:00
Mikkel Oscar Lyderik 3bd388a307 Remove trailing whitespace 2015-12-16 16:31:12 +01:00
Mikkel Oscar Lyderik 1db4b4a8f5 Correct typo seperator -> separator 2015-12-16 16:30:43 +01:00
Drew DeVault 9c0be49024 Merge pull request #337 from fluxchief/swaybar-check-command-args
Make swaybar check command arguments
2015-12-16 09:20:38 -05:00
Drew DeVault 01798a5ae2 Merge pull request #338 from mikkeloscar/bar-separator-symbol
Implement bar option: separator_symbol
2015-12-16 07:47:00 -05:00
Drew DeVault b8f30cbae4 Merge pull request #339 from mikkeloscar/free-bar-3
Use free_flat_list for simple char* list.
2015-12-16 07:46:30 -05:00
Mikkel Oscar Lyderik 053fb09d1e Use free_flat_list for simple char* list.
No need to reimplement free_flat_list functionality.
2015-12-16 13:06:54 +01:00
Mikkel Oscar Lyderik 2fd7dd64ec Implement bar option: separator_symbol 2015-12-16 13:01:11 +01:00
Kevin Hamacher a9f6cd0e17 Make swaybar run without status_command 2015-12-16 12:17:18 +01:00
Kevin Hamacher ce8b71415f Make swaybar check command arguments 2015-12-16 11:13:12 +01:00
Drew DeVault 1825cf32bf Apply color config from swaybar 2015-12-15 22:31:35 -05:00
Drew DeVault 473ac4531f [swaybar] Get bar config via IPC 2015-12-15 22:22:22 -05:00
Drew DeVault f80e7364b1 Parse command line in swaybar 2015-12-15 22:08:09 -05:00
Drew DeVault efff8e5ba5 Merge pull request #335 from mikkeloscar/bar-font
Implement bar option: font <font>
2015-12-15 18:11:21 -05:00
Mikkel Oscar Lyderik 9316851715 Implement bar option: font <font> 2015-12-15 23:59:16 +01:00
Drew DeVault c09af4c165 Merge pull request #336 from mikkeloscar/binding-mode-indicator
Implement bar option: binding_mode_indicator <yes|no>
2015-12-15 17:50:56 -05:00