kompoth / micromess Goto Github PK
View Code? Open in Web Editor NEWA simple X pop-up
License: MIT License
A simple X pop-up
License: MIT License
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
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.
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
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:
umess
print "oe",umess
print "eo" right after that within the same run.If input lines come too close to each other in time, some of them may be lost and never printed.
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.
When the input read from stdin
contains multiple lines, use the last one instead of the first one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.