add workaround for gtk brainrot

This commit is contained in:
LordMZTE 2024-02-11 13:26:59 +01:00
parent d914aa4069
commit 5a239082da
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<! if opt.wayland_compositor == "river" then !>
/* GTK is to retarded to realize that some compositors that don't implement deprecated
* protocols do not want client-side decoration. We completely disable titlebars here to compensate. */
headerbar.titlebar.default-decoration {
background: transparent;
padding: 0;
margin: 0 0 -17px 0;
border: 0;
min-height: 0;
font-size: 0;
box-shadow: none;
}
window.csd,
window.csd decoration {
box-shadow: none;
}
<! end !>

View file

@ -0,0 +1,18 @@
<! if opt.wayland_compositor == "river" then !>
/* GTK is to retarded to realize that some compositors that don't implement deprecated
* protocols do not want client-side decoration. We completely disable titlebars here to compensate. */
headerbar.titlebar.default-decoration {
background: transparent;
padding: 0;
margin: 0 0 -17px 0;
border: 0;
min-height: 0;
font-size: 0;
box-shadow: none;
}
window.csd,
window.csd decoration {
box-shadow: none;
}
<! end !>

View file

@ -19,6 +19,11 @@ cg.onDone(function(errors)
cg.opt.system("gsettings set org.gnome.desktop.interface cursor-theme " .. cg.opt.cursor.theme)
cg.opt.system("gsettings set org.gnome.desktop.interface cursor-size " .. cg.opt.cursor.size)
cg.opt.system('gsettings set org.gnome.desktop.interface font-name "' .. cg.opt.font .. ' 11"')
if cg.opt.wayland_compositor == "river" then
cg.opt.system 'gsettings set org.gnome.desktop.wm.preferences button-layout ""'
else
cg.opt.system "gsettings reset org.gnome.desktop.wm.preferences button-layout"
end
end
end)