From 2568c1bff386e02d6f4d4258556cfc2384ac7a75 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 5 Sep 2020 13:45:49 -0700 Subject: move irssi into a regular window --- .config/i3/config | 33 ++++++++++++++++++++------------- .tmux.conf | 6 ++++++ 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index ef20aa14..76f936ef 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -207,29 +207,36 @@ mode "Window management" { # example, stay in the workspace(s) where I'm working on that # task/project # - # Instead of having them on a dedicated workspace, windows that are - # almost always open should be put on the scratcpad. + # Previously I thought that instead of having them on a dedicated + # workspace, windows that are almost always open should be put on the + # scratcpad: # - # Note that we have to move to scratchpad at startup ('move to - # scratchpad' below), or the toggle key won't work. + # Note that we have to move to scratchpad at startup ('move to + # scratchpad' below), or the toggle key won't work. # - # Once every so often I'll have to launch the program, and then - # immediately use the toggle key to make it visible. This is a bit - # inelegant, but much more reliable than binding the key to a script - # which starts the program if it's not around and otherwise toggles + # Once every so often I'll have to launch the program, and then + # immediately use the toggle key to make it visible. This is a + # bit inelegant, but much more reliable than binding the key to a + # script which starts the program if it's not around and otherwise + # toggles + # + # However, I now think that scratchpad windows are unwieldy for + # various reasons, so just having them as regular windows with + # shortcuts to get back to them is better. # calendar, contacts & some HTML mail bindsym Shift+r exec evolution, mode "default" # bindsym r [class="Evolution" title=" — Evolution$"] \ # scratchpad show, mode "default" - bindsym r [class="Evolution" title=" — Evolution$"] focus , mode "default" + bindsym r [class="Evolution" title=" — Evolution$"] focus, mode "default" # chat bindsym Shift+n exec xfce4-terminal \ --title="irssi" -x /bin/sh -c "mosh athena /home/spwhitton/src/dotfiles/bin/ii", \ mode "default" - bindsym n [class="^Xfce4-terminal$" title="^irssi$"] scratchpad show, \ - mode "default" + # bindsym n [class="^Xfce4-terminal$" title="^irssi$"] scratchpad show, \ + # mode "default" + bindsym n [class="^Xfce4-terminal$" title="^irssi$"] focus, mode "default" # bindsym space mode "Move focus/windows" # bindsym Shift+space mode "Move focus/windows" @@ -288,8 +295,8 @@ bindsym Ctrl+i mode "Window management" # for_window [class="Evolution"] floating enable # for_window [class="Evolution" title=" — Evolution$"] resize set 1200 700, \ # move position 50 50, move to scratchpad -for_window [class="^Xfce4-terminal$" title="^irssi$"] floating enable, \ - resize set 1000 600, move position 100 100, move to scratchpad +# for_window [class="^Xfce4-terminal$" title="^irssi$"] floating enable, \ +# resize set 1000 600, move position 100 100, move to scratchpad # change focus bindsym $mod+j focus left diff --git a/.tmux.conf b/.tmux.conf index 3a4fd8cc..d9673ab1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -30,6 +30,12 @@ bind "\\" send-prefix # unbind C-\\ bind "C-\\" last-window +# detach all other clients: useful when other clients on other machines are +# making Irssi too small; can easily reconnect from those machines when wanted +# thanks to my ssh-and-tmux-term script or just by hitting i3 shortcut to +# relaunch +bind "K" detach-client -a + # # splitting should maintain current working directory # bind '"' split-window -c "#{pane_current_path}" # bind % split-window -h -c "#{pane_current_path}" -- cgit v1.2.3