Skip to content

Commit

Permalink
readme: Changed page layout of examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Venries committed May 6, 2017
1 parent 7de94de commit f9c28d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Usage: xpub [OPTION]...

# Examples


* From terminal (*sudo* is required):
```bash
$ xpub
TTY=tty1
Expand All @@ -50,7 +52,7 @@ DISPLAY=:0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1022/bus
```
### From Udev rules :
* From Udev rules:
```bash
IMPORT{program}="/usr/bin/xpub", \
Expand All @@ -59,13 +61,13 @@ RUN+="/bin/su $env{XUSER} -c '/usr/bin/notify-send Hello'"
After editing your rules, you may need to run `udevadm control --reload-rules`.
### From command-line as *root* :
* From command-line as **root**:
```bash
$ export $(xpub) ; su "${XUSER}" -c 'notify-send Hello'
```
### From Shell scripts :
* From Shell scripts:
```bash
xenv=$(xpub 2>/tmp/xpub.log)
Expand Down

0 comments on commit f9c28d1

Please sign in to comment.