GithubHelp home page GithubHelp logo

micromess's Introduction

micromess - a simple X pop-up 
=============================

umess spawns a small pop-up window with dimensions adjusted to its contents. Its
main aim is to get rid of bars and panels usage as they waste too much place,
distract user and, on the other hand, fail to get user's attention in urgent
cases, such as critical battery discharge.


Installation
------------
Edit the first lines of the Makefile to fit your preferences and run:

    $ make install

Arch Linux users can get umess from AUR:
https://aur.archlinux.org/packages/umess-git
Great thanks to RaafatTurki, who maintains this package.


Basic usage
-----------
Following spawns a pop-up message in the right-bottom corner of active monitor, 
that would stay alive for 2 seconds: 

    $ (printf "onelinestr\n"; sleep 2) | umess -rb

User can specify colors, font (in Xft notation) and pop-up position. By default it 
appears in the center of the screen. See manpage for more options.


Examples
--------
Basic indicators (bash):
https://github.com/kompoth/dotfiles/blob/master/scripts/uinfo

Low battery warning (perl):
https://github.com/kompoth/dotfiles/blob/master/scripts/ubatloop

micromess's People

Contributors

kompoth avatar

Stargazers

Raafat Turki avatar

Watchers

 avatar

micromess's Issues

Archlinux packaging

Having this on the aur (and possibly on main when ironed out) would be great.

I have already packaged it for my personal repo here.

I already have experience packaging on the aur so if you don't want to maintain it there I'll gladly do it.

missing xproperties

1st let me open with saying that this piece of software bridged the gap that separated me from a barless setup, nice work.

anyways, consider adding in a window and/or a class name on the popup window.
for instance I wanted to disable picom shadows but there is no way to target the popup window (xprop returns nothing).

cheers

Background not redrawn if geometry doesn't change

If some input line and the next one have exactly the same width and height, the contents of the latter are printed over the previous line making the text overlay the existing one.

Steps to reproduce:

  1. Choose a font like Noto Sans, DejaVu Sans, Times, Iosevka, Terminus, etc. and not like Lobster,
  2. Make umess print "oe",
  3. Make umess print "eo" right after that within the same run.

Input lines lost if updated very fast

Overview

If input lines come too close to each other in time, some of them may be lost and never printed.

Steps to reproduce

Run

{ for line in 'first line' 'second line' 'third line'; do
        echo $line
        sleep .01
done; sleep 1; } | umess

One might need to reduce the intermediate sleep time or remove it altogether to see the effect.

Possible solution

When the input read from stdin contains multiple lines, use the last one instead of the first one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.