From e70c440de086c23e302943c0842c0ff1f51623ca Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Fri, 16 Feb 2024 13:41:09 +0100 Subject: [PATCH] Add script to set terminal in thunar --- scripts/setthunarterminal.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/setthunarterminal.sh diff --git a/scripts/setthunarterminal.sh b/scripts/setthunarterminal.sh new file mode 100755 index 0000000..6fec73f --- /dev/null +++ b/scripts/setthunarterminal.sh @@ -0,0 +1,16 @@ +#!/bin/bash +if [ -f ~/dotfiles/.settings/terminal.sh ]; then + terminal="$(cat ~/dotfiles/.settings/terminal.sh)" + echo ":: Installing $terminal" + if [ -d ~/.config/xfce4 ]; then + if [ ! -f ~/.config/xfce4/helpers.rc ]; then + touch ~/.config/xfce4/helpers.rc + fi + echo "TerminalEmulator=$terminal" > ~/.config/xfce4/helpers.rc + echo ":: $terminal defined as Thunar Terminal Emulator." + else + echo "ERROR: ~/.config/xfce4 not found. Please check or create." + fi +else + echo "ERROR: ~/dotfiles/.settings/terminal.sh not found" +fi \ No newline at end of file