dotwryn/bin/desktop/kitty/alternate-terminal.sh

17 lines
407 B
Bash
Raw Normal View History

#!/bin/sh
2021-09-15 07:48:37 +00:00
source "$HOME/.config/wryn/env/env.zsh"
2021-02-25 00:38:02 +00:00
CONFIG_DIR="$DOTWRYN/config/kitty"
[ -f "$CONFIG_DIR/temp.conf" ] && return 1 # race condition lock
mv "$CONFIG_DIR/theme.conf" "$CONFIG_DIR/temp.conf"
mv "$CONFIG_DIR/alternate.conf" "$CONFIG_DIR/theme.conf"
i3-sensible-terminal &
sleep 0.1
mv "$CONFIG_DIR/theme.conf" "$CONFIG_DIR/alternate.conf"
mv "$CONFIG_DIR/temp.conf" "$CONFIG_DIR/theme.conf"