diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-22 23:35:16 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-22 23:35:16 +0200 |
| commit | d6d30a7ab34ad5d90123a705a58dd9bc0d491c01 (patch) | |
| tree | dccd3ea8085ed230fc0f997dce4eac6f734b7bb9 /src/config.zig | |
| parent | 1362061c4cefc558470c188d894f75faaa4e9cb2 (diff) | |
| download | river-d6d30a7ab34ad5d90123a705a58dd9bc0d491c01.tar.gz river-d6d30a7ab34ad5d90123a705a58dd9bc0d491c01.tar.xz | |
Add a filter to start views in floating mode
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig index caa6cd6..29f3792 100644 --- a/src/config.zig +++ b/src/config.zig @@ -26,12 +26,16 @@ pub const Config = struct { /// All user-defined keybindings keybinds: std.ArrayList(Keybind), + /// List of app_ids which will be started floating + float_filter: std.ArrayList([*:0]const u8), + pub fn init(self: *Self, allocator: *std.mem.Allocator) !void { self.border_width = 2; self.view_padding = 8; self.outer_padding = 8; self.keybinds = std.ArrayList(Keybind).init(allocator); + self.float_filter = std.ArrayList([*:0]const u8).init(allocator); const mod = c.WLR_MODIFIER_LOGO; @@ -197,5 +201,7 @@ pub const Config = struct { .command = command.toggleFloat, .arg = .{ .none = {} }, }); + + try self.float_filter.append("float"); } }; |
