xmobar : gaps on the right of xbm icons - xmobar

I am having a problem displaying xbm icons properly in my xmobar; namely, there is what appears to be a 1px gap on the right of some of the xbms:
From some experimentation, it seems that the gaps only occur in the sections of the template that are between the separator char ('%') which separates plugins from straight text.
As an example, the code I am using to format the memory usage portion of the bar (first purple section from the left) is:
<fc=#442244,#222244><icon=right_div.xbm/>%memory%</fc>·
and the 'memory' plugin has a template of:
<fc=#555555,#442244><icon=mem.xbm/> <usedratio> </fc>
Note that the 'right_div.xbm' displayed fine, but the 'mem.xbm' (which is nested in '%' chars) has a gap.
All of the xbm's are the same size (width:8px, height:14px), and I have tried adjusting the width of the icons in an attempt attempt to fill the gap. This had no effect.
Has anyone encountered this before, or know of a fix to remove the gaps?
Thanks in advance for any help!

Not sure exactly what the issue was, but it was fixed when I switched to using cabal's version by running the following:
sudo apt-get remove xmobar
cabal install xmobar --flags="with_xft"
Hope this helps anyone else that is having this issue!

Related

Netbeans 15 How to remove small gray comments in the settings that are automatically inserted into the code? [duplicate]

On line 11 the foo() method is called and beside the parameter value it shows the parameter name which i don't want and also there is a weird pink box along with the parameter name. How do i get rid of this. Tried many things on settings and found no solution. Any help is appreciated.
In menu:
View | Show Inline Hints
These are 2 separate things:
(1) Inline Hints
In NetBeans 12.2 (and I am I assuming it's the same for your version) there is an option from the main menu:
View > Show Inline Hints
This causes those items in a smaller font to be displayed/hidden, such as your data: hint.
(2) Autocompletion Hints
The red/pink borders are related to text which has been auto-completed for you by NetBeans. I believe if you just type somewhere else then that border disappears (because you have implicitly "accepted" the autocomplete suggestion).

Display larger indentation for files that are indented with just two spaces

I'm working on a project that is using 2 spaces as indentation.
I have a hard time reading code with such small indentation, so my question is:
Question: Can I make vscode show the two spaces as if they were wider (for example double the width)?
(I could of course solve it in a hackish way, by converting each file on checkout, and convert it back before i commit it, but that would be very tedious and error prone. I could also try to convince the project to convert the whole project to tabs, so that everyone can use their own preferred indentation. But I don't want to go into that discussion for every project I work on :) )
I have written the extension Indent Whitespace that decorates each space used in indentation with additional spaces (cursor will skip the decoration).
The decorated spaces are colored with a very transparent red.
With a setting you can change the number of spaces to add, default 1.
If you delete spaces with Delete it looks funny because the selection does not change, use the Arrow keys to update the decorations.
In a later version I will make the decoration color a setting, and also only update the decoration when the file changes (only important for large files, and fix the delete-update rendering).
I think you can't.
There is no such setting in VS Code. As of version 1.13, you can change the kerning, but this changes the spacing between all characters. You cannot do this only for a single character (or a set of characters).
The space width is a property of the font. Microsoft has a guideline that defines what is the ideal space size for a font. But this does not mean you cannot change it yourself when designing one. So I created a version of Roboto Mono which space character is 4x the original one.
This works on Notepad and MS Word, we can see the space is quite big. However, using the exact same font in VS Code, the space is still small, independently of the font being monospaced or not.
Illustration
Somehow, it looks like VS Code ignores space size in the font and decides by itself what is the best value.

How do i disable these texts I highlighed in yellow in the image? Netbeans [duplicate]

On line 11 the foo() method is called and beside the parameter value it shows the parameter name which i don't want and also there is a weird pink box along with the parameter name. How do i get rid of this. Tried many things on settings and found no solution. Any help is appreciated.
In menu:
View | Show Inline Hints
These are 2 separate things:
(1) Inline Hints
In NetBeans 12.2 (and I am I assuming it's the same for your version) there is an option from the main menu:
View > Show Inline Hints
This causes those items in a smaller font to be displayed/hidden, such as your data: hint.
(2) Autocompletion Hints
The red/pink borders are related to text which has been auto-completed for you by NetBeans. I believe if you just type somewhere else then that border disappears (because you have implicitly "accepted" the autocomplete suggestion).

Space displays strangely in VSCode, how to fix it?

enter image description here
I'm using VSCode in version 1.36, the space displays in it looks so strange, the width of 4 space equals to 2 characters. I don't know whether it's a feature in this new version or a bug, since I couldn't find the setting of recovering it to normal. How to set the space equal to one character in this version or it's exactly a bug?
I've found what the problem is. Resetting the "editor.fontFamily": "monospace". See this issue
reference.

What is the "up-pointing" version of U+25BE?

I'm not even sure if it exists but I'm using this Unicode character as a down indicator http://www.charbase.com/25be-unicode-black-down-pointing-small-triangle (▾) but I need the "up" version...any ideas?
U+25B4 (▴) is technically the up-pointing version of (▾), but it's not exactly the same.
I was using it for showing whether a dropdown element was open and needed it to be exact. So I ended up using CSS transform to flip it. (In my case it was a pseudo-element).
.dropdown::after {
content: '\25BE';
}
.dropdown.active::after {
transform: rotate(180deg);
}
For this character, http://www.unicode.org/charts/PDF/U25A0.pdf contains U+25BE (▾) and related characters.
Looking at the PDF shows U+25B4 (▴) as the black small up-pointing triangle (formally BLACK UP-POINTING SMALL TRIANGLE).
In general, go to http://www.unicode.org/charts and enter the hex number for a character (e.g. 25B4) and it will show you which PDF file describes the related characters. View the PDF; in this case, a quick scan upwards from the down-pointing arrow found the related character code, and the next page shows the formal name and related details.
Do you want U+25B4 BLACK UP-POINTING SMALL TRIANGLE (▴)?
If you know the codepoint of a character and you're trying to find similar ones, try searching the code charts by hex code.
U+25B4 = BLACK UP-POINTING SMALL TRIANGLE. Isn't there a character map you can use installed on your system? I have one (gucharmap - the GNOME [Unicode] Character Map) specifically for occasions like this. Just a suggestion. :-)