Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Ready to be installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchen902 committed Jan 15, 2017
1 parent 6ace8a3 commit ce7689f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
CC = gcc
CFLAGS = -std=gnu11 -O3 -Wall -Wextra -Wshadow -D_GNU_SOURCE
LDFLAGS = -lX11 -lXss -lconfuse
CFLAGS += -std=gnu11 -Wall -Wextra -Wshadow -D_GNU_SOURCE
LDFLAGS += -lX11 -lXss -lconfuse
TARGET = jautolock
OBJECTS = jautolock.o timecalc.o fifo.o

.PHONY : all clean
.PHONY : all clean install
all : $(TARGET)

$(TARGET) : $(OBJECTS)
Expand All @@ -16,3 +15,7 @@ $(OBJECTS):

clean :
$(RM) $(TARGET) *.o *.d

install :
install -m 755 -d $(DESTDIR)/usr/bin
install -m 755 jautolock $(DESTDIR)/usr/bin/jautolock
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# jautolock

## Description

jautolock will fire a program after specified time of user inactivity.
It is intended to replace xautolock.

## Development

jautolock has the following dependencies:
* confuse
* libxss

## Upstream

jautolock is developed at https://github.com/johnchen902/jautolock

## Compilation

Compiling is done with the usual make-line
```bash
make && sudo make install
```

## Configuration

Put your config at ~/.config/jautolock/config

Sample config:
```
action notify {
time = 50
command = "notify-send jautolock \"10 seconds before locking\""
}
action lock {
time = 60
command = "i3lock -nc 000000"
}
```

0 comments on commit ce7689f

Please sign in to comment.