Stand With Ukraine
Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Wednesday, July 26, 2023

How to set a correct keyboard layout in i3 window manager

Recently I rediscovered for myself the i3 desktop environment, got tired of windows spread here and there, but I am using an Apple aluminum keyboard with french letters and numeric keypad (just used to it), and I just hated that the layout did not correspond to what is marked on the buttons out of the box. To try to find a solution I googled and tried many things. I eventually ended up using
localectl
to set the correct keyboard layout. So below are the steps which might help you out:

Monday, October 18, 2010

Ubuntu 10.10 looks like Mac Os

Recently my friend sent me an interesting link to an application that makes your ubuntu look just like Mac(here it is http://lifehacker.com/5665765/macbuntu-makes-your-linux-desktop-look-like-mac-os-x). I installed it successfully, but have problems with links in places and the link to nautilus in the dock, they do not work, and also strange duplicates in places. I think later I will figure out how to fix it.))

But still I enjoy it very much.

Tuesday, June 29, 2010

Mac Ports automation bash script

Mac ports is a very useful system for installing linux applications ported to MacOS (http://www.macports.org), it is easy to use and I am happy with it till now. But it does not delete the old versions of software after update, or I just did not find a proper command for this. So I wrote this bash script to automate the task and successfully used it.
Here is its output during the execution:
radar2:tmp huziy$ ./port_cleaner.sh 
33
Password:
--->  Uninstalling hdf5-18 @1.8.4-patch1_1
--->  Uninstalling hdfeos5 @1.12_0
--->  Uninstalling ImageMagick @6.6.2-0_0+q16
--->  Uninstalling iso-codes @3.16_0
--->  Uninstalling libtool @2.2.6b_1+darwin
--->  Uninstalling mc @4.7.0.2_0+slang2
--->  Uninstalling mpfr @2.4.2-p1_0
--->  Uninstalling mpfr @3.0.0_0
--->  Uninstalling openmotif @2.3.2_2
--->  Uninstalling openssl @0.9.8n_0+darwin
--->  Uninstalling python26 @2.6.5_1
--->  Uninstalling xorg-libX11 @1.3.3_0
--->  Uninstalling xorg-libXcomposite @0.4.1_0
--->  Uninstalling xorg-libXdamage @1.1.2_0
--->  Uninstalling xorg-libXext @1.1.1_0
--->  Uninstalling xorg-libXfixes @4.0.4_0
--->  Uninstalling xorg-util-macros @1.8.0_0



And finally the script itself:



I used this tutorial http://tldp.org/LDP/abs/html/arrays.html to write the script.