mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 09:43:45 +01:00
add workaround for gtk brainrot
This commit is contained in:
parent
d914aa4069
commit
5a239082da
3 changed files with 41 additions and 0 deletions
18
.config/gtk-3.0/gtk.css.cgt
Normal file
18
.config/gtk-3.0/gtk.css.cgt
Normal 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 !>
|
18
.config/gtk-4.0/gtk.css.cgt
Normal file
18
.config/gtk-4.0/gtk.css.cgt
Normal 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 !>
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue