From f4dfa8026e2f71fa9c027ebcc620657362a23b1d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 10 Mar 2024 12:31:17 +0100 Subject: [PATCH] add kitty as possible terminal also make terminal configurable in sway config --- .config/sway/config | 3 +++ .config/sway/config.keybinds | 2 +- .config/zsh/.zprofile | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 16b7f33..483114f 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,3 +1,6 @@ +# override in config.local +set $terminal 'urxvt' + include config.keybinds include config.theme include config.common diff --git a/.config/sway/config.keybinds b/.config/sway/config.keybinds index 0bfd7cc..982f5ee 100644 --- a/.config/sway/config.keybinds +++ b/.config/sway/config.keybinds @@ -4,7 +4,7 @@ set $mod Mod4 floating_modifier $mod # start a terminal -bindsym $mod+Return exec alacritty +bindsym $mod+Return exec $$terminal # close focused window (doesn't work, where did i get this?) bindsym $mod+q close diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 61b00d2..33a828b 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -93,7 +93,9 @@ fi export CCACHE_DIR="/var/cache/ccache" # Set terminal -if command -v alacritty > /dev/null; then +if command -v kitty > /dev/null; then + export TERMINAL="kitty" +elif command -v alacritty > /dev/null; then export TERMINAL="alacritty" elif command -v xfce4-terminal > /dev/null; then export TERMINAL="xfce4-terminal"