I have a fresh install of arch linux and am currently trying to theme the terminal (alacritty) and the transparency when I set it in ~/.config/picom/picom.conf never applies when I sudo pkill picom then sudo picom --experimental-backends -b any help in the right direction would be greatly appreciated.
Method 1:
In your picom config file (by default ~/.config/picom/picom.conf) there should a list at the end of Trasparency/Opacity section. There should be some examples on how to set opacity effects. But nevertheless here is the syntax:
opacity-rule = [
"OPACITY_VALUE:class_g ='CLASS_NAME'"
]
OPACITY_VALUE is a number from 1-100 where 0 is fully invisible and 100 is fully opaque. And you can get the CLASS_NAME of any window by executing the following command and clicking on a window.
xprop | grep "CLASS"
Note: The CLASS_NAME value is actually the second one.
So if you want to have the alacritty window transparent, paste the following snippet right in the middle of the opacity-rule list.
"85:class_g ='Alacritty'",
Method 2:
Me personally, I don't use the first method. Because it causes the text to be transparent as well. So if you only want to make your background transparent, go to your alacritty config file (By default, it should be on ~/.config/alacritty/alacritty.yml.
If it is not there, copy everything from the example config located in /usr/share/doc/alacritty/example/alacritty.yml and paste to ~/.config/alacritty/alacritty.yml
There, find the window: section. Under that, paste the line as shown below. The code should look somewhat similar.
window:
opacity: 0.80 #From 0.00 to 1.00
Hope this helps.
Related
I used this for FontForge:
fontforge -lang=ff -c 'Open($1); SelectAll(); UnlinkReference(); Export("svg/%n-%e.svg");' font.ttf
This is my original glyph as viewed from within FontForge:
This is what I see in FontForge grid panel (notice it cuts off part of the tail):
And this is what the exported SVG is like from that command, it cuts off the tail as well:
Do I need to modify my font? (I hope not! A lot of work went into making it exactly how it is). Or how can I get it to export the full glyph? Maybe I can tell that command to somehow "add extra x pixels on the top and bottom", so it captures everything?
Also, I don't have to use FontForge commands necessarily for this. If it's possible to export SVGs with proper bounding through some Node.js tool, that works too. Anything to get it to export the full glyph :)
The tail is not cut off. The tail is still there in the file, if you view it in Inkscape you will see this. The reason this is done is so you can edit the SVG and then re-import and FontForge will get the metrics right, it can't be done another way and roundtrip.
If you want to force the viewbox to be larger, just lower the font's descent in Font Info (be careful not to scale the font, lower the descent only).
# xdotool --version
xdotool version 2.20110530.1
# wmctrl --version
1.07
# bash --version
GNU bash, version 4.1.10(1)-release (i586-suse-linux-gnu)
I have been playing around with the Commands wmctrl and xdotool for rearranging/moving windows around the desktop. And I was wondering if it's possible to use, for example, the bottom-left Corner as the transformation point for where I want that point to end up..?
For example, if wanted to move the current window to point 100,1000 (*i.e. X-Axis=100 and Y-Axis=1000), but instead of using the top-left corner as the point that will end-up at 100,1000, I want to use current window's Bottom-Left corner instead...
Is this possible to specify this with either of these commands?
I know I could probably do this with some math equations by getting the geometry of the window and then subtract or add the height of the window (*i.e. the y-axis) from the coordinate, in order to modify where the top-left corner would be, in essence putting the bottom-left corner where I want it. But in actuality I'm moving the top-left corner, but making it seem like I'm moving it using the bottom-left corner instead.
I know this isn't the same thing, but I saw you can use the "--polar" option (*moving with degrees instead of px) with the "--window" option to use the center of the window as the point of origin... But, nothing to really specify a different corner as the transformation point...
Or maybe there is another command other then the wmctrl or xdotool command to accomplish this...
Any thoughts or suggestions would be greatly appreciated!
Thanks in Advance,
Matt
Modifying Preferences/Settings - User and adding: "highlight_modified_tabs":true, gets me highlighted TEXT in the tab for dirty files, but I cannot get the greyed out dot on the tab to change colors as well.
What I'm trying to accomplish is to have the dirty file dot change to orange like the text on the tab does by modifying the above settings, except I want only the dot to change color and not the text on the tab.
Answering my own question for those who may run into this issue.
After a lot of fiddling around, I figured out that within the Default.sublime-theme file on the lines describing the close file button which start at line 729 (for me at least) you will see a bunch of different code blocks that look like this:
{
"class": "tab_close_button",
"parents": [{"class": "tab_control", "attributes": ["dirty", "file_medium_dark"]}],
"layer0.opacity": 0.0,
"layer1.opacity": 0.0,
"layer2.opacity": 0.0,
"layer3.texture": "Theme - Default/dirty_circle_light.png",
"layer3.opacity": 0.5
},
There are several different blocks like the above that correspond to the tab_close_button class for the dirty attribute, presumably related to the background color of your theme. For me, running Tomorrow Night Eighties - I had to modify the above block which contained the reference code for whatever "file_medium_dark" may be (I just assumed medium_dark would catch my theme since it's, well ... medium dark).
You can apparently also change the dirty_circle or dirty_indicator png files directly, but I couldn't find good replacements on the web and when I tried to modify some directly in paint the results were weird - I would get a nice bright grey box housing the circle with the color I wanted instead of just the circle.
The change:
simply add into the above block "layer3.tint":[255,161,52] or whatever RBG color you want. Also, change the opacity from 0.5 to 1.0 or it will be very muted. One unintended consequence is that when you hover over the dirty file dot the 'x' will now be colored a translucent version of whatever color you set the dirty dot to, as opposed to the default light colored x. I'm sure there is a way to fix this that has to do with the dirty_x attributes but I'm tired of messing with it.
Also, not sure if this is relevant but some others on SO and various forums mentioned that making the change directly in the Default.sublime-theme file can have unintended consequences, and they advocated making a copy of this file within the packages/user folder and making the changes there, since apparently this file is loaded independently and applied after and on top of the default changes.
I am outputing some text on the screen in perl
However, I want to make sure that only 1 line fits on each screen line thus if I change screen the program would automatically adjust its output line size.
Is there a way to automatically do it without having user-interaction?
Thanks
perl -MTerm::ReadKey -E '($cols,$rows) = GetTerminalSize(); say "This screen has $rows rows and $cols columns."'
On Unix/Linux you should be able to use the Term family of modules to get the current screen size. You can even hook SIGWINCH with it and respond to a terminal window resize event by adjusting your output.
http://search.cpan.org/modlist/User_Interfaces/Term
I am using Redhat Linux and the problem I am facing is that the "blue" colour of the directories is hardly visible on the black background. I found some posts on the web which asks to change some settings in the file /etc/profile.d/colorls.sh and /etc/profile.d/colorls.csh. However, this will change the colour settings for everyone who logs into the system. Could someone please let me know how I can change the colour settings that will affect only me?
To specify the colors of the output of ls, you need to set LS_COLORS. In your .zshrc, try adding:
LS_COLORS="$LS_COLORS:di=00;33"
34 is blue, 33 is ... yellowish. Change that number and find what you like.
Use dircolors to get a feel for what LS_COLORS should look like and add -p to see a color list.
Joachim's answer is good for fixing the specific issue of directories, but if any other utilities output using the "blue" color, you will find them just as unreadable.
Different terminal emulators have different settings for changing the colors; my terminal emulator of choice reads X resources to determine what colors to use:
URxvt.color0: #000000
URxvt.color1: #A80000
URxvt.color2: #00A800
URxvt.color3: #A8A800
URxvt.color4: #0000A8
URxvt.color5: #A800A8
URxvt.color6: #00A8A8
URxvt.color7: #A8A8A8
URxvt.color8: #000054
URxvt.color9: #FF0054
URxvt.color10: #00FF54
URxvt.color11: #FFFF54
URxvt.color12: #0000FF
URxvt.color13: #FF00FF
URxvt.color14: #00FFFF
URxvt.color15: #FFFFFF
color4 is the blue in question; I have mine set like this:
URxvt.background: #000000
URxvt.foreground: gray75
URxvt.color3: DarkGoldenrod
URxvt.color4: RoyalBlue
URxvt.color11: LightGoldenrod
URxvt.color12: LightSteelBlue
URxvt.color7: gray75
URxvt.colorBD: #ffffff
URxvt.colorUL: LightSlateGrey
URxvt.colorIT: SteelBlue
URxvt.cursorColor: grey90
URxvt.highlightColor: grey25
This gives a black background, not-too-bright foreground, and most other colors are reasonable enough. (I too found the default blue unreadable.) I put these into my ~/.Xresources file, and they take effect after log in or after merging this file with the X resources database: xrdb -merge ~/.Xresources.
Of course, different terminals are configured differently. Check your terminal's manpage for more details on changing the colors of the usual colors.
You can see what is done in the global file, and then add it to your private ~/.profile (or similar file.)
samolod solution is good.
In case of KDE konsole you go to
Settings -> Edit current profile -> Appearance -> Edit -> Color 5.
Then use graphical color chooser to make it brighter (I picked #5871FF).