LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2019, 10:10 AM   #4051
IndiX
LQ Newbie
 
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25

Rep: Reputation: 24

Quote:
Originally Posted by SCerovec View Post
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.
Old 11-14-2019, 10:15 AM   #4052
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Looks great with $triangle!
I wonder how your i3-block config looks like to have those as well... ;-)
 
1 members found this post helpful.
Old 11-14-2019, 10:51 AM   #4053
IndiX
LQ Newbie
 
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25

Rep: Reputation: 24
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\]'
Click image for larger version

Name:	2019-11-14-180434_1920x1200_scrot.png
Views:	157
Size:	122.2 KB
ID:	31851


Quote:
Originally Posted by Tonus View Post
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.
Old 11-14-2019, 11:15 AM   #4054
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Arrow

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...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-11-14_18-12-09.png
Views:	163
Size:	41.3 KB
ID:	31852   Click image for larger version

Name:	Screenshot_2019-11-14_18-13-40.png
Views:	85
Size:	32.6 KB
ID:	31853  
 
3 members found this post helpful.
Old 11-14-2019, 11:30 AM   #4055
IndiX
LQ Newbie
 
Registered: Sep 2010
Location: Barcelona
Distribution: Slackware64 -current
Posts: 25

Rep: Reputation: 24
Quote:
Originally Posted by SCerovec View Post
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!

Click image for larger version

Name:	2019-11-14-210323_1920x1200_scrot.png
Views:	95
Size:	41.9 KB
ID:	31855

Last edited by IndiX; 11-14-2019 at 02:05 PM.
 
2 members found this post helpful.
Old 11-14-2019, 11:32 AM   #4056
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Wow, very nice prompt setups here! I'm happy this thread got so active!
 
2 members found this post helpful.
Old 11-14-2019, 02:19 PM   #4057
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Our prompetition turned into a prompt craze?

Just you wait until the less frequent members come across this (dumpster fire?)
 
Old 11-14-2019, 02:36 PM   #4058
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Talking

Quote:
Originally Posted by IndiX View Post
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).
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-11-14_21-31-25.png
Views:	107
Size:	33.5 KB
ID:	31856  
 
2 members found this post helpful.
Old 11-14-2019, 07:14 PM   #4059
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by IndiX View Post
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....
Attached Thumbnails
Click image for larger version

Name:	2019-11-15-015626_1920x1080_scrot.jpg
Views:	156
Size:	258.0 KB
ID:	31861  
 
2 members found this post helpful.
Old 11-15-2019, 03:31 AM   #4060
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Quote:
Originally Posted by Tonus View Post
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!
 
Old 11-15-2019, 01:40 PM   #4061
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
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.
Attached Thumbnails
Click image for larger version

Name:	ddk9hf6-399f4de4-b54b-4713-9c45-ef0839a37b10.jpg
Views:	143
Size:	230.1 KB
ID:	31866  

Last edited by Bindestreck; 11-16-2019 at 04:29 AM.
 
4 members found this post helpful.
Old 11-16-2019, 06:58 AM   #4062
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
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:
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-11-16_13-55-17.png
Views:	85
Size:	25.5 KB
ID:	31872  
 
4 members found this post helpful.
Old 11-16-2019, 09:24 AM   #4063
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
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.
 
Old 11-16-2019, 10:47 AM   #4064
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Quote:
Originally Posted by Paulo2 View Post
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
 
Old 11-16-2019, 11:22 AM   #4065
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Fresh install of Current:
clicky
 
3 members found this post helpful.
  


Reply

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Desktop on Slackware? darkhatter Slackware 3 10-10-2006 12:26 PM
Slackware 10.0 with NO Desktop NiPP Linux - Newbie 2 01-02-2006 10:43 AM
3d desktop on Slackware k1ll3r_x Linux - Software 1 09-20-2005 10:47 PM
Desktop Slackware s0no Slackware 5 12-04-2004 11:20 AM
I can't get my desktop in Slackware 10 DraGoNsLaYeR Linux - Newbie 1 06-27-2004 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration