Drew DeVault
36e48fcf8d
Update default swaybar command
...
Fixes #988
2016-12-23 11:21:18 -05:00
Drew DeVault
1172566d4e
Change how security config is loaded
2016-12-17 15:21:57 -05:00
Drew DeVault
10c8b73075
Handle calloc failures
2016-12-15 19:01:41 -05:00
Drew DeVault
d75a747a3d
Handle config-related allocation failures
2016-12-15 19:01:41 -05:00
Drew DeVault
4c6c65e70c
Handle malloc failures from read_line
2016-12-15 19:01:40 -05:00
Drew DeVault
c8dc4925d1
Add IPC security policy command handlers
2016-12-02 17:34:26 -05:00
Drew DeVault
e9e1a6a409
Add IPC policy to config
...
Also reduces enum abuse, cc @minus7
2016-12-02 16:08:45 -05:00
Drew DeVault
f23880b1fd
Add support for command policies in config file
2016-12-02 08:10:03 -05:00
Drew DeVault
44cc0ef125
Add config related code and initial headers
2016-12-01 19:38:36 -05:00
D.B
3d1b472b83
swap unnecessary function for strndup
2016-11-03 06:43:12 +01:00
D.B
58eb7ac19f
change bar colors from char[10] to *char
...
This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
2016-11-02 21:07:04 +01:00
D.B
39ee0ec552
use urgent_ws color in swaybar if binding_mode is undefined
2016-11-02 18:58:33 +01:00
Michał Winiarski
e8d8abfbb5
Add left_handed support for input devices
...
Some users may want to switch buttons on their input devices, turns out
libinput already supports it. Let's add a support for it in our config.
Signed-off-by: Michał Winiarski <knr@hardline.pl>
2016-10-25 22:06:23 +02:00
Mykyta Holubakha
2a24772c4b
config: set pango_markup default to false
2016-10-20 16:43:38 +03:00
Ryan Dwyer
e4cb4d1b5c
Fix swaybar when running on named outputs.
...
When using a bar on a named output, load_swaybars() requires the
output to be active (ie. in the root container), but this is not the case if
the bar is added to the last output. To fix this, load_swaybars() is now
called after the output has been added to the root container.
After fixing that, swaybar would segfault due to using the wrong index
variable when loading outputs and config.
2016-09-17 17:25:45 +10:00
Drew DeVault
416417a54c
Reorganize includes
2016-09-01 08:18:37 -04:00
James Murphy
8af49eb696
Avoid dereferencing null configuration
...
Fixes: https://github.com/SirCmpwn/sway/issues/865
2016-08-20 16:24:08 +00:00
D.B
ce98569fbc
Handle output disabling during runtime
...
Output now gets disabled if disable command is invoked via bindsym or
IPC.
2016-08-10 18:52:49 +02:00
minus
b246799548
fixed uninitialized bar.wrap_scroll
2016-08-02 22:02:39 +02:00
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
2016-07-28 14:36:49 -04:00
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
2016-07-28 14:36:49 -04:00
minus
50b09937b2
clean up apply_input_config
2016-07-18 20:12:49 +02:00
Drew DeVault
6d971af5c3
Turn swaybg into a shell surface
2016-07-17 11:55:05 -04:00
Zandr Martin
9ecb43ea3b
couple small fixes
2016-06-11 15:29:04 -05:00
Zandr Martin
2298143d09
cleanup + add timeouts for pid_workspace list
2016-06-11 12:43:34 -05:00
Zandr Martin
66caee645c
Merge branch 'master' into assign-command
2016-06-11 09:33:24 -05:00
thuck
3710cd6963
Fix segfault when using include with *
...
This should fix the issue #681
2016-06-06 22:20:27 +02:00
Zandr Martin
0f1859ed25
messy, unfinished version
2016-06-06 06:58:53 -05:00
Denis Doria
b692a6d31a
Initial implementation for floating_maximum_size
2016-06-02 17:35:02 +02:00
Denis Doria
009eaccd42
Clean up not used variables
2016-06-01 14:44:02 +02:00
Denis Doria
0ad7857f90
Included option floating_minimum_size
...
Values cannot be negative or 0; if so uses the default 75x50.
Uses the same syntax as i3: floating_minimum_size <width> x <height>, although the x can be anything.
2016-06-01 13:37:50 +02:00
Denis Doria
f1d5b89d3e
Initial work for floating view with sane values
2016-05-31 14:59:33 +02:00
Mykyta Holubakha
e73dde3b10
Support floating_scroll sideways
2016-05-14 23:42:02 +03:00
Mykyta Holubakha
0c495eecde
Remove FSB_GAPS_INNER and FSB_GAPS_OUTER
2016-05-08 17:17:35 +03:00
Mykyta Holubakha
0423c41a0f
Implemented configurable floating scroll behavior
2016-05-07 20:49:51 +03:00
Daniel Lockyer
b41097c085
sway/config.c: fix double free issue as we need to store path in list
2016-05-05 23:50:12 +01:00
Jasen Borisov
de007c9b58
Add input cmd for setting pointer accel profile.
2016-05-01 11:02:44 +01:00
Daniel Lockyer
682efbb7dd
sway/config.c: Initialise struct value
2016-04-30 01:12:41 +01:00
Daniel Lockyer
e1fa51a152
sway/config.c: Move the wordfree call before the if statement so it is always called
2016-04-29 18:36:29 +01:00
Daniel Lockyer
06986e58b8
sway/config.c: Change to the useful free_cmd_results helper method
2016-04-29 18:31:21 +01:00
Daniel Lockyer
01c2b5f2d6
sway/config.c: move free call to after sway_log
2016-04-29 18:27:49 +01:00
Daniel Lockyer
b8722ecd5f
sway/config.c: Leading on from cdf017c
, we need to free path
2016-04-29 18:09:56 +01:00
Daniel Lockyer
e077ebdc72
sway/config.c: res->input is a malloc'ed section which wasn't freed
2016-04-29 18:08:28 +01:00
Daniel Lockyer
cdf017ceea
sway/config.c: wordexp has a corresponding wordfree which was never used
...
I had to change the assignment to path to be wrapped by strdup as we
pass the data out of the method.
2016-04-29 18:07:38 +01:00
Daniel Lockyer
c225bcacee
sway/config.c: config_home is the result of a malloc but was never freed
2016-04-29 18:06:21 +01:00
Mykyta Holubakha
0f1cfdec61
Renamed to pango_markup
2016-04-24 20:35:21 +03:00
Mykyta Holubakha
53b53dd8c2
Added plaintext markup configuration
2016-04-24 19:57:35 +03:00
Mikkel Oscar Lyderik
7be476c115
Add cmds new_window and new_float
...
Makes it possible to set default layout style for new windows and new
floating windows.
Close #556
2016-03-31 12:42:20 +02:00
Drew DeVault
a12850444d
New feature: adjust gaps with floating_mod+scroll
...
I made this configurable but I didn't make the command for it. That's
left as an exercise to an eager contributor.
mod_scroll_behavior [gaps inner|gaps outer]
Would merge implementions of more behaviors for mod+scroll, if anyone
has some neato ideas.
2016-03-30 08:34:32 -04:00
Mikkel Oscar Lyderik
5a13cb0ed1
Implement borders
...
The borders are implemented as a surface/buffer attached to each view
which is sent to and rendered by wlc in the view_pre_render callback.
All the drawing logic is handled in sway/border.c and all the logic for
calculating the geometry of the border/view is handled in
`update_geometry` in sway/layout.c (same place as gaps are calculated).
2016-03-30 00:47:58 +02:00