mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:53:55 -05:00
sway: improve borders for floating windows with CSDs
This commit is contained in:
parent
0c98a474f2
commit
72f1b5f9f3
|
@ -166,7 +166,12 @@ in {
|
|||
|
||||
window = {
|
||||
titlebar = false;
|
||||
|
||||
commands = [
|
||||
{
|
||||
command = "border pixel 4"; # Workaround for libadwaita + CSD apps not having borders when floating.
|
||||
criteria = {all = true;};
|
||||
}
|
||||
{
|
||||
command = "floating enable; sticky toggle; resize 35ppt 10ppt";
|
||||
criteria = {
|
||||
|
|
|
@ -49,7 +49,6 @@ in {
|
|||
margin-bottom: 50px;
|
||||
margin-top: -100px;
|
||||
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
min-height: 0;
|
||||
|
@ -57,6 +56,12 @@ in {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
.titlebar,
|
||||
.titlebar .background
|
||||
{
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* rm -rf window shadows */
|
||||
window.csd, /* gtk4? */
|
||||
window.csd decoration { /* gtk3 */
|
||||
|
|
Loading…
Reference in a new issue