PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

How to configure window border width and color?

Open zhenyw opened this issue 5 years ago • 3 comments
trafficstars

Looks I can't find a way to change border pixel width or color. How I can do that? And it may be better we can provide config option in setting to change that.

thanks

zhenyw avatar Dec 19 '19 05:12 zhenyw

Ah, right, the border width can be controlled by changing the window-gap preference. The border is hard coded at half the window gap.

There's currently no preference for the color/style, but @olejorgenb has some code lying around for that.

We should probably change the tooltip as this question has popped up a few times, so it's obviously not very clear. I'm guessing you want a larger border? We might want to increase the default value (I run with a 20px gap at least).

hedning avatar Dec 19 '19 11:12 hedning

If you add the following to ~/.local/share/gnome-shell/extensions/paperwm@hedning:matrix.org/stylesheet.css and restart gnome shell the highlight/border/visual-indicator should change: (tweak as necessary :))

.tile-preview {
    border-color: black;
    background-color: rgba(10, 10, 10, 0.5);
}

(Ignore the other style definition in the file)

EDIT: to fully hide the selection:

#selection {
    border-color: rgba(0,0,0,0);
    background-color: rgba(0, 0, 0, 0);
}

olejorgenb avatar Jan 23 '20 17:01 olejorgenb

Just thought I'd mention the paperwm selection now has it's own style class paperwm-selection, so it's now best to use .paperwm-selection { ... } for styling.

hedning avatar Apr 04 '20 20:04 hedning

Hey @smichel17 - this one too! should prob be closed, given the ability to override paperwm-selection style with preferred border, size, colour, etc. with user.css from #414.

jtaala avatar Dec 31 '22 02:12 jtaala

The border is hard coded at half the window gap.

I want zero top window border, because I've moved the gnome bar to the bottom, and this lets me use fitt's law effectively with eg switching tabs in firefox. So I had to set the window gap to 0 to accomplish that, which is not ideal visually to tell where one window ends and another begins..

joeyh avatar May 15 '23 22:05 joeyh

Closing this as answered.

@joeyh - if you still want what you mentioned definitely submit a feature request and/or have a go at this and submit a PR.

jtaala avatar Nov 19 '23 09:11 jtaala