Script to apply KDE's settings to Gtk3/Gtk4 and optionally to root
▲ 21 r/kde+2 crossposts

Script to apply KDE's settings to Gtk3/Gtk4 and optionally to root

I'm not using GNOME, nor do I have it installed, except the bare minimum, so I created the following script which will read KDE's settings and apply them to Gtk3/Gtk4 by settings.ini/gsettings respectively.

It optionally allows to apply the settings to the root user aswell (imagine opening Synaptic at night, without being blinded).

Obviously on Gtk4 Adwaita apps may ignore some settings by design.

nanolx-gtksettings-kde:

https://gitlab.com/Nanolx/nanolx/-/blob/master/scripts/nanolx-gtksettings-kde?ref_type=heads

Suggestions welcome.

u/Nanolx — 1 day ago
▲ 2 r/linux

BashStyle-NG 11.3

On 27th of July I've relased version 11.3 of BashStyle-NG (Codename "Surimi Syndicate").

https://nanolx.org/posts/bashstyle-ng/

https://gitlab.com/Nanolx/bashstyle-ng

BashStyle-NG is a graphical utility and toolchain for changing the look, feel, and behavior of Bash, Readline, Vim, Nano, and Git. It acts as a central hub to add advanced features, configuration and visual enhancements into standard command-line tools, making the terminal environment more user-friendly and powerful.

BashStyle-NG UI main menu

It's basically a UI for configuring those tools, but additionally it contains a several own features (my personal favourite is the history synchronization, so basically the Bash history is global to all sessions. As soon as you reload the prompt ([Enter] basically) you can instantly access the commands from all other sessions) and utilities (personal favourites: gitkit and systemkit (basically, like any other simple system info script, but most output is prettyprinted and at fixed-length for no-hazzle inclusion in your PROMPT_COMMAND/PS1) and extra settings. It features an ini file so at the end the UI is optional.

The builtin prompts can be disabled by setting General Style -> Prompt Style to "none", which allows you to use other prompt build instead. A graphical prompt builder based on GtkSource is included aswell.

The UI works with and without Adwaita (which is only used as theme, not for widgets), if you're running BashStyle-NG from KDE it will follow it's light/dark setting, rather than GTK 4's. The prompt builder changes it's colorscheme according to whether you use light/dark theme aswell.

Also it includes a complete user documentation on for what each setting does, the documentation might not yet be perfect, but feel free to help improve it. You can read the doc online at: https://nanolx.org/doc_bashstyle-ng/

Debian packages are available in my own apt repo, in case anyone prefers that ( https://nanolx.org/posts/photonic/ ).

Feedback and suggestions welcome.

Disclaimer: two functions in the Python Gtk 4 UI were written using AI assistance (the custom GtkSpinButton, because the Gtk devs removed the ability to have primary and secondary icons on them), and the function to dynamically replace place holder widgets from GtkBuilder file from widgets generated by the python code), everything else was written on my own.

Well the first release was on 1st of May 2007, that stuff wasn't even a thing back then.

u/Nanolx — 6 days ago