Skip to content

Commit

Permalink
update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Dec 16, 2023
1 parent 2952823 commit 3326371
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
nx-desktop-settings-legacy (4.6.0) nitrux; urgency=medium

* Force XWayland scaling is set to 1.

-- Uri Herrera <uri_herrera@nxos.org> Sat, 16 Dec 2023 02:16:00 -0500

nx-desktop-settings-legacy (4.5.9) nitrux; urgency=medium

* Cap the log file size at 10 MB otherwise it grows too big.
Expand Down
8 changes: 7 additions & 1 deletion usr/bin/desktop-config
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ fi ) 2>&1 | tee -a "$desktop_config_log"

if grep -q "\[Xwayland\]" "$xdg_user_path/kwinrc"; then
echo "[Xwayland] section exists, updating Scale setting."
sed -i '/^\[Xwayland\]/,/^\[/ s/^Scale=.*/Scale=1/' "$xdg_user_path/kwinrc"
awk '
/^\[Xwayland\]/ { print; inSection = 1; next }
/^\[/ { inSection = 0 }
inSection && /^Scale=/ { print "Scale=1"; next }
{ print }
' "$xdg_user_path/kwinrc" > "$xdg_user_path/kwinrc.tmp"
mv "$xdg_user_path/kwinrc.tmp" "$xdg_user_path/kwinrc"
else
echo "Adding [Xwayland] section with Scale=1."
echo -e "\n[Xwayland]\nScale=1" >> "$xdg_user_path/kwinrc"
Expand Down

0 comments on commit 3326371

Please sign in to comment.