You are not logged in.

#1 2020-11-13 18:22:36

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

[SOLVED] Powerline in bash looks like rectangles

Image: https://imgur.com/a/xdXtWNC

I installed pip using

sudo pacman -S python-pip

then ran

sudo pip install --user powerline

then added this

if [ -f `which powerline-daemon` ]; then
  powerline-daemon -q
  POWERLINE_BASH_CONTINUATION=1
  POWERLINE_BASH_SELECT=1
  . /usr/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh
fi

to my .bashrc. Now I get powerline in bash, but it doesn't look right.

Laptop: Lenovo Thinkpad E590
Kernel: Linux-Zen 5.9
WM: i3
DM: LightDM
Terminal: URxvt

Last edited by AirsoftHamster (2020-11-13 22:08:43)

Offline

#2 2020-11-13 18:27:34

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Powerline in bash looks like rectangles

You need to use a font that contains the appropriate symbols.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-11-13 18:29:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] Powerline in bash looks like rectangles

You should not use 'sudo' to install with pip --user.  Though I don't believe that's related to the current issue.  The current problem is simply that you need a font in your terminal that provides those symbols.  What font are you currently using?  What's the content of your ~/.Xdefaults and/or ~/.Xresources?

Last edited by Trilby (2020-11-13 18:29:43)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-11-13 18:32:54

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: [SOLVED] Powerline in bash looks like rectangles

.Xresources (I use URxvt):

! font
URxvt.font: xft:monospace:size=11

! scrollBar
URxvt.scrollBar: false

! colors
! special
*.foreground:   #c5c8c6
*.background:   #1d1f21
*.cursorColor:  #c5c8c6
! black
*.color0:       #282a2e
*.color8:       #373b41
! red
*.color1:       #a54242
*.color9:       #cc6666
! green
*.color2:       #8c9440
*.color10:      #b5bd68
! yellow
*.color3:       #de935f
*.color11:      #f0c674
! blue
*.color4:       #5f819d
*.color12:      #81a2be
! magenta
*.color5:       #85678f
*.color13:      #b294bb
! cyan
*.color6:       #5e8d87
*.color14:      #8abeb7
! white
*.color7:       #707880
*.color15:      #c5c8c6

! Extensions
URxvt.perl-ext-common: default,matcher
URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1

.Xdefaults has nothing in it.

Offline

#5 2020-11-13 18:34:32

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: [SOLVED] Powerline in bash looks like rectangles

Slithery wrote:

You need to use a font that contains the appropriate symbols.

What font would that be? I tried running

sudo pacman -S powerline-fonts

like it said in the guide I was reading but it didn't work.

Offline

#6 2020-11-13 18:54:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Powerline in bash looks like rectangles

You need to actually configure urxvt to use the font, not just install it.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2020-11-13 19:06:00

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: [SOLVED] Powerline in bash looks like rectangles

How might I do that? Sorry, I'm new to arch.

Offline

#8 2020-11-13 19:33:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Powerline in bash looks like rectangles

By reading the wiki.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB