Skip to content

Commit

Permalink
Lock screen with slock (auto-lock enabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
XieConnect committed Aug 17, 2012
1 parent c0c9b9c commit c1d180c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
23 changes: 17 additions & 6 deletions README → README.md
Expand Up @@ -5,14 +5,25 @@ dwm is an extremely fast, small, and dynamic window manager for X. Current versi

Usage
-----
1. Follow the original installation guide (included below);
2. Create a dwm starter script (eg. dwm_start as attached) and move it to a directory in the PATH (eg. /usr/local/bin/). Make sure it's executable;
3. Create GDM login option (eg. dwm.desktop as attached) in directory /usr/share/xsessions/ ;
4. Install tools of your preference: sakura, xlock, wicd, etc.
5. To administrate Network using GUI, install wicd, and start it with wicd-client -n.
* Refer to original installation guide as necessary (included below);
* Customize config.h;
* (optional) Enable system tray by applying attached systray.diff patch;
* Create dwm starter script (eg. dwm_start as attached, with status-bar enabled) in your PATH (eg. /usr/local/bin/). Make sure it's executable;
* Create GDM login option (eg. dwm.desktop as attached) in directory /usr/share/xsessions/ ;
* Install tools of your preference (remember to modify your config.h)
- termianl: sakura
- screen lock: slock (or xlock, but it sometimes has problem in wake-up), xautolock (use in combination with slock to auto lock when inactive for certain time)
- GUI for network management: wicd (start it with wicd-client -n), etc.


Know Issues
-----
* No support for UTF-8 in title bar


Original README in dwm package below
-------

(The original document)
Requirements
------------
In order to build dwm you need the Xlib header files.
Expand Down
2 changes: 1 addition & 1 deletion config.h
Expand Up @@ -52,7 +52,7 @@ static const Layout layouts[] = {
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "sakura", NULL };
static const char *filemanager[] = { "pcmanfm", NULL };
static const char *lockscreen[] = { "xlock", NULL };
static const char *lockscreen[] = { "slock", NULL };
static const char *browsercmd[] = { "google-chrome", NULL };

static Key keys[] = {
Expand Down
3 changes: 3 additions & 0 deletions dwm_start
Expand Up @@ -3,4 +3,7 @@ while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m # Update time every minute
done &
# auto lock screen after n minutes of inactivity
# need to install xautolock, slock
xautolock -time 40 -locker slock &
exec dwm

0 comments on commit c1d180c

Please sign in to comment.