From ae68f4c07e1768ccd0bb6f86e727510bdde87ab9 Mon Sep 17 00:00:00 2001 From: pancsta <155631569+pancsta@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:55:51 +0200 Subject: [PATCH] chore: fix template, todo --- README.md | 1 - pkg/usr-cmds/arrange.go | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2917228..228ea73 100644 --- a/README.md +++ b/README.md @@ -254,7 +254,6 @@ nano pkg/usr-cmds/arrange.go - user scripts in wasm - underscore windows from the current workspace - show on all screens (via wayland) -- group fzf cmds under `sway-yasm fzf` - pick grouping containers with `pick-container` - `switcher --current-output-only` - `switcher --current-space-only` diff --git a/pkg/usr-cmds/arrange.go b/pkg/usr-cmds/arrange.go index 358420d..b396802 100644 --- a/pkg/usr-cmds/arrange.go +++ b/pkg/usr-cmds/arrange.go @@ -54,7 +54,7 @@ func ArrangeWindows(d DaemonAPI, _ map[string]string) (string, error) { if d.WinMatchApp(win, "jetbrains") { err = d.MoveWinToSpace(win.ID, spaces.dev) } - if d.WinMatchApp(win, "jaeger") { + if d.WinMatchTitle(win, "jaeger") { err = d.MoveWinToSpace(win.ID, spaces.dev) } @@ -62,15 +62,15 @@ func ArrangeWindows(d DaemonAPI, _ map[string]string) (string, error) { if d.WinMatchApp(win, "obsidian") { err = d.MoveWinToSpace(win.ID, spaces.blogic) } - if d.WinMatchApp(win, "gmail") { + if d.WinMatchTitle(win, "gmail") { err = d.MoveWinToSpace(win.ID, spaces.blogic) } // 3:read - if d.WinMatchApp(win, "pocket") { + if d.WinMatchTitle(win, "pocket") { err = d.MoveWinToSpace(win.ID, spaces.read) } - if d.WinMatchApp(win, "inoreader") { + if d.WinMatchTitle(win, "inoreader") { err = d.MoveWinToSpace(win.ID, spaces.read) } if d.WinMatchApp(win, "thunderbird") {