cem-utils

Random utilities
git clone git://git.ckyln.com/cem-utils.git
Log | Files | Refs | README

README.md (2206B)


      1 cem-utils
      2 =========
      3 
      4 These are some utilities that are not much
      5 use to anyone, but I use for my own. Most of
      6 them are just simpler re-implementations of 
      7 programs that are pretty unnecessary for most
      8 people. If i published them standalone, lots
      9 of people would get mad at me for just modifying
     10 some program that they like with really small
     11 changes.
     12 
     13 I really don't care about what you think about
     14 these. I just use them.
     15 
     16 Here are some explanations per utility. Right now
     17 there this is not a big repository, but I will be
     18 publishing other utilities, once I sort everything
     19 out.
     20 
     21 Here is the list of programs:
     22 
     23 * nap
     24 * nap-hooks
     25 * dwm-notify-send
     26 
     27 
     28 nap
     29 ---
     30 
     31 Literally Leah's zzz[1] with only suspend feature.
     32 It is compatible with zzz so it can read zzz.d
     33 Why don't I add hybernation stuff? Because my
     34 computer cannot hybernate.
     35 
     36 You see my point? I don't have a use for more 
     37 than half of the things zzz script does. So
     38 I deleted them.
     39 
     40 To install run, as root if necessary
     41 
     42     make -C nap install
     43 
     44 This will create the /etc/zzz.d directories and
     45 install nap
     46 
     47 
     48 nap-hooks
     49 ---------
     50 
     51 POSIX-compliant and simplified zzz-user-hooks[2]. 
     52 Does not support Wayland. Works with sbase-ubase.
     53 Is a shell script instead of a bash script. 32
     54 lines of shell code instead of 112.
     55 
     56 To install run, as root if necessary
     57 
     58     make -C nap-hooks install
     59 
     60 This will create /etc/zzz.d/resume/99-onresume and
     61 /etc/zzz.d/suspend/99-onsuspend
     62 
     63 You can add user hooks to ~/.onsuspend and
     64 ~/.onresume to get them working.
     65 
     66 
     67 dwm-notify-send
     68 ---------------
     69 
     70 A simple notify-send command to use dwm's bar for
     71 displaying notification. It must work with every bar
     72 that uses the WMNAME function, but I have only tested
     73 it on dwm bar.
     74 
     75 The delimiter ('-' by default) can be edited from the
     76 `NOTIFY_SEND_DELIMETER` environment variable. This way
     77 you can also make use of the second bar, if it exists.
     78 
     79 **Dependencies**
     80 
     81 * A bar with WMNAME function.
     82 * xsetroot
     83 * getopt
     84 * timeout
     85 * POSIX sh
     86 
     87 To install run, as root if necessary
     88 
     89     make -C dwm-notify-send install
     90 
     91 This will install `notify-send` and `kill-notification`
     92 to `/usr/local/bin`
     93 
     94 [1]: http://git.vuxu.org/runit-void/tree/zzz
     95 [2]: https://github.com/bahamas10/zzz-user-hooks