From 6396089f6e0cdfb2e0a28de1546e3017f8138f7d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 12 Jul 2021 15:26:43 -0700 Subject: switch to using --app-id for Irssi window It is too easy to accidentally lose the mark to the [caffeinated] mark. --- .config/sway/config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.config') diff --git a/.config/sway/config b/.config/sway/config index 910d3f59..a9f305ab 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -194,12 +194,13 @@ mode "C-i-" { bindsym r [class="Evolution" title=" — Evolution$"] focus, mode "default" # chat - # foot doesn't have an option to set a persistent title, as other - # terminal emulators do, so we use a sway mark to find the window again - bindsym Shift+n exec foot --title="irssi" \ + # Foot doesn't yet have an option to set a persistent title, as other + # terminal emulators do. See + # regarding using the app ID for this purpose. + bindsym Shift+n exec foot --app-id="foot-irssi" \ /bin/sh -c "mosh athena /home/spwhitton/src/dotfiles/bin/ii", \ mode "default" - bindsym n [con_mark="irssi"] focus, mode "default" + bindsym n [app_id="foot-irssi"] focus, mode "default" bindsym c [con_mark=caffeinated] inhibit_idle none; \ mark --toggle caffeinated; \ @@ -240,7 +241,6 @@ mode "C-i-" { # distinguish between and C-i bindsym --locked Ctrl+i mode "C-i-" -for_window [title="irssi"] mark irssi for_window [con_mark=caffeinated] inhibit_idle open for_window [title="ftp-master GNU mc session"] mark mc -- cgit v1.2.3