mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 18:32:48 +00:00
feat(kde): Ship an incredibly minor gtk.css theme to to make prompt feel at home, adjusts window geometry and nothing else.
This commit is contained in:
parent
e0586e50ec
commit
49e77864e5
@ -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" && \
|
||||
|
@ -0,0 +1,2 @@
|
||||
@import 'colors.css';
|
||||
@import 'kde-window-geometry.css'
|
@ -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;
|
||||
}
|
@ -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"
|
||||
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user