Use kgx (Gnome Console) if gnome-terminal is not installed
This commit is contained in:
parent
ea67a1a7ae
commit
862bd746f3
1 changed files with 9 additions and 2 deletions
|
@ -7,7 +7,7 @@ set_favorites_bar () {
|
||||||
then
|
then
|
||||||
gsettings set org.gnome.shell favorite-apps "$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf")"
|
gsettings set org.gnome.shell favorite-apps "$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/favorite-apps.conf")"
|
||||||
else
|
else
|
||||||
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'org.mozilla.firefox.desktop']"
|
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Console.desktop', 'org.gnome.Nautilus.desktop', 'org.mozilla.firefox.desktop']"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
set_favorites_bar
|
set_favorites_bar
|
||||||
|
@ -22,10 +22,17 @@ set_keyboard_and_language () {
|
||||||
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab']"
|
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab']"
|
||||||
|
|
||||||
# Set custom keybindings.
|
# Set custom keybindings.
|
||||||
|
if [ -x /usr/bin/kgx ] && ! [ -x /usr/bin/gnome-terminal ]
|
||||||
|
then
|
||||||
|
_acp_term=/usr/bin/kgx
|
||||||
|
else
|
||||||
|
_acp_term=/usr/bin/gnome-terminal
|
||||||
|
fi
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/']"
|
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/']"
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ command '/usr/bin/gnome-terminal'
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ command "$_acp_term"
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ name 'Launch Terminal'
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ name 'Launch Terminal'
|
||||||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ binding '<Primary><Alt>t'
|
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/launch-terminal/ binding '<Primary><Alt>t'
|
||||||
|
unset _acp_term
|
||||||
}
|
}
|
||||||
set_keyboard_and_language
|
set_keyboard_and_language
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue