Commit graph

1762 commits

Author SHA1 Message Date
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
Yacine Hmito c487cf71a5 Fix issue #455
CMAKE_INSTALL_FULL_SYSCONFIG is not actually passed to
the C preprocessor. I remember it working, so I must have
messed up somewhere last time I touched this.
This is fixed by manually passing its value to the C preprocessor
through the SYSCONFDIR definition
2016-01-21 21:08:18 +01:00
Drew DeVault d969a1dec0 Fix memory leak in config.c
Thanks @jollywho
2016-01-21 11:18:13 -05:00
Mikkel Oscar Lyderik ac740271a5 Strip stray whitespace 2016-01-21 17:03:21 +01:00
Drew DeVault a6b19988c5 Merge pull request #440 from SethBarberee/zsh-completions
Basic Zsh auto-completion for --options
2016-01-19 18:50:12 -05:00
Drew DeVault b72a62b02b Merge pull request #448 from colemickens/libinput
libinput configuration
2016-01-19 10:08:44 -05:00
Cole Mickens 28081b7689 libinput 2016-01-19 06:51:36 -08:00
Seth Barberee fcd0071555 added basic zsh shell completion for sway, swaybg, and swaygrab 2016-01-17 22:06:26 -06:00
Drew DeVault fe241126bb Add ffmpeg/imagemagick to depenency list 2016-01-17 14:04:36 -05:00
Mikkel Oscar Lyderik e0ba689dba Copy filename from argv
Fix #449
2016-01-17 18:48:29 +01:00