Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add padding to my alacritty terminal in awesomeWM

So, Im slowly learning lua, awesomewm, and how to configure my os. Now I have a beautiful terminal, but it has no padding, so characters basically touch the edge and its not very aesthetic. Im not sure if I should configure my rc.lua (awesomewm config file) or the alacritty config file. Here is a picture.

https://i.sstatic.net/la5AV.png

EDIT:

     ¦ -- Terminal config
     ¦ {
     ¦   ¦ rule_any = {
     ¦   ¦   ¦ class = {
     ¦   ¦   ¦   ¦ "Alacritty",
     ¦   ¦   ¦ },
     ¦   ¦ }, properties = {beautiful.useless_gap = 200}
     ¦ },

I just tried this snippet but it returns an error.

like image 963
dahko37 Avatar asked Jan 25 '26 22:01

dahko37


2 Answers

You're likely looking for Alacritty's padding options.

window:
  padding:
   x: 0
   y: 0

Increasing gaps in Awesome will increase the space between windows, but it won't change anything about what a single window renders inside its boundaries.

like image 118
Lucas S. Avatar answered Jan 28 '26 12:01

Lucas S.


You are looking to adding a "gap" to the "tag layout". See https://awesomewm.org/apidoc/core_components/tag.html#gap . The easiest way is to set this theme variable https://awesomewm.org/apidoc/core_components/tag.html#beautiful.useless_gap

like image 40
Emmanuel Lepage Vallee Avatar answered Jan 28 '26 10:01

Emmanuel Lepage Vallee