Install Docker on Elementary OS 0.4.1 (Loki). GitHub Gist: instantly share code, notes, and snippets. Upgrade BIOS Dell Vostro 5470. Jadi selama sekitar sebulan ini laptop dell vostro 5470 yang biasa saya gunakan dirumah kena masalah. Saat proses mematikan laptop sering tidak bisa mati, dan berhenti di tulisan “Power down” dan harus mencet tombol power agak lama untuk benar-benar mematikannya. Laptop ini memang lumayan lama tidak digunakan.
Highly configurable prompt decoration for ZSH and Bash written in Python. It'sinspired by the Oh My ZSHBulletTrain theme.
Works well on Linux (Terminator, Konsole, Gnome Terminal) and Mac (Terminal,iTerm). It has no other dependencies than Python (v2.x or v3.x) and itsstandard libraries.
Table of contents
- Configuration
- Cars variables
Installation
On Arch Linux:
or on Mac via brew
:

or via PyPi:
or directly from GitHub:
In order to display all colors correctly, the terminal should use 256 colorscheme:
In order to display all characters of the prompt correctly, the shell shouldsupport UTF-8 and Nerd (or at leastPowerline) fonts shouldbe installed and set in the terminal application.
Usage
Configuration
The prompt (train) is assembled from several elements (cars). The look andbehavior of whole train as well as each car can be influenced by a set ofenvironment variables. Majority of the
Colors
The value of all _BG
and _FG
variables defines the background andforeground color of the particular element. The value of the color can bespecified in 3 ways:
Color name
Only a limited number of named colors is supported:
black
red
green
yellow
blue
magenta
cyan
light_gray
dark_gray
light_red
light_green
light_yellow
light_blue
light_magenta
light_cyan
white
default
(default color of the terminal)
Examples:
Color number

Color can also by expressed by a single number in the range from 0
to255
. The color of each number in that range is visible in the 256-colorlookup table onWikipedia. The namedcolors described above are the first 16 numbers from the lookup table.
Examples:
RGB number
Arbitrary color can be expressed in the form of RGB triplet.
Examples:
Formatting
Formatting is done via _FM
variables. The possible values are:
bold
Makes the text bold. Not all font characters have variant for bold formatting.
underline
Makes the text underlined.
blink
Makes the text to blink.
none
No formatting applied.
Example:
Train variables
PBT_CARS='Status, Os, Hostname, Dir, Git, Sign'
List of cars used in the train. The car name must be the same as the filenamewithout the extension in the
pbt/cars/
directory.To add a new car into the train, the whole variable must be redefined. Forexample in order to add the
Time
car into the default set of cars betweentheOs
andHostname
car, the variable should look like this:PBT_RCARS='Time'
The same like
PBT_CARS
but for the right hand side prompt.PBT_SEPARATOR=''
Character used to separate cars in the train.
PBT_RSEPARATOR=''
The same like
PBT_SEPARATOR
but for the righ hand side prompt.PBT_CAR_BG
Background color inherited by the top background color variable of every car.That allows to set the background color of all cars via single variable.
PBT_CAR_FG
Foreground color inherited by the top foreground color variable of every car.That allows to set the foreground color of all cars via single variable.
PBT_CAR_FM
Formatting inherited by the top formatting variable of every car. That allowsto set the formatting of all cars via single variable.
PBT_BEGINNING_BG='default'
Background color of the text shown at the beginning of the train.
PBT_BEGINNING_FG='default'
Foreground color of the text shown at the beginning of the train.
PBT_BEGINNING_FM='none'
Formatting of the text shown at the beginning of the train.
PBT_BEGINNING_TEXT='
Text shown at the beginning of the train.
PBT_SHELL
Indicates which shell is used. The value can be either
zsh
orbash
. Bydefault, the value is extracted from the$SHELL
environment variable. Setthis variable tobash
if your default shell is ZSH but you want to test PBTin Bash:PBT_DEBUG='0'
Shows more verbose output if some of the car modules cannot be imported.
Cars variables
Custom
car
The main purpose of this car is to provide the possibility to create car withcustom text.
PBT_CAR_CUSTOM_BG='yellow'
Background color of the car.
PBT_CAR_CUSTOM_FG='default'
Foreground color of the car.
PBT_CAR_CUSTOM_FM='none'
Formatting of the car.
PBT_CAR_CUSTOM_FORMAT=' {{ Text }} '
Format of the car.
PBT_CAR_CUSTOM_TEXT_BG
Background color of the
{{ Text }}
element.PBT_CAR_CUSTOM_TEXT_FG
Foreground color of the
{{ Text }}
element.PBT_CAR_CUSTOM_TEXT_FM
Formatting of the
{{ Text }}
element.PBT_CAR_CUSTOM_TEXT_TEXT='?'
Text content of the
{{ Text }}
element.PBT_CAR_CUSTOM_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_CUSTOM_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_CUSTOM_SEP
Custom separator string for this car.

Dir
car
Car that displays current directory name.
PBT_CAR_DIR_BG='blue'
Background color of the car.
PBT_CAR_DIR_FG='light_gray'
Foreground color of the car.
PBT_CAR_DIR_FM='none'
Formatting of the car.
PBT_CAR_DIR_FORMAT=' {{ Dir }} '
Format of the car.
PBT_CAR_DIR_DIR_BG
Background color of the
{{ Dir }}
element.PBT_CAR_DIR_DIR_FG
Foreground color of the
{{ Dir }}
element.PBT_CAR_DIR_DIR_FM
Formatting of the
{{ Dir }}
element.PBT_CAR_DIR_DIR_TEXT
Text content of the
{{ Dir }}
element. The directory name.PBT_CAR_DIR_DIRSEP
OS-default character used to separate directories.
PBT_CAR_DIR_HOMESIGN='~'
Character which represents the user's home directory. If set to emptystring, full home directory path is used instead.
PBT_CAR_DIR_DEPTH='1'
Number of directories to show.
PBT_CAR_DIR_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_DIR_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_DIR_SEP
Custom separator string for this car.
ExecTime
car
Car that displays how long each shell command run.
PBT_CAR_EXECTIME_BG='light_gray'
Background color of the car.
PBT_CAR_EXECTIME_FG='black'
Foreground color of the car.
PBT_CAR_EXECTIME_FM='none'
Formatting of the car.
PBT_CAR_EXECTIME_FORMAT=' {{ Time }} '
Format of the car.
PBT_CAR_EXECTIME_TIME_BG
Background color of the
{{ Time }}
element.PBT_CAR_EXECTIME_TIME_FG
Foreground color of the
{{ Time }}
element.PBT_CAR_EXECTIME_TIME_FM
Formatting of the
{{ Time }}
element.PBT_CAR_EXECTIME_TIME_TEXT
Text content of the
{{ Time }}
element. The execution time.PBT_CAR_EXECTIME_DIRSEP
OS-default character used to separate directories.
PBT_CAR_EXECTIME_PRECISION='0'
Sub-second precision to show.
PBT_CAR_EXECTIME_SECS
The number of seconds the command run in shell. This variable is defined inthe source file as shown bellow.
PBT_CAR_EXECTIME_BELL='0'
Sound console bell if the executed command exceeds specified number ofseconds. Value set to
0
disables the bell (default).PBT_CAR_EXECTIME_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_EXECTIME_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_EXECTIME_SEP
Custom separator string for this car.
In order to allow this car to calculate the execution time, the following mustbe loaded in the shell:
Git
car
Car that displays information about a local Git repository. This car isdisplayed only if the current directory is a Git repository.
PBT_CAR_GIT_BG='light_gray'
Background color of the car.
PBT_CAR_GIT_FG='black'
Foreground color of the car.
PBT_CAR_GIT_FM='none'
Formatting of the car.
PBT_CAR_GIT_FORMAT=' {{ Icon }} {{ Head }} {{ Status }}{{ Ahead }}{{ Behind }} '
Format of the car.
PBT_CAR_GIT_ICON_BG
Background color of the
{{ Icon }}
element.PBT_CAR_GIT_ICON_FG
Foreground color of the
{{ Icon }}
element.PBT_CAR_GIT_ICON_FM
Formatting of the
{{ Icon }}
element.PBT_CAR_GIT_ICON_TEXT=''
Text content of the
{{ Icon }}
element.PBT_CAR_GIT_HEAD_BG
Background color of the
{{ Head }}
element.PBT_CAR_GIT_HEAD_FG
Foreground color of the
{{ Head }}
element.PBT_CAR_GIT_HEAD_FM
Formatting of the
{{ Head }}
element.PBT_CAR_GIT_HEAD_TEXT
Text content of the
{{ Head }}
element. The branch or tag name or thecommit ID.PBT_CAR_GIT_STATUS_BG
Background color of the
{{ Status }}
element.PBT_CAR_GIT_STATUS_FG
Foreground color of the
{{ Status }}
element.PBT_CAR_GIT_STATUS_FM
Formatting of the
{{ Status }}
element.PBT_CAR_GIT_STATUS_FORMAT
Format of the
{{ Status }}
element. The content is either{{ Dirty }}
or{{ Clean }}
depending on the state of the local Git repository.PBT_CAR_GIT_DIRTY_BG
Background color of the
{{ Dirty }}
element.PBT_CAR_GIT_DIRTY_FG='red'
Foreground color of the
{{ Dirty }}
element.PBT_CAR_GIT_DIRTY_FM
Formatting of the
{{ Dirty }}
element.PBT_CAR_GIT_DIRTY_TEXT='✘'
Text content of the
{{ Dirty }}
element.PBT_CAR_GIT_CLEAN_BG
Background color of the
{{ Clean }}
element.PBT_CAR_GIT_CLEAN_FG='green'
Foreground color of the
{{ Clean }}
element.PBT_CAR_GIT_CLEAN_FM
Formatting of the
{{ Clean }}
element.PBT_CAR_GIT_CLEAN_TEXT='✔'
Text content of the
{{ Clean }}
element.PBT_CAR_GIT_AHEAD_BG
Background color of the
{{ Ahead }}
element.PBT_CAR_GIT_AHEAD_FG
Foreground color of the
{{ Ahead }}
element.PBT_CAR_GIT_AHEAD_FM
Formatting of the
{{ Ahead }}
element.PBT_CAR_GIT_AHEAD_TEXT=' ⬆'
Text content of the
{{ Ahead }}
element.PBT_CAR_GIT_BEHIND_BG
Background color of the
{{ Behind }}
element.PBT_CAR_GIT_BEHIND_FG
Foreground color of the
{{ Behind }}
element.PBT_CAR_GIT_BEHIND_FM
Formatting of the
{{ Behind }}
element.PBT_CAR_GIT_BEHIND_TEXT=' ⬇'
Text content of the
{{ Behind }}
element.PBT_CAR_GIT_DISPLAY
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_GIT_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_GIT_SEP
Custom separator string for this car.
Hostname
car
Car that displays username of the currently logged user and the hostname of thelocal machine.
PBT_CAR_HOSTNAME_BG='dark_gray'
Background color of the car.
PBT_CAR_HOSTNAME_FG='252'
Foreground color of the car.
PBT_CAR_HOSTNAME_FM='none'
Formatting of the car.
PBT_CAR_HOSTNAME_FORMAT=' {{ UserHost }} '
Format of the car.
PBT_CAR_HOSTNAME_USERHOST_BG
Background color of the
{{ UserHost }}
element.PBT_CAR_HOSTNAME_USERHOST_FG
Foreground color of the
{{ UserHost }}
element.PBT_CAR_HOSTNAME_USERHOST_FM
Formatting of the
{{ UserHost }}
element.PBT_CAR_HOSTNAME_USERHOST_FORMAT='{{ User }}@{{ Host }}'
Format of the
{{ UserHost }}
element.PBT_CAR_HOSTNAME_USER_BG
Background color of the
{{ User }}
element.PBT_CAR_HOSTNAME_USER_FG
Foreground color of the
{{ User }}
element.PBT_CAR_HOSTNAME_USER_FM
Formatting of the
{{ User }}
element.PBT_CAR_HOSTNAME_USER_TEXT
Text content of the
{{ User }}
element. The user name.PBT_CAR_HOSTNAME_HOST_BG
Background color of the
{{ Host }}
element.PBT_CAR_HOSTNAME_HOST_FG
Foreground color of the
{{ Host }}
element.PBT_CAR_HOSTNAME_HOST_FM
Formatting of the
{{ Host }}
element.PBT_CAR_HOSTNAME_HOST_TEXT
Text content of the
{{ Host }}
element. The host name.PBT_CAR_HOSTNAME_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_HOSTNAME_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_HOSTNAME_SEP
Custom separator string for this car.
Os
car
Car that displays icon of the operating system.
PBT_CAR_OS_BG='235'
Background color of the car.
PBT_CAR_OS_FG='white'
Foreground color of the car.
PBT_CAR_OS_FM='none'
Formatting of the car.
PBT_CAR_OS_FORMAT=' {{ Symbol }} '
Format of the car.
PBT_CAR_OS_SYMBOL_BG
Background color of the
{{ Symbol }}
element.PBT_CAR_OS_SYMBOL_FG
Foreground color of the
{{ Symbol }}
element.PBT_CAR_OS_SYMBOL_FM
Formatting of the
{{ Symbol }}
element.PBT_CAR_OS_SYMBOL_TEXT
Text content of the
{{ Symbol }}
element.PBT_CAR_OS_NAME
The name of the symbol to display. Default value is selected by the systemthe shell runs at. Possible names and their icons are:
arch
centos
coreos
darwin
debian
docker
elementary
fedora
freebsd
gentoo
linux
linuxmint
mageia
mandriva
opensuse
raspbian
redhat
sabayon
slackware
ubuntu
windows
Example:
PBT_CAR_OS_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_OS_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_OS_SEP
Custom separator string for this car.
PyVirtEnv
car
Car that displays Python Virtual Environment name. This car is displayed onlyif the Python Virtual Environment is activated. The activation script usuallyprepends the shell prompt by the Virtual Environment name by default. In orderto disable it, the following environment variable must be set:
Variables used by the car:
PBT_CAR_PYVIRTENV_BG='222'
Background color of the car.
PBT_CAR_PYVIRTENV_FG='black'
Foreground color of the car.
PBT_CAR_PYVIRTENV_FM='none'
Formatting of the car.
PBT_CAR_PYVIRTENV_FORMAT=' {{ Icon }} {{ Name }} '
Format of the car.
PBT_CAR_PYVIRTENV_ICON_BG
Background color of the
{{ Icon }}
element.PBT_CAR_PYVIRTENV_ICON_FG
Foreground color of the
{{ Icon }}
element.PBT_CAR_PYVIRTENV_ICON_FM
Formatting of the
{{ Icon }}
element.PBT_CAR_PYVIRTENV_ICON_TEXT
Text content of the
{{ Icon }}
element.PBT_CAR_PYVIRTENV_NAME_BG
Background color of the
{{ Name }}
element.PBT_CAR_PYVIRTENV_NAME_FG='33'
Foreground color of the
{{ NAME }}
element.PBT_CAR_PYVIRTENV_NAME_FM
Formatting of the
{{ Name }}
element.PBT_CAR_PYVIRTENV_NAME_TEXT
The name of the Python Virtual Environment deducted from the
VIRTUAL_ENV
environment variable.PBT_CAR_PYVIRTENV_DISPLAY
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_PYVIRTENV_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_PYVIRTENV_SEP
Custom separator string for this car.
Sign
car
Car that displays prompt character for the admin and user at the end of thetrain.
PBT_CAR_SIGN_BG='default'
Background color of the car.
PBT_CAR_SIGN_FG='default'
Foreground color of the car.
PBT_CAR_SIGN_FM='none'
Formatting of the car.
PBT_CAR_SIGN_FORMAT=' {{ Symbol }} '
Format of the car.
PBT_CAR_SIGN_SYMBOL_BG
Background color of the
{{ Symbol }}
element.PBT_CAR_SIGN_SYMBOL_FG
Foreground color of the
{{ Symbol }}
element.PBT_CAR_SIGN_SYMBOL_FM='bold'
Formatting of the
{{ Symbol }}
element.PBT_CAR_SIGN_SYMBOL_FORMAT
Format of the
{{ Symbol }}
element. The format is either{{ Admin }}
ifthe UID is 0 or{{ User }}
if the UID is not 0.PBT_CAR_SIGN_ADMIN_BG
Background color of the
{{ Admin }}
element.PBT_CAR_SIGN_ADMIN_FG='red'
Foreground color of the
{{ Admin }}
element.PBT_CAR_SIGN_ADMIN_FM
Formatting of the
{{ Admin }}
element.PBT_CAR_SIGN_ADMIN_TEXT='#'
Text content of the
{{ Admin }}
element.PBT_CAR_SIGN_USER_BG
Background color of the
{{ User }}
element.PBT_CAR_SIGN_USER_FG='light_green'
Foreground color of the
{{ User }}
element.PBT_CAR_SIGN_USER_FM
Formatting of the
{{ User }}
element.PBT_CAR_SIGN_USER_TEXT='$'
Text content of the
{{ User }}
element. The user name.PBT_CAR_SIGN_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_SIGN_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_SIGN_SEP
Custom separator string for this car.
Status
car
Car that visualizes return code of every command. By default, this car isdisplayed only when the return code is non-zero. If you want to display it evenwhen if the return code is zere, set the following variable:
Variables used by the car:
PBT_CAR_STATUS_BG
Background color of the car. It's either
PBT_CAR_STATUS_OK_BG
if the lastcommand returned0
return code otherwise thePBT_CAR_STATUS_ERROR_BG
isused.PBT_CAR_STATUS_FG='default'
Foreground color of the car. It's either
PBT_CAR_STATUS_OK_FG
if the lastcommand returned0
return code otherwise thePBT_CAR_STATUS_ERROR_FG
isused.PBT_CAR_STATUS_FM='none'
Formatting of the car. It's either
PBT_CAR_STATUS_OK_FM
if the last commandreturned0
return code otherwise thePBT_CAR_STATUS_ERROR_FM
is used.PBT_CAR_STATUS_FORMAT=' {{ Symbol }} '
Format of the car. This can be changed to contain also the value of thereturn code:
PBT_CAR_STATUS_SYMBOL_BG
Background color of the
{{ Symbol }}
element.PBT_CAR_STATUS_SYMBOL_FG
Foreground color of the
{{ Symbol }}
element.PBT_CAR_STATUS_SYMBOL_FM='bold'
Formatting of the
{{ Symbol }}
element.PBT_CAR_STATUS_SYMBOL_FORMAT
Format of the
{{ Symbol }}
element. The format is either{{ Error }}
ifthe last command returned non zero return code otherwise{{ User }}
isused.PBT_CAR_STATUS_CODE_BG='red'
Background color of the
{{ Code }}
element.PBT_CAR_STATUS_CODE_FG='light_gray'
Foreground color of the
{{ Code }}
element.PBT_CAR_STATUS_CODE_FM='none'
Formatting of the
{{ Code }}
element.PBT_CAR_STATUS_CODE_TEXT
Text content of the
{{ Code }}
element. The return code.PBT_CAR_STATUS_ERROR_BG='red'
Background color of the
{{ Error }}
element.PBT_CAR_STATUS_ERROR_FG='light_gray'
Foreground color of the
{{ Error }}
element.PBT_CAR_STATUS_ERROR_FM='none'
Formatting of the
{{ Error }}
element.PBT_CAR_STATUS_ERROR_TEXT='✘'
Text content of the
{{ Error }}
element.PBT_CAR_STATUS_OK_BG='green'
Background color of the
{{ Ok }}
element.PBT_CAR_STATUS_OK_FG='light_gray'
Foreground color of the
{{ Ok }}
element.PBT_CAR_STATUS_OK_FM='none'
Formatting of the
{{ Ok }}
element.PBT_CAR_STATUS_OK_TEXT='✔'
Text content of the
{{ Ok }}
element.PBT_CAR_STATUS_DISPLAY
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_STATUS_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_STATUS_SEP
Custom separator string for this car.
Time
car
Car that displays current date and time.
PBT_CAR_TIME_BG='light_blue'
Background color of the car.
PBT_CAR_TIME_FG='light_gray'
Foreground color of the car.
PBT_CAR_TIME_FM='none'
Formatting of the car.
PBT_CAR_TIME_FORMAT=' {{ DateTime }} '
Format of the car.
PBT_CAR_TIME_DATETIME_BG
Background color of the
{{ DateTime }}
element.PBT_CAR_TIME_DATETIME_FG
Foreground color of the
{{ DateTime }}
element.PBT_CAR_TIME_DATETIME_FM
Formatting of the
{{ DateTime }}
element.PBT_CAR_TIME_DATETIME_FORMAT='{{ Date }} {{ Time }}'
Format of the
{{ DateTime }}
element.PBT_CAR_TIME_DATE_BG
Background color of the
{{ Date }}
element.PBT_CAR_TIME_DATE_FG
Foreground color of the
{{ Date }}
element.PBT_CAR_TIME_DATE_FM
Formatting of the
{{ Date }}
element.PBT_CAR_TIME_DATE_FORMAT='%a %d %b'
Format of the
{{ Date }}
element. The format is using sequences known fromthedate
command.PBT_CAR_TIME_TIME_BG
Background color of the
{{ Host }}
element.PBT_CAR_TIME_TIME_FG='light_yellow'
Foreground color of the
{{ Host }}
element.PBT_CAR_TIME_TIME_FM
Formatting of the
{{ Host }}
element.PBT_CAR_TIME_TIME_FORMAT='%H:%M:%S'
Text content of the
{{ Host }}
element. The format is using sequences knownfrom thedate
command.PBT_CAR_TIME_DISPLAY='1'
Whether to display this car if it's in the list of cars (
PBT_CARS
).PBT_CAR_TIME_WRAP='0'
Whether to wrap the prompt line in front of this car.
PBT_CAR_TIME_SEP
Custom separator string for this car.

Compilation
It's also possible to compile the script into a binary executable file whichshould make it run about 10-20% faster. For that we will need a tool calledfreeze
which we can find in the Pythonsource tree:
Then we can compile it:
That will create a binary file pbt
which can be used in the PROMPT
environment variable instead of the Python script as shown above.
The compilation process sometimes incorrectly recognizes where Python's librariesare exactly installed. Then we can get errors like this:
and
That can be solved by symlinks:
and
Author
Docker Elementary Os X
Jiri Tyr

License
MIT
Solus Os
While installing docker, I decided I needed to write some notifications to ensure the configuration works. See Docker. I started with a TCL/TK script, which these days looks a bit old school, and writing the packer was (& remains) difficult. Virtualbox reports its status on Ubuntu via a very pretty interface, prettier than Apple script anyway, so I thought I’d have a lock.
The command is notify-send
. This is part of the desktop, obviously not needed if running headless.
- http://manpages.ubuntu.com/manpages/trusty/man1/notify-send.1.html – the man page
- http://www.linuxjournal.com/content/tech-tip-get-notifications-your-scripts-notify-send – some examples
- http://ubuntuforums.org/showthread.php?t=1411620 – an ubuntu forums thread with some tips
It comes with some standard icons, somewhere in the /usr/share/icons directories, allegedly, I made myself a docker icon, .png 32×32 to decorate the message.
I found it on google, and replaced the white background with transparency. It’s not ideal, maybe I should find something better. Here’s a screen shot,
Docker Elementary Os
I plan to put this in my .profile; or somewhere else if that doesn’t work on a graphic login. This article on stackexchange addresses how to run a script on GNOME login.
I came across another use case and needed it to run on an elementary OS systems. The version of notification used by elementary seems to have some differences. I installed notify-osd
and then copied the icon I wanted to use to /usr/share/icons
. The icon is then referred to by its file name prefix.
Docker Elementary Os 10
Installing on Raspbian; installing notify-send on Raspbian. Stranger than expected.