gh0stzk / dotfiles

BSPWM environment with 18 themes. With a theme selector to change on the fly.
GNU General Public License v3.0
3.03k stars 228 forks source link

Change terminal transparency and add rounded corner #202

Closed paulo-barbosa2006 closed 8 months ago

paulo-barbosa2006 commented 8 months ago

Hello! I started using bspwm 1 day ago and I want to congratulate you on your dotfile, I'm a beginner and I can easily configure it a little. But I'm not able to change the transparency of the terminal, and if possible, change the transparency of other windows like file manager for example. I would also like to change the borders on all the windows, I found the border a little thick and I would also like to change the color. And about changing the rounded corners, the edge is not becoming round but rather 'disappearing'. Shot-2024-03-14-231544

gh0stzk commented 8 months ago

Hello, some options, you can change them in the Theme.sh file that is in each theme directory, for example:

To change the border of the windows in a theme, look for this line in Theme.sh

bspc config border_width 0

change the 0 to the number you want

To change the transparency of the terminal, I defined 2 classes which are overridden depending on the theme you are in, one for the terminal that you open with super + enter and another for the floating terminal that you open with super + alt + enter

In the same Theme.sh file look for the _set_picomconfig function, within that function the last 2 lines are:


-e "s/\".*:class_g = 'Alacritty'\"/\"100:class_g = 'Alacritty'\"/g" \
-e "s/\".*:class_g = 'FloaTerm'\"/\"100:class_g = 'FloaTerm'\"/g"

Change the 100 for other number, you need to reload bspwm after save your changes.

Important, if you want to add any other app, you have to do it from the picom.conf file in ~/.config/bspwm/

search in picom.config

opacity-rule = [
  "100:class_g = 'Alacritty'",
  "100:class_g = 'FloaTerm'",
  "95:class_g = 'Updating'",
  "90:class_g = 'scratch'"
];

and add your app for example :

opacity-rule = [
  "100:class_g = 'Alacritty'",
  "100:class_g = 'FloaTerm'",
  "95:class_g = 'Updating'",
  "90:class_g = 'scratch'",
  "70:class_g = 'firefox'"
];

In theme.sh above that 2 lines you will se the corner-radius = 6 you can change the radious of the corners for that theme.

paulo-barbosa2006 commented 8 months ago

Everything worked. Thanks!