Drew DeVault
ef9258bd66
Merge pull request #286 from mikkeloscar/wlc-origin-point
...
Use wlc_point instead of deprecated wlc_origin
9 years ago
Mikkel Oscar Lyderik
3658777e47
Use wlc_point instead of deprecated wlc_origin
...
Struct was renamed in wlc, use the new name.
9 years ago
Christoph Gysin
55b3532fe0
cmake: remove unnecessary quotes
9 years ago
Christoph Gysin
8f00eac07b
cmake: remove old-style endif condition
9 years ago
Christoph Gysin
2dedf206d7
cmake: use out-of-source build
9 years ago
Christoph Gysin
a043c9030c
cmake: separate C flags and preprocesser definitions
9 years ago
Christoph Gysin
f7ec3d00a0
cmake: use tabs instead of spaces
9 years ago
Christoph Gysin
905966bcae
cmake: style consistency
9 years ago
Christoph Gysin
2429266e3e
cmake: convert all cmake commands to lowercase
9 years ago
Drew DeVault
76a3868ce8
Merge pull request #284 from gpyh/master
...
FALLBACK_CONFIG_DIR did not work. Fixed.
9 years ago
Yacine Hmito
f3f77f9ff1
FALLBACK_CONFIG_DIR did not work. Fixed.
...
- Flag was ignored. Now it's taken into account.
- Missing trailing slashes in path now behaves properly.
9 years ago
Drew DeVault
3075b4a61d
Merge pull request #281 from gpyh/master
...
Can customize fallback config directory
9 years ago
Yacine Hmito
09feef89ee
Can customize config fallback directory
...
CMake takes a `FALLBACK_CONFIG_DIR` flag which is the directory where the
standard configuration file `config` is copied at installation.
If loading from typical configuration directories fails, sway loads
FALLBACK_CONFIG_DIR/config (/etc/sway/config by default).
9 years ago
Drew DeVault
44d0f731c3
Add framework for switching command sets
...
This will allow the bar {} block to have a different command set (and
also bar { colors { } }.
9 years ago
Drew DeVault
4f89735fc4
Add bar config struct and defaults
9 years ago
Drew DeVault
3f950b6e52
Merge pull request #278 from christophgysin/merge
...
cmd_output: Merge instead of replace output config
9 years ago
Christoph Gysin
b1bd3ae6f3
cmd_output: Merge instead of replace output config
9 years ago
Christoph Gysin
ae7ed79573
config: Store 'enabled' as int
9 years ago
Drew DeVault
e906b4e240
Merge pull request #277 from christophgysin/cmd_output
...
cmd_output: check for missing subcommand arguments
9 years ago
Christoph Gysin
3c8763af22
cmd_output: check for missing subcommand arguments
9 years ago
Drew DeVault
82d464bb90
Add text rendering support to wayland clients
9 years ago
Drew DeVault
5a369b3132
Only strip comments at the start of a line
...
This is necessary because i3 config files use CSS notation for colors
(i.e. #rrggbb).
9 years ago
Drew DeVault
ef91764bc7
Fix output adjustment for panels
9 years ago
Drew DeVault
e59cffcea2
Support desktop shell panels in compositor
9 years ago
Drew DeVault
60e76cf932
Add swaybar basics
...
This should make the bar open and appear as the panel, once sway
supports panels. Right now it crashes sway!
9 years ago
Drew DeVault
63cf8e48c4
Add swaybar subproject
9 years ago
Drew DeVault
fd4cf52518
Add suid instructions to readme
9 years ago
Drew DeVault
9d2bbe2640
Merge pull request #274 from sce/fix_stray_floats
...
cmd_floating: Don't add non-float as sibling to float.
9 years ago
Drew DeVault
25ad3181f5
Merge pull request #276 from sce/earlier_logging
...
main: Setup logging before wlc_init.
9 years ago
Drew DeVault
4c1fad95b9
Remove trailing semicolon
9 years ago
Drew DeVault
c942f1624e
Merge pull request #275 from christophgysin/cmd_output
...
refactor cmd_output
9 years ago
Drew DeVault
0af15cc19e
Merge pull request #269 from christophgysin/usage
...
Add --help to print usage
9 years ago
S. Christoffer Eliesen
c26a4b42cf
main: Setup logging before wlc_init.
...
If `wlc_init` fails the error message will never be logged or printed
anywhere.
9 years ago
Christoph Gysin
7059eccaa1
cmd_output: Log enable/disable state
9 years ago
Christoph Gysin
ffdfaaa985
apply_output_config: use list_seq_find() to find config
9 years ago
Christoph Gysin
7d82cd9c0a
cmd_output: Use list_seq_find() to find matching config
9 years ago
Christoph Gysin
88f372a22a
cmd_output: Cleanup cmd_output argument handling
9 years ago
S. Christoffer Eliesen
badfb4bb43
cmd_floating: Don't add non-float as sibling to float.
...
When turning a float to a non-float, `get_focused_container` might
return another floating view, causing the active view to be inserted
into the floating list on its workspace instead of the normal child list
which it should. (Since it has `is_floating` as false the resulting
discrepency triggered other bad behaviour eventually leading sway to
crash.)
This patch fixes that by simply checking floating status before making
it a sibling.
9 years ago
Drew DeVault
01c5349e1a
Merge pull request #272 from mikkeloscar/output-cmd-warnings
...
Add warnings about invalid output commands
9 years ago
Christoph Gysin
923c3245ac
Fix option parsing
...
Using 'flag' results in duplicate code paths for short and long options.
This broke the -q short option in swaymsg, because there was:
{"quiet", no_argument, &quiet, 'q'}
Which will set quiet to 'q' and return 0, not 'q'.
9 years ago
Christoph Gysin
bf97a5ada5
swaymsg: Add --help option that prints usage
9 years ago
Christoph Gysin
12c8cf5bf6
swaygrab: Add --help option that prints usage
9 years ago
Christoph Gysin
2f2e1f3fc7
sway: Add --help option that prints usage
9 years ago
Christoph Gysin
0d55d1a067
swaymsg: Print usage and exit on unknown options
9 years ago
Christoph Gysin
b235ccd212
swaygrab: Print usage and exit on unknown options
9 years ago
Christoph Gysin
e48a16ce5e
sway: Print usage and exit on unknown options
9 years ago
Christoph Gysin
3ba33321de
Use macros for exit values
9 years ago
Mikkel Oscar Lyderik
c477bbf345
Add warnings about invalid output commands
...
This handles some cases where sway will crash if an output command is
invalid/missing an argument.
9 years ago
Drew DeVault
01617131f1
Merge pull request #271 from sce/move_wlc_init
...
sway/main: Move wlc init to after args are handled.
9 years ago
S. Christoffer Eliesen
20cb390323
sway/main: Move wlc init to after args are handled.
...
First of all because it's not needed that early, and second of all
because there's a bug where calling `sway --get-socketpath` via `popen`
causes the child sway process to spin/hang instead of returning EOF.
(Specifically `(unset SWAYSOCK; swaymsg)` hangs.) This patch fixes that.
(Also note that this patch moves the "detailed review" comment, so I
guess this patch requires extra detailed review?)
9 years ago