mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 09:13: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 = {
|
window = {
|
||||||
titlebar = false;
|
titlebar = false;
|
||||||
|
|
||||||
commands = [
|
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";
|
command = "floating enable; sticky toggle; resize 35ppt 10ppt";
|
||||||
criteria = {
|
criteria = {
|
||||||
|
|
|
@ -49,7 +49,6 @@ in {
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
margin-top: -100px;
|
margin-top: -100px;
|
||||||
|
|
||||||
background: transparent;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
@ -57,6 +56,12 @@ in {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.titlebar .background
|
||||||
|
{
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* rm -rf window shadows */
|
/* rm -rf window shadows */
|
||||||
window.csd, /* gtk4? */
|
window.csd, /* gtk4? */
|
||||||
window.csd decoration { /* gtk3 */
|
window.csd decoration { /* gtk3 */
|
||||||
|
|
Loading…
Reference in a new issue