Commit graph

1587 commits

Author SHA1 Message Date
Mikkel Oscar Lyderik 66e8b4d5de Correctly reset border geometry 2016-03-31 13:51:27 +02:00
Kevin Hamacher ce22ea1526 swaylock: improve graphical feedback 2016-03-31 13:49:59 +02:00
Drew DeVault f0b33df384 Merge pull request #560 from mikkeloscar/add-new_window-new_float
Add cmds new_window and new_float
2016-03-31 07:43:05 -04: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
Mikkel Oscar Lyderik 6db92bbb99 Merge pull request #558 from crondog/swaybarexit
Stop swaybar crashing without args
2016-03-31 11:56:59 +02:00
crondog 9c42557b66 Stop swaybar crashing without args 2016-03-31 20:56:14 +11:00
Drew DeVault 0169ba02fa Update default wallpapers
New version from artist has a different background that will solve the
banding issue some users have raised.
2016-03-30 19:12:52 -04:00
Drew DeVault 96ef3f69c4 Merge pull request #557 from mikkeloscar/bar-font-pango-optional
Make pango: optional for bar font
2016-03-30 11:19:12 -04:00
Mikkel Oscar Lyderik 63474aa04d Make pango: optional for bar font 2016-03-30 16:38:04 +02:00
Drew DeVault 655b003062 Fix pointer scroll thing 2016-03-30 09:24:51 -04:00
Drew DeVault ebead7a9bf Fix crashes with borders 2016-03-30 09:21:30 -04:00
Drew DeVault a4bf09f142 Remove leftover comment 2016-03-30 08:36:25 -04: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
Drew DeVault 68f4f9b520 Update README screenshot 2016-03-30 07:46:54 -04:00
Drew DeVault 4bf10d7771 Merge pull request #551 from mikkeloscar/window-borders
Implement Window borders
2016-03-30 07:41:13 -04:00
Drew DeVault 3ffff5e4f2 Merge pull request #555 from mikkeloscar/mode-name-spaces
Allow surrounding spaces in mode name
2016-03-30 07:37:55 -04:00
Mikkel Oscar Lyderik 948c594132 Allow surrounding spaces in mode name
This makes it possible to define a mode name with surrounding spaces if
so desired. e.g.:

    mode "   hello   " {  }
2016-03-30 12:58:50 +02:00
Mikkel Oscar Lyderik 0af55539a8 Fix borders with floating windows 2016-03-30 10:09:08 +02:00
Mikkel Oscar Lyderik 6fa6c27f3d Update window title when it changes 2016-03-30 01:01:05 +02:00
Mikkel Oscar Lyderik 7878de5ccc Mark focused view focus_inactive on unfocused output 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik d80466068a Handle swaybar using sway font 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik a87a5dbdd5 Comment endianness 2016-03-30 00:47:58 +02: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
Mikkel Oscar Lyderik 3b05f92f76 Add border <none|normal|toggle|pixel> config 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik 86ea79ea6d Implement parsing of hide_edge_borders 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik cefcce48aa Make client/pango.h not depend on client/window.h 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik da567317ab Make pango: prefix optional for font config 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik e2774aee3c Add default border colors 2016-03-30 00:47:58 +02:00
Drew DeVault b903f7f655 Implement some more on borders
Note that this segfaults ALL THE TIME in wlc code. Paging @Cloudef for
help, I'm at a loss.
2016-03-30 00:47:58 +02:00
Drew DeVault a8e084433d Window borders proof of concept 2016-03-30 00:47:58 +02:00
Drew DeVault 4611bba3db Initial setup of window border rendering
Please don't complain to me about the performance of this
2016-03-30 00:47:58 +02:00
Drew DeVault c3a5e00b6e Merge pull request #553 from Hummer12007/master
Fix a typo in swaygrab manual
2016-03-29 15:02:51 -04:00
Hummer12007 f648b33897 Fix a typo in swaygrab manual 2016-03-29 21:32:21 +03:00
Drew DeVault b7b734f311 Merge pull request #549 from Hummer12007/patch-1
Add -R option to getopt opt_string
2016-03-28 16:15:40 -04:00
Hummer12007 24cc12e043 Added -R option to getopt opt_string 2016-03-28 22:26:41 +03:00
Drew DeVault 6f53322774 Update default config 2016-03-27 12:50:09 -04:00
Drew DeVault eacf3d0396 Loosen restrictions on commands, update docs
Closes #531
2016-03-27 12:41:42 -04:00
Drew DeVault 59a1c5c28c Update sway(1) 2016-03-27 12:24:06 -04:00
Drew DeVault 84b4a057c3 Squash warning about uninitialized variable 2016-03-27 10:01:06 -04:00
Drew DeVault 8d5abac87d Update default config to suggest include 2016-03-26 13:24:46 -04:00
Drew DeVault 504a88434f Merge pull request #546 from mikkeloscar/include-handle-dir
Don't try to read config if not a file.
2016-03-26 12:58:19 -04:00
Mikkel Oscar Lyderik cdc73fd95e Don't try to read config if not a file. 2016-03-26 17:54:50 +01:00
Drew DeVault 3b849ce5a6 Merge pull request #544 from mikkeloscar/add-include-command
Add include command
2016-03-26 11:51:59 -04:00
Mikkel Oscar Lyderik 44ea92ea60 Add config path to error msg 2016-03-26 16:50:47 +01:00
Mikkel Oscar Lyderik b5f34cc27d Load correct config on reload 2016-03-26 16:37:56 +01:00
Mikkel Oscar Lyderik 39df452dc1 Document include command 2016-03-26 16:37:56 +01:00
Mikkel Oscar Lyderik 71a5350b68 Implement include command
The include command (`include <path>`) makes it possible to include sub
config files from the main config file (or from within other sub config
files).

The include command uses the following rules for including config files:

* the `path` can be either a full path or a path that is relative to the
  parent config. Shell expansion is supported, so it's possible to do
  `include ~/.config/sway.d/*`.
* The same config file can only be included once (to prevent include
  cycles). If a config is included multiple times it will just be
  ignored after it has been included once.
* Including a sub config file is the same as inserting the content of
  that file into the parent config, thus rules about overwriting
  bindsyms etc. works the same as for a single config.

Implement #542
2016-03-26 16:37:50 +01:00
Drew DeVault 3da269b78a Update README.md 2016-03-25 15:54:24 -04:00
Drew DeVault dbaeae11ce Update README.md packaging info 2016-03-25 15:53:02 -04:00
Drew DeVault 838db8e5db Fix link to PGP key 2016-03-25 11:21:21 -04:00