Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
11-14-2019, 10:10 AM
#4051
LQ Newbie
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25
Rep:
Quote:
Originally Posted by
SCerovec
i found this:
▶
HTH
Thank you, I'll post the new version with this arrow and some other minor changes when I'm at home.
1 members found this post helpful.
11-14-2019, 10:15 AM
#4052
Senior Member
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Looks great with $triangle!
I wonder how your i3-block config looks like to have those as well... ;-)
1 members found this post helpful.
11-14-2019, 10:51 AM
#4053
LQ Newbie
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25
Rep:
Another prompt with triangle
The new prompt with triangle:
Code:
PS1='\[\033[0;92;4m\]\342\224\214\342\224\200\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$triangle\[\e[0;30m\]\[\e[102m\] \w $(__git_ps1 "(%s)")\[\e[0;92m\]\[\e[40m\]$triangle\[\e[0m\]\[\e[40m\]\n\[\033[0;92;4m\]\342\224\224\342\224\200\342\224\200\[\033[0;92;1m\]▶ \[\033[0m\]'
For root:
Code:
PS1='\[\033[0;31;4m\]\342\224\214\342\224\200\[\033[0m\]\[\e[41m\] \u@\h \[\e[0;31m\]\[\e[43m\]$triangle\[\e[0;30m\]\[\e[43m\] \w \[\e[0;33m\]\[\e[40m\]$triangle\[\e[0m\]\[\e[40m\]\n\[\033[0;31;4m\]\342\224\224\342\224\200\342\224\200\[\033[0;31;1m\]▶ \[\033[0m\]'
Quote:
Originally Posted by
Tonus
Looks great with $triangle!
I wonder how your i3-block config looks like to have those as well... ;-)
I'm using
bumblebee-status with the gruvbox powerline theme slightly modified:
Code:
{
"icons": [ "paxy97", "awesome-fonts" ],
"defaults": {
"warning": {
"fg": "#1d2021",
"bg": "#d79921"
},
"critical": {
"fg": "#fbf1c7",
"bg": "#cc241d"
},
"default-separators": false,
"separator-block-width": 0
},
"cycle": [
{
"fg": "#ebdbb2",
"bg": "#1d2021"
},
{
"fg": "#fbf1c7",
"bg": "#3c3836"
}
],
"dnf": {
"good": {
"fg": "#002b36",
"bg": "#859900"
}
},
"battery": {
"charged": {
"fg": "#1d2021",
"bg": "#b8bb26"
},
"AC": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"bluetooth": {
"ON": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
}
}
I'm also using a gruvbox theme for konsole BTW, so of course the colors will look different with other themes.
Salut!
Last edited by IndiX; 11-14-2019 at 11:10 AM .
Reason: Changed code and image
3 members found this post helpful.
11-14-2019, 11:15 AM
#4054
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
I admit it,
I've got inspired...
~/.bashrc (snippet)
Code:
#...
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[41m\] err \[\e[0;41m\]\[\e[32m\]$irt\")\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$tri\[\e[0;30m\]\[\e[102m\] \w \[\e[0;34m\]\[\e[102m\]$irt\[\e[0;93m\]\[\e[44m\] \$(lsbytesum) Mb \[\e[0;34m\]\[\e[40m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200▶ \[\033[0m\]"
#...
Maybe even carried away?
But it is all coming nicely together now...
3 members found this post helpful.
11-14-2019, 11:30 AM
#4055
LQ Newbie
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25
Rep:
Quote:
Originally Posted by
SCerovec
I admit it,
I've got inspired...
~/.bashrc (snippet)
Code:
#...
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[41m\] err \[\e[0;41m\]\[\e[32m\]$irt\")\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$tri\[\e[0;30m\]\[\e[102m\] \w \[\e[0;34m\]\[\e[102m\]$irt\[\e[0;93m\]\[\e[44m\] \$(lsbytesum) Mb \[\e[0;34m\]\[\e[40m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200▶ \[\033[0m\]"
#...
Maybe even carried away?
But it is all coming nicely together now...
And now I've to modify mine. I like the size info and the $tri and $irt combination!
Last edited by IndiX; 11-14-2019 at 02:05 PM .
2 members found this post helpful.
11-14-2019, 11:32 AM
#4056
Member
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820
Wow, very nice prompt setups here! I'm happy this thread got so active!
2 members found this post helpful.
11-14-2019, 02:19 PM
#4057
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Our prompetition turned into a prompt craze?
Just you wait until the less frequent members come across this (dumpster fire?)
11-14-2019, 02:36 PM
#4058
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Quote:
Originally Posted by
IndiX
And now I've to modify mine. I like the size info and the $tri and $irt combination!
Attachment 31855
I am glad you posted that...
Code:
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[41m\] err \[\e[0;41m\]\[\e[32m\]$irt\[\e[0;31m\]\[\e[42m\]$irt\[\e[0;41m\]\[\e[32m\]$irt\")\[\033[0m\]\[\e[42m\] \u@\h \[\e[0;32m\]\[\e[102m\]$tri\[\e[0;30m\]\[\e[102m\] \w \[\e[0;34m\]\[\e[102m\]$irt\[\e[0;93m\]\[\e[44m\] \$(lsbytesum) Mb \[\e[0;34m\]\[\e[40m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200▶ \[\033[0m\]"
It is just the tiny double arrow in case of error (non zero result).
2 members found this post helpful.
11-14-2019, 07:14 PM
#4059
Senior Member
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Quote:
Originally Posted by
IndiX
I'm using
bumblebee-status with the gruvbox powerline theme slightly modified:
Code:
{
"icons": [ "paxy97", "awesome-fonts" ],
"defaults": {
"warning": {
"fg": "#1d2021",
"bg": "#d79921"
},
"critical": {
"fg": "#fbf1c7",
"bg": "#cc241d"
},
"default-separators": false,
"separator-block-width": 0
},
"cycle": [
{
"fg": "#ebdbb2",
"bg": "#1d2021"
},
{
"fg": "#fbf1c7",
"bg": "#3c3836"
}
],
"dnf": {
"good": {
"fg": "#002b36",
"bg": "#859900"
}
},
"battery": {
"charged": {
"fg": "#1d2021",
"bg": "#b8bb26"
},
"AC": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"bluetooth": {
"ON": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
}
}
I'm also using a gruvbox theme for konsole BTW, so of course the colors will look different with other themes.
Salut!
Argh! I wish I had more time to dig into this!
Still got inspired by all these prompts, so....
2 members found this post helpful.
11-15-2019, 03:31 AM
#4060
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Quote:
Originally Posted by
Tonus
Argh! I wish I had more time to dig into this!
Still got inspired by all these prompts, so....
that's some mean prompt you have!
11-15-2019, 01:40 PM
#4061
Member
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820
Added some hearts in the workspace area with FontAwesome;
https://github.com/FortAwesome/Font-Awesome . Contains a lot of cool icons that can be contained like a font. It opens up a lot of doors now, especially for the Fluxbox menu, where you can have icons only for example.
Last edited by Bindestreck; 11-16-2019 at 04:29 AM .
4 members found this post helpful.
11-16-2019, 06:58 AM
#4062
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
i gave it (even) some more attention:
root's
.bashrc
Code:
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[97;41m\] err \[\e[91;41m\]$irt\[\e[31;101m\]$irt\[\e[91;41m\]$irt\")\[\e[1;93;101m\] \u@\h \[\e[0;102;91m\]$tri\[\e[102;30m\] \w \[\e[102;34m\]$irt\[\e[44;93m\] \$(lsbytesum) Mb \[\e[40;34m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200▶ \[\033[0m\]"
user's
.bashrc
Code:
echo "processing :[~/.bashrc]:"
echo "aliasing:"
alias ls="ls --color"
alias mc="mc -S gotar"
alias mcedit="mcedit -S gotar"
alias xterm="xterm -rv -sb -rightbar"
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[97;41m\] err \[\e[32;41m\]$irt\")\[\e[1;93;42m\] \u@\h \[\e[0;102;32m\]$tri\[\e[102;30m\] \w \[\e[102;34m\]$irt\[\e[44;93m\] \$(lsbytesum) Mb \[\e[40;34m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200▶ \[\033[0m\]"
echo "pathing up:[prepending ~/bin]"
PATH="~/bin:"$PATH
export PATH
# echo $PATH
case $(setterm -blank) in
0)
echo no blank terminal detected
;;
*)
echo blanked terminal detected
setterm -blank poke # unblanked now
;;
esac
if [ $TERM = "linux" ]; then
setfont ter-v16n
fi
# enabling root on X11
xhost +local:root
cal -m3 --color=always
TL;DR:
fat
user@host and
re-colored root and somewhat unclutered the escape sequence mess.
and the screenie in the attachments:
4 members found this post helpful.
11-16-2019, 09:24 AM
#4063
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
I don't remember where, but a few years ago I saw a prompt with that line going straight along
the entire command scope/output, it was nice.
I think one must have a terminal with 81 or 82 columns.
11-16-2019, 10:47 AM
#4064
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Quote:
Originally Posted by
Paulo2
I don't remember where, but a few years ago I saw a prompt with that line going straight along
the entire command scope/output, it was nice.
I think one must have a terminal with 81 or 82 columns.
Code:
echo "prompt styling:"
tri=$'\uE0B0'
irt=$'\uE0B2'
PS0="\[\e[30;106m\]$tri\[\e[30m\] on: \d at:\A \e[96;40m\]$tri\[\033[0m\]\n"
PS1="\$([[ \$? != 0 ]] && echo \"\[\e[97;41m\] err \[\e[91;41m\]$irt\[\e[31;101m\]$irt\[\e[91;41m\]$irt\")\[\e[1;93;101m\] \u@\h \[\e[0;102;91m\]$tri\[\e[102;30m\] \w \[\e[102;34m\]$irt\[\e[44;93m\] \$(lsbytesum) Mb \[\e[40;34m\]$tri\[\e[0m\]\[\e[40m\]\n\[\033[0;37m\]\342\224\224\342\224\200▶ \[\033[0m\]"
#
While i can get the timestamp prompt $PS0 to work as is, i can't get the $PS4 to behave as i wish for that
i ran
bash -x to enable it, but the garbage was too much
11-16-2019, 11:22 AM
#4065
Member
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Rep:
Fresh install of Current:
clicky
3 members found this post helpful.
Tags
background , cwm , dwm , framebuffer , gnome , gui , i3 , ion3 , kde , monitor , musca , screenshot , tmux , wallpaper , xfce4 , xterm
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
LinuxQuestions.org
> Forums
> Linux Forums
> Linux - Distributions
> Slackware
All times are GMT -5. The time now is 06:35 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News