LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   This is my Slackware desktop... (https://www.linuxquestions.org/questions/slackware-14/this-is-my-slackware-desktop-725754/)

IndiX 11-14-2019 10:10 AM

Quote:

Originally Posted by SCerovec (Post 6057689)
i found this:

HTH
:hattip:

Thank you, I'll post the new version with this arrow and some other minor changes when I'm at home.

Tonus 11-14-2019 10:15 AM

Looks great with $triangle!
I wonder how your i3-block config looks like to have those as well... ;-)

IndiX 11-14-2019 10:51 AM

Another prompt with triangle
 
1 Attachment(s)
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\]'
Attachment 31851


Quote:

Originally Posted by Tonus (Post 6057697)
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!

SCerovec 11-14-2019 11:15 AM

2 Attachment(s)
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...

IndiX 11-14-2019 11:30 AM

1 Attachment(s)
Quote:

Originally Posted by SCerovec (Post 6057734)
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!

Attachment 31855

Bindestreck 11-14-2019 11:32 AM

Wow, very nice prompt setups here! I'm happy this thread got so active!

SCerovec 11-14-2019 02:19 PM

Our prompetition turned into a prompt craze?

Just you wait until the less frequent members come across this (dumpster fire?) :D

SCerovec 11-14-2019 02:36 PM

1 Attachment(s)
Quote:

Originally Posted by IndiX (Post 6057744)
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).

Tonus 11-14-2019 07:14 PM

1 Attachment(s)
Quote:

Originally Posted by IndiX (Post 6057715)
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....

SCerovec 11-15-2019 03:31 AM

Quote:

Originally Posted by Tonus (Post 6057892)
Argh! I wish I had more time to dig into this!

Still got inspired by all these prompts, so....

:eek:
that's some mean prompt you have!

Bindestreck 11-15-2019 01:40 PM

1 Attachment(s)
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.

SCerovec 11-16-2019 06:58 AM

1 Attachment(s)
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:

Paulo2 11-16-2019 09:24 AM

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.

SCerovec 11-16-2019 10:47 AM

Quote:

Originally Posted by Paulo2 (Post 6058507)
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 :scratch:
i ran bash -x to enable it, but the garbage was too much :confused:

jr_bob_dobbs 11-16-2019 11:22 AM

Fresh install of Current:
clicky


All times are GMT -5. The time now is 03:13 PM.