Hyprland-dotfiles/scripts/thunarterminal.sh

20 lines
663 B
Bash
Raw Normal View History

2024-02-16 07:41:09 -05:00
#!/bin/bash
2024-02-16 07:41:49 -05:00
clear
2024-02-16 07:41:09 -05:00
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
2024-02-21 09:30:42 -05:00
echo "ERROR: ~/.config/xfce4 not found. Please open Thunar once to create it."
echo "Then start this script again."
2024-02-16 07:41:09 -05:00
fi
else
echo "ERROR: ~/dotfiles/.settings/terminal.sh not found"
2024-02-16 07:41:49 -05:00
fi
2024-02-19 03:00:59 -05:00
sleep 3