An open API service indexing awesome lists of open source software.

https://github.com/cemkeylan/cem-utils

Some utilities I have for my own use.
https://github.com/cemkeylan/cem-utils

Last synced: 12 months ago
JSON representation

Some utilities I have for my own use.

Awesome Lists containing this project

README

          

cem-utils
=========

These are some utilities that are not much
use to anyone, but I use for my own. Most of
them are just simpler re-implementations of
programs that are pretty unnecessary for most
people. If i published them standalone, lots
of people would get mad at me for just modifying
some program that they like with really small
changes.

I really don't care about what you think about
these. I just use them.

Here are some explanations per utility. Right now
there this is not a big repository, but I will be
publishing other utilities, once I sort everything
out.

Not all of my utilities are here at the moment. Some
are on my main computer that I cannot reach at the
moment. Some live on my dotfiles (I will be updating
my dotfiles for Carbs Linux someday I promise). I will
also be merging my useless utilities that are currently
on individual repositories here.

Below are explanations per utility and here is the
small list of programs:

* nap
* nap-hooks
* dwm-notify-send

nap
---

Literally Leah's [zzz] with only suspend feature.
It is compatible with zzz so it can read zzz.d
Why don't I add hybernation stuff? Because my
computer cannot hybernate.

[zzz]: http://git.vuxu.org/runit-void/tree/zzz

You see my point? I don't have a use for more
than half of the things zzz script does. So
I deleted them.

To install run, as root if necessary

make -C nap install

This will create the /etc/zzz.d directories and
install nap

nap-hooks
---------

POSIX-compliant and simplified [zzz-user-hooks].
Does not support Wayland. Works with sbase-ubase.
Is a shell script instead of a bash script. 32
lines of shell code instead of 112.

[zzz-user-hooks]: https://github.com/bahamas10/zzz-user-hooks

To install run, as root if necessary

make -C nap-hooks install

This will create /etc/zzz.d/resume/99-onresume and
/etc/zzz.d/suspend/99-onsuspend

You can add user hooks to ~/.onsuspend and
~/.onresume to get them working.

dwm-notify-send
---------------

A simple notify-send command to use dwm's bar for
displaying notification. It must work with every bar
that uses the WMNAME function, but I have only tested
it on dwm bar.

The delimiter ('-' by default) can be edited from the
`NOTIFY_SEND_DELIMETER` environment variable. This way
you can also make use of the second bar, if it exists.

**Dependencies**

* A bar with WMNAME function.
* xsetroot
* getopt
* timeout
* POSIX sh

To install run, as root if necessary

make -C dwm-notify-send install

This will install `notify-send` and `kill-notification`
to `/usr/local/bin`