Last active
October 20, 2022 10:40
-
-
Save cyruzin/b76e83bd5fe206a9e5298f5cbf7b4bf9 to your computer and use it in GitHub Desktop.
Install Powerline in Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install powerline and powerline fonts. | |
sudo pacman -S powerline powerline-fonts | |
# Optional - Install powerline-fonts-git package from AUR to get the patched fonts. | |
# Remove the powerline-fonts first then: | |
sudo pacman -S powerline-fonts-git | |
# Add this to the end of the .bashrc file. | |
powerline-daemon -q | |
POWERLINE_BASH_CONTINUATION=1 | |
POWERLINE_BASH_SELECT=1 | |
. /usr/share/powerline/bindings/bash/powerline.sh | |
# Enable GIT branch. | |
# Create the powerline config file | |
mkdir -p ~/.config/powerline | |
# Execute this entire block on the terminal: | |
cat <<-'EOF' > ~/.config/powerline/config.json | |
{ | |
"ext": { | |
"shell": { | |
"theme": "default_leftonly" | |
} | |
} | |
} | |
EOF | |
# Apply the changes restarting the daemon. | |
powerline-daemon --replace | |
# Customizations | |
Set font "Droid Sans Mono Dotted for Powerline" with size 10. | |
Set transparency to 10%. |
Probably worth adding if you are using fancy power line you would need font-awesome for it to show correctly.
yay -S ttf-font-awesome
should do it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is displaying '?' and weird characters even though I have installed powerline and powerline-fonts. I ran 'fc-cache' but nothing has changed.