Skip to content

Commit

Permalink
feat(gnome): Switch to Prompt terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Dec 16, 2023
1 parent ae345f3 commit 0799570
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
12 changes: 10 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-$
wget https://copr.fedorainfracloud.org/coprs/kylegospo/vk_hdr_layer/repo/fedora-$(rpm -E %fedora)/kylegospo-vk_hdr_layer-fedora-$(rpm -E %fedora).repo?arch=x86_64 -O /etc/yum.repos.d/_copr_kylegospo-vk_hdr_layer.repo && \
wget https://copr.fedorainfracloud.org/coprs/ycollet/audinux/repo/fedora-$(rpm -E %fedora)/ycollet-audinux-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ycollet-audinux.repo && \
wget https://copr.fedorainfracloud.org/coprs/kylegospo/rom-properties/repo/fedora-$(rpm -E %fedora)/kylegospo-rom-properties-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-rom-properties.repo && \
wget https://copr.fedorainfracloud.org/coprs/kylegospo/prompt/repo/fedora-$(rpm -E %fedora)/kylegospo-prompt-fedora-$(rpm -E %fedora).repo?arch=x86_64 -O /etc/yum.repos.d/_copr_kylegospo-prompt.repo && \
wget https://pkgs.tailscale.com/stable/fedora/tailscale.repo -O /etc/yum.repos.d/tailscale.repo && \
sed -i 's@gpgcheck=1@gpgcheck=0@g' /etc/yum.repos.d/tailscale.repo

Expand Down Expand Up @@ -291,14 +292,20 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
mutter-common \
gnome-control-center \
gnome-control-center-filesystem && \
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:kylegospo:prompt \
vte291 \
vte-profile && \
rpm-ostree install \
prompt \
nautilus-open-any-terminal \
nautilus-gsconnect \
gnome-shell-extension-tailscale-gnome-qs \
steamdeck-backgrounds \
gnome-randr-rust \
gnome-shell-extension-user-theme \
gnome-shell-extension-gsconnect \
nautilus-gsconnect \
nautilus-open-any-terminal \
gnome-shell-extension-system76-scheduler \
gnome-shell-extension-compiz-windows-effect \
gnome-shell-extension-just-perfection \
Expand Down Expand Up @@ -361,6 +368,7 @@ RUN /tmp/image-info.sh && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-vk_hdr_layer.repo && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ycollet-audinux.repo && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-rom-properties.repo && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-prompt.repo && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/tailscale.repo && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/charm.repo && \
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
Expand Down
10 changes: 5 additions & 5 deletions system_files/desktop/shared/usr/bin/bazzite-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"

# SCRIPT VERSION
USER_SETUP_VER=17
USER_SETUP_VER=18
USER_SETUP_VER_FILE="$HOME/.bazzite-configured"
USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE)
USER_SETUP_FEDORA_VER_FILE="$HOME/.bazzite-configured-fedora-version"
Expand Down Expand Up @@ -64,10 +64,10 @@ else
gsettings set org.gnome.nautilus.preferences show-create-link true

echo 'Switching to Prompt in Nautilus'
#gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal prompt
#gsettings set com.github.stunkymonkey.nautilus-open-any-terminal keybindings '<Ctrl><Alt>t'
#gsettings set com.github.stunkymonkey.nautilus-open-any-terminal new-tab false
#gsettings set com.github.stunkymonkey.nautilus-open-any-terminal flatpak system
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal prompt
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal keybindings '<Ctrl><Alt>t'
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal new-tab false
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal flatpak off

echo 'Installing Gradience presets'
mkdir -p "$HOME/.var/app/com.github.GradienceTeam.Gradience/config/presets/user/"
Expand Down
5 changes: 3 additions & 2 deletions system_files/desktop/silverblue/usr/bin/xdg-terminal-exec
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

FLATPAK_LIST=$(/usr/bin/flatpak list --app --columns=application)
if grep '^org\.gnome\.Prompt$' <<< $FLATPAK_LIST; then
if command -v /usr/bin/prompt > /dev/null; then
/usr/bin/prompt -- "$@"
elif grep '^org\.gnome\.Prompt$' <<< $(/usr/bin/flatpak list --app --columns=application); then
/usr/bin/flatpak run org.gnome.Prompt -- "$@"
else
/usr/bin/gnome-terminal -- "$@"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ experimental-features=['variable-refresh-rate','scale-monitor-framebuffer']
allow-updates=false
download-updates=false
download-updates-notify=false

[com/github/stunkymonkey/nautilus-open-any-terminal]
terminal='prompt'
keybindings=['<Ctrl><Alt>t']
new-tab=false
flatpak='off'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[org/gnome/shell]
favorite-apps = ['org.mozilla.firefox.desktop', 'steam.desktop', 'net.lutris.Lutris.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop']
favorite-apps = ['org.mozilla.firefox.desktop', 'steam.desktop', 'net.lutris.Lutris.desktop', 'org.gnome.Software.desktop', 'org.gnome.Prompt.desktop', 'org.gnome.Nautilus.desktop']

0 comments on commit 0799570

Please sign in to comment.