Launch Ptyxis from keyboard shortcut

This commit is contained in:
Anthony Rose 2024-12-02 23:33:35 +00:00
parent 63c5f1869e
commit 9758036092

View file

@ -13,7 +13,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.Console.desktop', 'org.gnome.Nautilus.desktop', 'com.vivaldi.Vivaldi.desktop', 'org.mozilla.firefox.desktop', 'org.keepassxc.KeePassXC.desktop']" gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Ptyxis.desktop', 'org.gnome.Nautilus.desktop', 'com.vivaldi.Vivaldi.desktop', 'org.mozilla.firefox.desktop', 'org.keepassxc.KeePassXC.desktop']"
fi fi
} }
set_favorites_bar set_favorites_bar
@ -38,9 +38,9 @@ set_keyboard_and_language () {
gsettings set org.gnome.shell.keybindings toggle-overview "['<Super>s', '<Control><Alt>Tab']" gsettings set org.gnome.shell.keybindings toggle-overview "['<Super>s', '<Control><Alt>Tab']"
# Set custom keybindings. # Set custom keybindings.
if [ -x /usr/bin/kgx ] && ! [ -x /usr/bin/gnome-terminal ] if [ -x /usr/bin/ptyxis ]
then then
_acp_term=/usr/bin/kgx _acp_term="/usr/bin/ptyxis --new-window"
else else
_acp_term=/usr/bin/gnome-terminal _acp_term=/usr/bin/gnome-terminal
fi fi