Skip to content

Instantly share code, notes, and snippets.

@cyruzin
Last active October 20, 2022 10:40
Show Gist options
  • Save cyruzin/b76e83bd5fe206a9e5298f5cbf7b4bf9 to your computer and use it in GitHub Desktop.
Save cyruzin/b76e83bd5fe206a9e5298f5cbf7b4bf9 to your computer and use it in GitHub Desktop.
Install Powerline in Arch Linux
# 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%.
@listenlight
Copy link

How do you "Set font" in the json file?

@cyruzin
Copy link
Author

cyruzin commented Sep 21, 2021

How do you "Set font" in the json file?

https://github.com/powerline/fonts

@pankaj-gecko
Copy link

It is displaying '?' and weird characters even though I have installed powerline and powerline-fonts. I ran 'fc-cache' but nothing has changed.

@abbaswasim
Copy link

abbaswasim commented Oct 20, 2022

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