You are not logged in.
Pages: 1


This is how Gedit looks when executed by my user:
This is how Gedit looks when executed as root user:
I'd like much more in this way, without the hederbar, but I can't figure out what I have to add to ~/.config/gtk-3.0/gtk.css
OS: Manjaro x86_64
DE: Xfce 4.20
Offline


This is not a css thing. This is a CSD(client side decoration) thing. Do you have gtk3-nocsd installed? Not sure why it's rendered differently between root and user?
But it's all right, when you're all in pain and you feel the rain come down
It's alright, when you find your way, then you see it disappear
It's alright....
Chris Cornell
Offline


Do you have gtk3-nocsd installed
Yes.
However: in gtk.css I am able to change/hide/remove the text of the headerbar, by using:
headerbar {
color: transparent
}There is also a way to reduce the weight to 0px?
Last edited by D.dave (2025-01-21 12:41:32)
OS: Manjaro x86_64
DE: Xfce 4.20
Offline


Try adding GTK_CSD=1 to /etc/environment and restart. (I think that's the line. Going from memory)
But it's all right, when you're all in pain and you feel the rain come down
It's alright, when you find your way, then you see it disappear
It's alright....
Chris Cornell
Offline


Try adding GTK_CSD=1 to /etc/environment
This broke the titlebar of my theme; in facts, I use gtk3-nocsd and GTK_CSD=0: in this way, gedit, use the title bar of my theme; but as you can see in the screenshots, gedit executed as root, doesn't have the headerbar.
OS: Manjaro x86_64
DE: Xfce 4.20
Offline


I would check in /root directory for either .profile or in .bashrc to see if something is set there making it different between root and user.
But it's all right, when you're all in pain and you feel the rain come down
It's alright, when you find your way, then you see it disappear
It's alright....
Chris Cornell
Offline


check in /root directory for either .profile or in .bashrc
Nothing special: there are the same things that I have set for my user
The funny thing is: that, if as root I execute GTK_CSD=1 gedit, gedit still doesn't have the headerbar
EDIT: I've found a partial solution/workaround: I edited the Gedit launcher/.desktop file as following:
bash -c "LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so GTK_CSD=0 GTK_THEME=Greybird-dark gedit"
In this way, is started like as root, without the headerbar:

EDIT 2:
I also made a bash script: ~/.local/bin/gedit, with the following content:
export LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so
export GTK_CSD=0
export GTK_THEME=Greybird-dark
LD_PRELOAD=/usr/lib/qt/plugins/platformthemes/libqgtk3.so GTK_CSD=0 GTK_THEME=Greybird-dark /usr/bin/gedit $1And in mime-types, I choosed this script for opening text files; otherwise, Gedit is normally started without the workaround.
Last edited by D.dave (2025-01-22 12:32:31)
OS: Manjaro x86_64
DE: Xfce 4.20
Offline
Pages: 1
[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 537.95 KiB (Peak: 538.58 KiB) ]