S. Christoffer Eliesen
6db0f6f80f
extensions: panel_config->resource => wl_surface_res.
...
Change the name to something less ambigious.
9 years ago
Drew DeVault
7647762bab
Fix default workspace name generation
...
This fixes the issue where workspace 10 ends up being the default.
9 years ago
Drew DeVault
b9f14cee41
Merge pull request #359 from mikkeloscar/i3bar-command
...
Add bar option: swaybar_command <command>
9 years ago
Mikkel Oscar Lyderik
9d7f1afdfb
Add bar option: swaybar_command <command>
9 years ago
Mikkel Oscar Lyderik
90ff36cab8
Terminate children when freeing output container
9 years ago
Mikkel Oscar Lyderik
ede27eabc5
Reload swaybar/swaybg on config reload.
...
This works by tracking the pids of the child processes in the related
output container and terminating the processes and spawning new ones on
a config reload.
Should solve: #347
9 years ago
Drew DeVault
7558a274fa
Add shims for swaylock on compositor
9 years ago
progandy
76c520a04b
sway: insert numbered workspaces in order
...
fixes #308
Ordered by number ascending, with insert before same numbers.
Workspaces without numbers are appended at the end of the list.
Example order:
1 2:named 3:the_second 3:the_first 9 FIRST_NAME SECOND_NAME ...
9 years ago
progandy
8f1ac1ef2c
sway: enable workspace selection by number
9 years ago
Drew DeVault
f6da4dda4b
Bring unmanaged windows to front on output arrange
...
Fixes #312
9 years ago
Mikkel Oscar Lyderik
2fd7dd64ec
Implement bar option: separator_symbol
9 years ago
Mikkel Oscar Lyderik
f59f5d27aa
Implement bar option: output <output>
9 years ago
Mikkel Oscar Lyderik
6834a33290
Add bar height option (Airblader/i3)
9 years ago
Mikkel Oscar Lyderik
de1f625c27
Add rgba support for bar colors
9 years ago
Mikkel Oscar Lyderik
8c1d56812b
Implement bar option: colors {}
9 years ago
Mikkel Oscar Lyderik
0513322c03
Move default bar config to bar creation.
...
Get rid of `config->bar` and define the default bar config options when
a bar is initialized.
9 years ago
Yacine Hmito
87126a9fc2
Added bar_cmd_bindsym
...
Defined a sway_mouse_binding for clicks on the swaybar
9 years ago
Mikkel Oscar Lyderik
0aeee6963d
Make mouse key used for drag/resize configurable
...
This makes it possible to define what mouse button key (left|right) to
use for dragging/resizing.
9 years ago
Mikkel Oscar Lyderik
c6b13163c9
Add initial support for custom bar-id
9 years ago
Mikkel Oscar Lyderik
45b959f601
Move numlen(1) to sway/util.c
9 years ago
Drew DeVault
4d17aa9919
Revert "Make mouse key used for drag/resize configurable"
...
This reverts commit 22916e9ebc
.
9 years ago
Mikkel Oscar Lyderik
74152043f4
Implement 'bar { }' block parsing
9 years ago
Drew DeVault
e277d4e094
Subscribe to workspace change events and redraw
9 years ago
Drew DeVault
d361ce656d
Track the fullscreen view on a workspace swayc_t
9 years ago
Drew DeVault
34277207fd
Pass keys along from wayland backend to clients
9 years ago
Drew DeVault
029e0c7a2c
Add some more keyboard handling for wayland clients
9 years ago
Mikkel Oscar Lyderik
22916e9ebc
Make mouse key used for drag/resize configurable
...
This makes it possible to define what mouse button key (left|right) to
use for dragging/resizing.
9 years ago
Drew DeVault
a7710c5537
Initialize keyboard in registry poll
9 years ago
Drew DeVault
266393a705
Include wayland-server.h instead of -core.h
9 years ago
Drew DeVault
7614cb0373
Add keyboard handling shims to registry
9 years ago
Drew DeVault
067ac6cfa7
Discover swaylock extension in registry
9 years ago
Drew DeVault
080a263785
Refactor gdk pixbuf code into shared client lib
9 years ago
Drew DeVault
71afa38890
Add swaylock protocol, add resource destructors
...
This prevents sway crashing if swaybg or swaybar dies.
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
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
82d464bb90
Add text rendering support to wayland clients
9 years ago
Drew DeVault
e59cffcea2
Support desktop shell panels in compositor
9 years ago
Drew DeVault
4c1fad95b9
Remove trailing semicolon
9 years ago
Christoph Gysin
7d82cd9c0a
cmd_output: Use list_seq_find() to find matching config
9 years ago
Drew DeVault
e0cb8284fb
Rearrange logging headers
...
Ref #270
9 years ago
S. Christoffer Eliesen
2d0f78c0d6
workspace: Learn sticky.
...
A floating window that's sticky will move to the new active workspace
whenever the workspace on the same output changes.
9 years ago
Drew DeVault
062c74b7d0
Add command line to swaygrab
...
Also modifies IPC client so that we can work with persistent
connections.
9 years ago
Drew DeVault
27f03c705d
Move IPC client into common, refactor IPC
9 years ago
S. Christoffer Eliesen
a06cb7cd01
criteria: Add. Learn for_window command.
...
A criteria is a string in the form of `[class="regex.*" title="str"]`.
It is stored in a struct with a list of *tokens* which is a
attribute/value pair (stored as a `crit_token` struct). Most tokens will
also have a precompiled regex stored that will be used during criteria
matching.
for_window command: When a new view is created its metadata is tested
against all stored criteria, and if a match is found the associated
command list is executed.
Unfortunately some metadata is not available in sway at the moment
(specifically `instance`, `window_role` and `urgent`). Any criteria
string that tries to match an unsupported attribute will fail.
(Note that while the criteria code can be used to parse any criteria
string it is currently only used by the `for_window` command.)
9 years ago
S. Christoffer Eliesen
4367e6d3e3
container: Store app_id attribute for views.
9 years ago
S. Christoffer Eliesen
47c313fe3e
container: Store class attribute for views.
9 years ago
S. Christoffer Eliesen
a0c5a0bb30
cmd_bindsym: Detect/handle duplicates.
...
Also replace `bindsym_sort` with function `sway_binding_cmp` that takes
all data into account when comparing.
9 years ago
S. Christoffer Eliesen
5531dbe1b2
cmd_workspace: Don't fill up config->workspace_outputs with duplicates.
...
This also fixes a bug where issuing a new "workspace a output b" command
for an already assigned workspace would not work (the old config would
be found first and used instead).
9 years ago