Another customization I would like would be a color style for the custom terminal with the colors of kaos and a bash like this promp default that would be very nice:
https://github.com/powerline/powerline
Artwork refresh?
- Edited
Midna is up in github:
https://github.com/KaOSx/midna
Anyone can contribute to the look of KaOS, just fork this repo, make your changes and open a pull request. Look through the history, the full current icon theme used was submitted this way for example.
Wallpaper will stay gray-scale though, that is part of the look that sets KaOS apart.
th3g3ntl3m4n great themes!! congratulations! meravigliosi ;-)
- Edited
th3g3ntl3m4n I forgot to reply to window decoration part, it is very hard to use anything but the Breeze windeco, since all others fail on Wayland. So make sure if you adjust any windeco, to test on a wayland session. This is why the custom Midna windeco is no longer in use.
Maybe an idea for updated splash?
https://kaosx.us/media/splash.mp4
- Edited
@demm And what about a (nice looking) new bash prompt? It doesn't have to be powerline as th3g3ntl3m4n suggested and I know, what happens to one's install is up to one's self. But still, no harm in asking.
- Edited
Actually, it is better to just adjust the default bashrc, if you do want to add color.
See the Gentoo bashrc as an example ( color section only):
https://gitweb.gentoo.org/repo/gentoo.git/tree/app-shells/bash/files/bashrc
Implement color changes in:
https://github.com/KaOSx/live-uefi/blob/master/configs/shared/overlay/etc/skel/.bashrc
Fork that repo, make your bashrc changes and create a pull request.
EDIT:
Scratch all the above, testing powerline here:
This is what you all what like to see?
I love this, thanks demm i think is beautiful by default if you is agree
Powerline is added to the build repo, you can start helping with testing even without the build repo active:
sudo pacman -U http://kaosx.tk/repo/build/powerline-2.6-1-x86_64.pkg.tar.xz
No install script is added yet, so you will need to read the doc to properly set your bashrc:
https://powerline.readthedocs.io/en/latest/usage/shell-prompts.html#bash-prompt
- Edited
So, whoever is interested in testing:
cat <<EOT >> ~/.bashrc
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python3.6/site-packages/powerline/bindings/bash/powerline.sh
EOT
However, on every vim
start, I get Python errors. I tried to set the powerline vim bindings but to no avail.
Edit: Probably due to a version mismatch of Python used by vim (2.7) and powerline (3.6). Maybe this needs a recompile of vim using python3 or install powerline as a Python 2 module? Or can the Python install used in vim be set in some way?
- Edited
On upcoming ISOs ~/.bashrc will be set as:
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/bash/powerline.sh
The above will be added to powerline.install once all needed testing is done.
AnKosteck Did you use the python 3 included path for vim, or can you try with the path used for the .vim file?
https://github.com/KaOSx/apps/blob/master/powerline/PKGBUILD#L32
- Edited
What I did was create a ~/.vimrc file analog to the Tutorial with
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim
And the error I get is:
Traceback (most recent call last):
File "<string>", line 9, in <module>
ImportError: No module named powerline.vim
An error occurred while importing powerline module.
This could be caused by invalid sys.path setting,
or by an incompatible Python version (powerline requires
Python 2.6, 2.7 or 3.2 and later to work). Please consult
the troubleshooting section in the documentation for
possible solutions.
Unable to import powerline, is it installed?
Without the vimrc I get the same error though, the syntax highlighting inside vim with that vimrc is absent.
Edit: If I add the other 3 lines as specified in the guide
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
I additionally to above error message get
line 2:
E319: Sorry, the command is not available in this version: python3 from powerline.vim import setup as powerline_setup
line 3:
E319: Sorry, the command is not available in this version: python3 powerline_setup()
line 4:
E319: Sorry, the command is not available in this version: python3 del powerline_setup
Edit 2: Yeah, I used the wrong paths...
Edit 3: I am now using the following ~/.vimrc with no success
let g:pymode_python = 'python3'
set rtp+=/usr/share/vim/vimfiles/plugin
Shouldn't https://github.com/KaOSx/main/blob/master/vim/PKGBUILD#L41 be yes for python3 in vim?
- Edited
demm Now I got a working vimrc, i.e. no more errors upon vim start. Contents of vimrc:
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim
let g:powerline_pycmd = "py3"
Yes, it has to be that path, since vim seems to search for __pycache__
. To prove that a new vim compile is necessary, here without the new package you posted:
kostecka ~ vim .vimrc
You need vim compiled with Python 2.6, 2.7 or 3.2 and later support
for Powerline to work. Please consult the documentation for more
details
And with the new package it just works. Or to cite the requirements for the vim statusbar
... Python 3 uses --enable-python3interp flag instead ...
--enable-python3interp=dynamic
works just fine though, so thanks. I still see no statusline, I will look further into that.
Tried it with Konsole, works really good. No errors yet what I can see
Just a note. Powerline doesn't work in sudo by default. To get Powerline to work in an interactive shell update/create .bashrc in /root to, and use sudo -s to make it work (sudo -i doesn't execute .bashrc).
- Edited
I added the powerline code to /etc/bash.bashrc
then it works for any user.
[unknown] This work for me in my ~/.vimrc, but I had to add this:
" make backspace work like most other programs
set backspace=2
but did not let me delete with backspace. Thanks!.