๐Ÿ“ฆ da-x / xnotify

An Xorg-based program that shows an on-screen notification window with a simple text.

โ˜… 1 stars โ‘‚ 1 forks ๐Ÿ‘ 1 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/da-x/xnotify.git
HTTPS git clone https://github.com/da-x/xnotify.git
SSH git clone git@github.com:da-x/xnotify.git
CLI gh repo clone da-x/xnotify
Dan Aloni Dan Aloni bugfix: draw is needed if block is not provided 170146f 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ orig
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ LICENSE-APACHE
๐Ÿ“„ LICENSE-MIT
๐Ÿ“„ README.md
๐Ÿ“„ README.md

xnotify

An Xorg-based program that shows an on-screen notification window with a simple text.

Similar to osdcat, but with some different features.

Originally in Python (2003), rewritten in Rust (2021).

Some code based on Chris Duerr's leechbar.

Invocation example

Appear in the bottom-right corner of the screen, flash for 5 seconds and disappear:

echo -n "I'm a tomato: ๐Ÿ…" | xnotify -n "normal 30" -l -t 5 -p '%100,%100'

  • If right click happens, disappears sooner.
  • If dragged - cancels timeout.

Syntax

xnotify 0.1.0

USAGE:
    xnotify [FLAGS] [OPTIONS]

FLAGS:
    -l, --blink      Make the window flash its colors
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --blink-duration <blink-duration>    Duration of the blink [default: 0.25]
    -e, --blink-rate <blink-rate>            Rate of the blink (time between each color flip) [default: 0.05]
    -n, --font <font>                        Font to use (Pango font string, for example "normal 100" for big text)
    -x, --from-file <from-file>              Take text from file instead of standard input. If file is '-', takes from
                                             standard input
    -p, --position <position>                Initial screen position [default: %50,%50]
    -t, --timeout <timeout>                  Time to wait until message automatically gets off the screen