#!/usr/bin/env bash

## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
##
## launch kitty with i3 config

# i3 directory
DIR="$HOME/.config/polybar/ac-i3"
CONFIG="$DIR/kitty/kitty.conf"

if [ "$1" == "--float" ]; then
	kitty --class 'kitty-float' --config "$CONFIG"
elif [ "$1" == "--full" ]; then
	kitty --class 'kitty-fullscreen' --config "$CONFIG" \
		  --start-as fullscreen \
		  --override 'window_padding_width=30' \
		  --override 'font_size=14' \
		  --override 'background_opacity=0.95'
else
	kitty --config "$CONFIG" ${@}
fi
