mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:02:34 +01:00
Compare commits
2 commits
dbff6bbbc5
...
522e2ec674
Author | SHA1 | Date | |
---|---|---|---|
522e2ec674 | |||
7aa0d88ecd |
3 changed files with 19 additions and 3 deletions
|
@ -4,9 +4,12 @@ on-button-middle=dismiss-all
|
|||
|
||||
font=<% opt.font %> 10
|
||||
|
||||
default-timeout=8000
|
||||
default-timeout=4000
|
||||
max-visible=4
|
||||
|
||||
anchor=top-left
|
||||
layer=overlay
|
||||
anchor=bottom-right
|
||||
icon-location=right
|
||||
|
||||
# Colors
|
||||
background-color=#<% opt.catppuccin.base %>E0
|
||||
|
|
|
@ -34,6 +34,8 @@ end
|
|||
:battery
|
||||
:clock
|
||||
:tray]
|
||||
:river/tags {:num-tags 10
|
||||
:tag-labels [:1 :2 :3 :4 :5 :6 :7 :8 :9 :S]}
|
||||
:cava {:hide_on_silence true
|
||||
:bars 16
|
||||
:bar_delimiter 0
|
||||
|
|
|
@ -134,6 +134,17 @@ pub fn init(alloc: std.mem.Allocator, initial: bool) !void {
|
|||
try con.runCommand(&[_][:0]const u8{ "input", "*" } ++ cmd);
|
||||
}
|
||||
|
||||
// scratchpad
|
||||
{
|
||||
var pbuf: [64]u8 = undefined;
|
||||
const scratchpad_tag: u32 = 1 << 9;
|
||||
try con.runCommand(&.{ "spawn-tagmask", try std.fmt.bufPrintZ(&pbuf, "{}", .{~scratchpad_tag}) });
|
||||
|
||||
const tag_s = try std.fmt.bufPrintZ(&pbuf, "{}", .{scratchpad_tag});
|
||||
try con.runCommand(&.{ "map", "normal", "Super", "P", "toggle-focused-tags", tag_s });
|
||||
try con.runCommand(&.{ "map", "normal", "Super+Shift", "P", "set-view-tags", tag_s });
|
||||
}
|
||||
|
||||
// tag config
|
||||
for (0..9) |i| {
|
||||
var key_buf: [16]u8 = undefined;
|
||||
|
|
Loading…
Reference in a new issue