Add script to set terminal in thunar
This commit is contained in:
parent
ad8b401fc4
commit
e70c440de0
16
scripts/setthunarterminal.sh
Executable file
16
scripts/setthunarterminal.sh
Executable file
|
@ -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
|
Loading…
Reference in New Issue
Block a user