Skip to content

Commit

Permalink
feat(kde): Ship an incredibly minor gtk.css theme to to make prompt f…
Browse files Browse the repository at this point in the history
…eel at home, adjusts window geometry and nothing else.
  • Loading branch information
KyleGospo committed Jan 9, 2024
1 parent e0586e5 commit 49e7786
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ RUN /tmp/image-info.sh && \
ln -s /usr/bin/steamos-logger /usr/bin/steamos-notice && \
ln -s /usr/bin/steamos-logger /usr/bin/steamos-warning && \
if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
sed -i 's/Exec=.*/Exec=systemctl start return-to-gamemode.service/' /etc/skel.d/Desktop/Return.desktop \
sed -i 's/Exec=.*/Exec=systemctl start return-to-gamemode.service/' /etc/skel/Desktop/Return.desktop \
; fi && \
sed -i 's@\[Desktop Entry\]@\[Desktop Entry\]\nNoDisplay=true@g' /usr/share/applications/input-remapper-gtk.desktop && \
cp "/usr/share/ublue-os/firstboot/yafti.yml" "/usr/etc/yafti.yml" && \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'colors.css';
@import 'kde-window-geometry.css'
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
Extremely trimmed down version of https://github.com/MrCompoopter/Libadwaita-Breeze-Dark
Modifies only the window shape, and otherwise makes no other changes.
This should ensure compatibility with most if not all themes and applications.
*/

window {
border-radius: 3px 3px 0 0;
border-width: 0px;
margin: 0px;
}

window.maximized {
border-radius: 0;
}

.maximized window,
.fullscreen window,
.tiled window {
border-radius: 0;
}

.popup window {
border-radius: 3px;
}

.csd window {
border-radius: 3px;
}

.solid-csd window {
border-radius: 0;
margin: 0;
border-width: 5px;
}
10 changes: 9 additions & 1 deletion system_files/desktop/shared/usr/bin/bazzite-flatpak-manager
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/bash

# SCRIPT VERSION
VER=11
VER=12
VER_FILE="/etc/bazzite/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)

# IMAGE IDENTIFIERS
KNOWN_IMAGE_FLAVOR_FILE="/etc/bazzite/flatpak_manager_image_flavor"
Expand Down Expand Up @@ -39,6 +40,13 @@ INSTALL_LIST_FILE="/usr/share/ublue-os/bazzite/flatpak/install"
REMOVE_LIST_FILE="/usr/share/ublue-os/bazzite/flatpak/remove"

# Configure needed params for flatpaks
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
# GTK4 theme for KDE
flatpak override \
--filesystem=xdg-config/gtk-4.0:ro
fi

# Wayland and XInput for Firefox
flatpak override \
--system \
--env=MOZ_ENABLE_WAYLAND=1 \
Expand Down

0 comments on commit 49e7786

Please sign in to comment.