Commit graph

4250 commits

Author SHA1 Message Date
Drew DeVault 2cc6d39d46 New screenshot for README
This one was actually taken from within sway!
2015-11-13 11:07:57 -05:00
Drew DeVault f7c0d2badb Clean up some things better in wayland clients 2015-11-13 10:27:16 -05:00
Drew DeVault 1011957465 Merge branch 'master' of github.com:SirCmpwn/sway 2015-11-13 08:17:35 -05:00
Drew DeVault 38b18d460a Revert "Try ~/.i3/config earlier than /etc/sway/config"
This reverts commit f0ceb4e909.
2015-11-13 08:17:29 -05:00
Drew DeVault f3fc48f692 Merge pull request #225 from sce/logind_socket_path
ipc: Put socket into proper user runtime dir.
2015-11-13 08:15:14 -05:00
Drew DeVault f0ceb4e909 Try ~/.i3/config earlier than /etc/sway/config
And ~/.config/i3/config, of course.
2015-11-13 08:09:30 -05:00
S. Christoffer Eliesen 253204efb9 ipc: Put socket into proper user runtime dir. 2015-11-13 14:07:18 +01:00
Drew DeVault 5c3f40111a Fix man page installs 2015-11-13 07:56:06 -05:00
Drew DeVault fd1a59def3 Clean up CMake stuff 2015-11-13 07:17:48 -05:00
Drew DeVault 44d0b3282f Merge pull request #224 from mathstuf/cmake-cleanups
CMake cleanups
2015-11-12 22:20:44 -05:00
Ben Boeckel 8e8bdbcae2 cmake: run git in the source directory 2015-11-12 21:56:14 -05:00
Ben Boeckel ec013d1f1a common: create a static library 2015-11-12 21:56:14 -05:00
Ben Boeckel 98678dea5d cmake: clean up installation rules 2015-11-12 21:56:14 -05:00
Ben Boeckel f8ae8cb820 cmake: clean up definition settings 2015-11-12 21:56:14 -05:00
Ben Boeckel 28f1e9842c cmake: manipulate CMAKE_MODULE_PATH as a list
Also prefer local modules.
2015-11-12 21:56:14 -05:00
Ben Boeckel 2e9183e4de cmake: set the output directory once 2015-11-12 21:56:14 -05:00
Ben Boeckel 4714262c3d cmake: simplify manpage generation 2015-11-12 21:56:14 -05:00
Ben Boeckel c8599dba02 cmake: use string(TIMESTAMP) 2015-11-12 21:56:14 -05:00
Ben Boeckel f002baed7a cmake: bump requirement to 3.1.0
CMAKE_C_STANDARD was introduced in 3.1.0.
2015-11-12 21:43:21 -05:00
Drew DeVault c43ef2aedd We don't need to implement strdup
After defining _GNU_SOURCE
2015-11-12 19:43:03 -05:00
Drew DeVault 11b1ba397f Further refinement of wayland client support 2015-11-12 19:35:39 -05:00
Drew DeVault bfcabe48ef Start fleshing out wayland client implementation
This introduces a basic shared framework for making wayland clients
within sway itself.
2015-11-12 19:04:01 -05:00
Drew DeVault 5c4e98aa4e Merge branch 'master' of github.com:SirCmpwn/sway 2015-11-12 12:37:38 -05:00
Drew DeVault ef8335d694 Start working on IPC for get_pixels
This is broken
2015-11-12 12:37:23 -05:00
Drew DeVault 8048b8a4d2 Merge pull request #223 from mikkeloscar/swaybg-deps
Add new swaybg dependencies
2015-11-12 10:48:56 -05:00
Mikkel Oscar Lyderik b8068a1d3e Add new swaybg dependencies 2015-11-12 16:40:21 +01:00
Drew DeVault 4dc913c95e Add swaybg executable
This will let users set their background to something other than that
cringy demoscene thing wlc has now. It's also going to be the first
wayland client written for sway, so I picked an easy thing to work on.
We'll have to figure out how to indicate that it's a special view.
2015-11-12 08:31:47 -05:00
Drew DeVault aadcba4b7c Add new dependencies for wayland clients
Cairo for rendering shit, Pango for text rendering, and wayland client
stuff. Thanks @Cloudef, blatantly ripping off his cmake files for this
2015-11-12 08:17:52 -05:00
Drew DeVault 250097d32b Fix gaps for views being incorrect 2015-11-12 08:02:39 -05:00
Drew DeVault 4397cff7bc Fix some IPC issues
Socket now includes pid in the filename (fixes nested sway sessions or
old sockets causing problems).

Fixed warnings on strict aliasing and cleaned up relevant code in
general.
2015-11-11 08:43:36 -05:00
Drew DeVault d729032ba2 Add file and line number to log in Debug build 2015-11-11 08:32:32 -05:00
Drew DeVault edb3e4b5ab Add some documentation comments
This is mostly setting a precedent, I hope that others will continue to
write docs for more headers.

Ref #218
2015-11-08 12:06:51 -05:00
Drew DeVault d3de6af6c2 Merge pull request #217 from mikkeloscar/ipc-h
Include header declaring ipc_event_workpace(2)
2015-11-04 15:25:39 -05:00
Mikkel Oscar Lyderik d5b5d92b30 Include header declaring ipc_event_workpace(2) 2015-11-04 21:12:25 +01:00
Drew DeVault c3d731ba93 Merge pull request #216 from sce/learn_edge_gaps_0
Learn "gaps edge_gaps <on|off|toggle>".
2015-11-04 07:37:37 -05:00
S. Christoffer Eliesen abc5fbfaec Learn "gaps edge_gaps <on|off|toggle>".
When yes, the old behaviour of adding half the inner gap around each
view is used.

When no, don't add any gap when an edge of the view aligns with the
workspace. The result is inner gap only between views, not against the
workspace edge.

The algorithm is not perfect because it means the extra space is
distributed amongst edge-aligned views only, but it's simple, looks good
and it works.
2015-11-04 13:21:10 +01:00
Drew DeVault 713c7d6e1e Merge pull request #215 from sce/gaps
Clean up gaps command
2015-11-04 06:58:26 -05:00
S. Christoffer Eliesen eeec0fda8a commands: gaps: Re-arrange windows after changing default gaps. 2015-11-04 01:32:38 +01:00
S. Christoffer Eliesen 936f8c24e0 commands: gaps: Always apply default gaps config. 2015-11-04 01:32:37 +01:00
S. Christoffer Eliesen 5c1e20b6ff commands: gaps: Accept zero value. 2015-11-04 01:32:37 +01:00
S. Christoffer Eliesen 62226460dd sway.5.txt: Clarify gaps documentation. 2015-11-04 01:32:37 +01:00
S. Christoffer Eliesen 820681965d commands: gaps: Refactor, expected_syntax. 2015-11-04 01:32:37 +01:00
Drew DeVault 58085226b3 Merge pull request #205 from sce/focus_move_cont_to_adjacent_output
Learn focus / move container to adjacent output
2015-11-03 17:11:41 -05:00
S. Christoffer Eliesen af31a3f04a commands: Learn 'move workspace to output <direction|name>'. 2015-11-03 22:38:53 +01:00
S. Christoffer Eliesen 9c8394022e commands: Learn 'move <container|window> to output <direction|name>'. 2015-11-03 22:38:53 +01:00
Drew DeVault 0833fa0c75 Merge pull request #214 from taiyu-len/master
put ipc_event_workspace in update_focus
2015-11-02 14:46:46 -05:00
taiyu 65d71d0a5e put ipc_event_workspace in update_focus 2015-11-02 11:28:51 -08:00
Drew DeVault ca5a2a387c Merge pull request #212 from sce/mouse_warping
Learn mouse_warping
2015-10-29 17:52:16 -04:00
S. Christoffer Eliesen 515ed86f4d container.h: Remove unused. 2015-10-29 19:13:52 +01:00
S. Christoffer Eliesen 5ba47d4a44 input_state: Remove mouse_origin (x&y). Query wlc instead. 2015-10-29 18:02:02 +01:00