aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: b522dd5a6bc3549a4aeeac0372dc6d27fe69fe37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
dwmclock
========

Show the time and current battery charge in the X root window name

Requirements
------------

- libX11


Installation
------------

Copy `config.def.mk` to `config.mk` and edit it to match your setup.

Compile it:

	make

Optionally also compile a version that prints time to stdout instead of updating the X root window name:

	make dwmclock-print

Install dwmclock (needs to be run as root if installing to `/usr` or `/usr/local`):

	make install

Install dwmclock to `~/bin`:

	make DESTDIR=$HOME PREFIX= install

Install dwmclock to `~/.local/bin`:

	make DESTDIR=$HOME PREFIX=/.local install

Usage
-----

Amp it off in your `~/.xinitrc`:

	dwmclock &

Use it in Sway bar config:

	status_command dwmclock-print