Skip to content

Instantly share code, notes, and snippets.

@RedBearAK
Last active May 16, 2024 03:11
Show Gist options
  • Save RedBearAK/43eaed7031552a71932112db6184a75a to your computer and use it in GitHub Desktop.
Save RedBearAK/43eaed7031552a71932112db6184a75a to your computer and use it in GitHub Desktop.
How to disable transparency in Ptyxis terminal emulator

This gist will list instructions for disabling the transparency (or enabling/modifying to opacity) in the Ptyxis terminal emulator.

This first version of the commands is for the Ptyxis app installed as a native (RPM-based) app in Aurora-DX 40. Aurora is a variant of Bluefin, part of the Universal Blue project, using the KDE Plasma 6 desktop environment instead of GNOME. It is based on the Fedora Atomic variant that is still called Kiniote.

The gsettings commands do still work, even if your system is not using GNOME. The app is a GTK app.

gsettings get org.gnome.Ptyxis default-profile-uuid

This gets your default profile uuid, a long alphanumeric string. You can copy and insert that into this command:

gsettings set org.gnome.Ptyxis.Profile:/org/gnome/Ptyxis/Profiles/[your uuid string goes here]/ opacity 1

This sets the opacity for that profile to 100% opaque.

They can be combined into a single command:

gsettings set org.gnome.Ptyxis.Profile:/org/gnome/Ptyxis/Profiles/$(gsettings get org.gnome.Ptyxis default-profile-uuid)/ opacity 1

Opacity can supposedly be 0.9, 0.8, whatever you'd like between zero (completely transparent) and one (opaque). But after I set the value to 1 to disable transparency, I have been unable to get it to appear transparent again by changing the value to something like 0.8. The terminal remains opaque, even if I restart the app. Might be a bug. But I prefer my terminals to be solid anyway.

See reference link for a version of these commands that might work for a "Devel" version of Ptyxis installed via Flatpak. But the structure of the commands at this link seem odd. I haven't tested them.

https://mmilburn.dev/blog/transparency-in-ptyxis/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment