aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorkj-sh6042024-07-13 12:58:24 -0400
committerkj-sh6042024-07-13 12:58:24 -0400
commit895162d608a519e46a2eed906c863e3696222b68 (patch)
tree93745a5eea5b2070b59a018dfcae583585e42543 /.config
parent96e926c73f0f9fc3e366ace00ed60d97eede6878 (diff)
refactor: `.screenrc`-related changes
Diffstat (limited to '.config')
-rw-r--r--.config/fish/functions/fish_title.fish15
-rw-r--r--.config/screen/screenrc86
2 files changed, 21 insertions, 80 deletions
diff --git a/.config/fish/functions/fish_title.fish b/.config/fish/functions/fish_title.fish
new file mode 100644
index 0000000..f3f0a93
--- /dev/null
+++ b/.config/fish/functions/fish_title.fish
@@ -0,0 +1,15 @@
+function fish_title
+ echo $argv[1] (prompt_pwd)
+
+ switch "$TERM"
+ case 'screen*'
+
+ if set -q SSH_CLIENT
+ set maybehost (hostname):
+ else
+ set maybehost ""
+ end
+
+ echo -ne "\\ek"$maybehost(status current-command)"\\e\\" > /dev/tty
+ end
+end
diff --git a/.config/screen/screenrc b/.config/screen/screenrc
index 7bc1b87..f1c29e3 100644
--- a/.config/screen/screenrc
+++ b/.config/screen/screenrc
@@ -1,85 +1,11 @@
-# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
-
-# huge scrollback buffer
defscrollback 5000
-
-# no welcome message
-startup_message off
-
-# 256 colors
-attrcolor b ".I"
-termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
-defbce on
-
-# mouse tracking allows to switch region focus by clicking
+escape ^@a
mousetrack on
+startup_message off
+shelltitle "$ |fish"
+shell /usr/bin/fish
-# default windows
-screen -t Shell1 1 bash
-screen -t Shell2 2 bash
-screen -t Python 3 python
-screen -t Media 4 bash
-select 0
-bind c screen 1 # window numbering starts at 1 not 0
-bind 0 select 10
-
-# get rid of silly xoff stuff
-bind s split
-
-# layouts
-layout autosave on
-layout new one
-select 1
-layout new two
-select 1
-split
-resize -v +8
-focus down
-select 4
-focus up
-layout new three
-select 1
-split
-resize -v +7
-focus down
-select 3
-split -v
-resize -h +10
-focus right
-select 4
-focus up
-
-layout attach one
-layout select one
-
-# navigating regions with Ctrl-arrows
-bindkey "^[[1;5D" focus left
-bindkey "^[[1;5C" focus right
-bindkey "^[[1;5A" focus up
-bindkey "^[[1;5B" focus down
-
-# switch windows with F3 (prev) and F4 (next)
-bindkey "^[OR" prev
-bindkey "^[OS" next
-
-# switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
-bindkey "^[O1;5R" layout prev
-bindkey "^[O1;5S" layout next
-
-# F2 puts Screen into resize mode. Resize regions using hjkl keys.
-bindkey "^[OQ" eval "command -c rsz" # enter resize mode
-
-# use hjkl keys to resize regions
-bind -c rsz h eval "resize -h -5" "command -c rsz"
-bind -c rsz j eval "resize -v -5" "command -c rsz"
-bind -c rsz k eval "resize -v +5" "command -c rsz"
-bind -c rsz l eval "resize -h +5" "command -c rsz"
-
-# quickly switch between regions using tab and arrows
-bind -c rsz \t eval "focus" "command -c rsz" # Tab
-bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
-bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
-bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
-bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
+# enable truecolor support (requires latest -git release)
+truecolor on