Commit graph

1321 commits

Author SHA1 Message Date
Christoph Gysin
2b58c03ed5 swaylock: extract render_image 2016-01-25 21:18:53 +02:00
Drew DeVault
bbd6c5be91 Merge pull request #474 from christophgysin/swaylock_pam
swaylock pam fixes
2016-01-25 13:28:39 -05:00
Christoph Gysin
071e097214 swaylock: don't memset memory that has been freed
swaylock is randomly crashing because we write to password that has already been
freed in pam_authenticate().
2016-01-25 20:15:00 +02:00
Christoph Gysin
dab651a240 swaylock: fix pam conversation 2016-01-25 20:14:59 +02:00
Christoph Gysin
52fea93693 swaylock: add pam conversation debug output 2016-01-25 20:14:44 +02:00
Christoph Gysin
b116af629b swaylock: remove global variable pam_reply 2016-01-25 19:43:51 +02:00
Mikkel Oscar Lyderik
123de86001 swaybar: Fix plaintext handling.
Fix #473
2016-01-25 15:24:12 +01:00
Mikkel Oscar Lyderik
96935f2682 Fix colors off by one 2016-01-25 01:11:33 +01:00
Drew DeVault
55ac868898 Merge pull request #471 from mikkeloscar/fix-exec-quotes
Add quotes to multiword arguments.
2016-01-24 18:33:06 -05:00
Mikkel Oscar Lyderik
32ae26e519 Add quotes to multiword arguments.
This adds quotes around multiword arguments before they are passed to
`/bin/sh -c` in an exec command.

Example:

I connect to irc like this:

    exec termite -e "mosh server tmux a"

Without this patch the arguments are passed to sh as:

    termite -e mosh server tmux a

When it should be:

    termite -e "mosh server tmux a"

For the command to work.
2016-01-25 00:14:13 +01:00
Mikkel Oscar Lyderik
ed227f5664 swaybar: move headers to include/bar 2016-01-24 15:55:58 +01:00
Drew DeVault
4b48a8399a Merge pull request #467 from mikkeloscar/swaybar-refactor
[WIP] Swaybar refactor
2016-01-24 09:46:28 -05:00
Mikkel Oscar Lyderik
a61a27c485 swaybar: cleanup CmakeLists.txt 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
aa6ad09183 swaybar: rename state to bar 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
c6fc0033e1 swaybar: move core functionality to state.c 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
6140f9c42c swaybar: Move swaybar_teardown to free_state 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
fcc47cb3bd swaybar: move ipc stuff to ipc.{h,c} 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
a6349a2444 swaybar: feactor render, statusline 2016-01-24 14:22:19 +01:00
Mikkel Oscar Lyderik
bb986cb336 swaybar: Separate config 2016-01-24 14:22:17 +01:00
Mikkel Oscar Lyderik
c8cf3f70f9 numlen(0) == 1 2016-01-24 03:02:51 +01:00
Mikkel Oscar Lyderik
2707be7199 use log10 in numlen 2016-01-24 02:59:58 +01:00
Drew DeVault
fe35ea633a Merge pull request #457 from mikkeloscar/move-view-fix
Fix rendering of view when moving to new workspace
2016-01-23 16:48:00 -05:00
Drew DeVault
ef407559e2 Add new wlc thing to views 2016-01-23 16:35:39 -05:00
Drew DeVault
a416715372 Revert "s/numlen/log10/g"
This reverts commit 038bb8cc7c.
2016-01-23 16:35:32 -05:00
Drew DeVault
038bb8cc7c s/numlen/log10/g 2016-01-23 15:51:38 -05:00
Drew DeVault
ed68571815 Merge pull request #466 from christophgysin/swaybar_usage
swaybar: add usage
2016-01-23 14:35:27 -05:00
Christoph Gysin
ac3f36c091 swaybar: add --help option 2016-01-23 21:32:33 +02:00
Drew DeVault
f8de29baf6 Merge pull request #464 from christophgysin/swaylock
swaylock: option parsing
2016-01-23 14:27:28 -05:00
Drew DeVault
78b2808c52 Merge pull request #465 from sardemff7/master
Some fixes in commands/assign
2016-01-23 14:26:45 -05:00
Christoph Gysin
bba72fb21a swaybar: debug option takes no argument 2016-01-23 21:23:00 +02:00
Quentin Glidic
449617f104 commands: Fix memory allocation in assign
Also use the safer snprintf since we just computed the size.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-01-23 20:22:51 +01:00
Quentin Glidic
43483d8fee commands: Fix usage of arrow in assign
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-01-23 20:22:51 +01:00
Mikkel Oscar Lyderik
06f6552eed travis: remove wlc dep: xcb-util-wm 2016-01-23 16:40:39 +01:00
Christoph Gysin
7b25caba47 swaylock: add i3lock compatible options 2016-01-23 16:36:19 +02:00
Mikkel Oscar Lyderik
a3f809d95d travis: don't build wlc, depend on wlc-git instead 2016-01-23 15:11:23 +01:00
Christoph Gysin
259dc25ba3 swaylock: add option parsing 2016-01-23 16:00:14 +02:00
Drew DeVault
6a5acde592 Merge pull request #463 from christophgysin/typo
sway-input: fix typo
2016-01-23 07:52:47 -05:00
Drew DeVault
a297df4a1f Add xcb-util-wm to PKGBUILD 2016-01-23 07:39:03 -05:00
Christoph Gysin
2341ae64ad sway-input: fix typo 2016-01-23 14:08:52 +02:00
Mikkel Oscar Lyderik
102719c7dd manpage: fix sway-input layout 2016-01-22 19:26:13 +01:00
Mikkel Oscar Lyderik
54111839a4 manpage: add references sway.5 <-> sway-input.5 2016-01-22 19:26:13 +01:00
Mikkel Oscar Lyderik
e953f634d9 Fix generating sway-input.5 manpage 2016-01-22 19:26:13 +01:00
Drew DeVault
c2bf457b9f Merge pull request #461 from SethBarberee/swaygrab-zsh
restructured to include single dash options
2016-01-22 13:18:33 -05:00
Seth Barberee
f8edda5939 restructured to include single dash options 2016-01-22 10:45:21 -06:00
Mikkel Oscar Lyderik
4cbb09d566 cmake: fix libinput include dirs 2016-01-22 05:17:33 +01:00
Mikkel Oscar Lyderik
701855fee5 Merge pull request #459 from crondog/sigpipe
Prevent ipc from crashing sway
2016-01-22 02:51:51 +01:00
crondog
cd0eaf00da Prevent ipc from crashing sway 2016-01-22 12:29:18 +11:00
Mikkel Oscar Lyderik
fa0526f3df Fix rendering of view when moving to new workspace
This is a possible fix for #384.

To be honest I don't fully understand why this bug is happening, but I
have narrowed it down to the view stack in wlc and how sway orders views
in very specific situations (those described in #384).

Anyway this should fix the problem by eliminating the call to
`wlc_view_bring_to_front` which isn't really needed anyway since sending
all invisible views to the back is the same as bringing all visible
views to the front (rotating the view stack).
2016-01-21 22:28:26 +01:00
Mikkel Oscar Lyderik
2c43bd2ac8 Only update visibility if WS isn't destroyed after
No need to update visibility if the workspace will be destroyed right
after.
2016-01-21 22:05:06 +01:00
Drew DeVault
72f297fc71 Merge pull request #456 from gpyh/fix-config-dir
Fix issue #455
2016-01-21 15:15:50 -05:00