Compare commits

..

2 Commits

Author SHA1 Message Date
coolneng 992d4154a0
Refactor switch-theme script 2021-04-06 18:37:10 +02:00
coolneng e5595ff2ae
Add aegis tmuxp session 2021-04-06 18:36:36 +02:00
3 changed files with 37 additions and 12 deletions

View File

@ -8,20 +8,24 @@ fi
mode=$1
change_theme() {
sed -i "s/iceberg_$1/iceberg_$2/" ~/.config/kitty/kitty.conf
sed -i "s/bg=$1/bg=$2/" ~/.config/nvim/init.vim
sed -i "s/iceberg_$1/iceberg_$2/" ~/.dotfiles/tmux/.tmux.conf
}
reload_kitty() {
pkill kitty
tmux source-file ~/.tmux.conf
kitty --class tmux tmux a
}
if [ "$mode" = "light" ]; then
emacsclient --eval "(load-theme 'doom-nord-light 'no-confirm)"
sed -i "s/iceberg_dark/iceberg_light/" ~/.config/kitty/kitty.conf
sed -i "s/bg=dark/bg=light/" ~/.config/nvim/init.vim
sed -i "s/iceberg_dark/iceberg_light/" ~/.dotfiles/tmux/.tmux.conf
pkill kitty
tmux source-file ~/.tmux.conf
kitty --class tmux tmux a
change_theme dark light
reload_kitty
else
emacsclient --eval "(load-theme 'doom-nord 'no-confirm)"
sed -i "s/iceberg_light/iceberg_dark/" ~/.config/kitty/kitty.conf
sed -i "s/bg=light/bg=dark/" ~/.config/nvim/init.vim
sed -i "s/iceberg_light/iceberg_dark/" ~/.dotfiles/tmux/.tmux.conf
pkill kitty
tmux source-file ~/.tmux.conf
kitty --class tmux tmux a
change_theme light dark
reload_kitty
fi

View File

@ -35,6 +35,11 @@ host sica
identityfile ~/.ssh/sica
KexAlgorithms +diffie-hellman-group1-sha1
host aegis
user coace
hostname 10.0.1.4
port 22
identityfile ~/.ssh/aegis
host eu.nixbuild.net
pubkeyacceptedkeytypes ssh-ed25519

16
tmux/.tmuxp/aegis.yaml Normal file
View File

@ -0,0 +1,16 @@
session_name: aegis
suppress_history: false
windows:
- window_name: admin
focus: true
layout: even-vertical
panes:
- ssh root@aegis
- ssh root@aegis
- window_name: monitor
layout: even-vertical
panes:
- ssh aegis
- ssh aegis