summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-12 15:26:43 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-12 15:26:43 -0700
commit6396089f6e0cdfb2e0a28de1546e3017f8138f7d (patch)
treeac779929531df05f47650adc7744f407b42b5a49 /.config
parent872c55739472a3f2c22d6b95d1cea17724e5502c (diff)
downloaddotfiles-6396089f6e0cdfb2e0a28de1546e3017f8138f7d.tar.gz
switch to using --app-id for Irssi window
It is too easy to accidentally lose the mark to the [caffeinated] mark.
Diffstat (limited to '.config')
-rw-r--r--.config/sway/config10
1 files changed, 5 insertions, 5 deletions
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 <https://codeberg.org/dnkl/foot/issues/386>
+ # 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 <tab> 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