add autolock stuff

master
Arne Schauf 9 years ago
parent b31677dbef
commit af6f3b9479
  1. 6
      autolock.sh
  2. 1
      init.sh
  3. 5
      qtile_config.py

@ -0,0 +1,6 @@
#!/bin/sh
exec xautolock -detectsleep \
-time 15 -locker "i3lock -c 000000" \
-notify 30 \
-notifier "notify-send -u critical -t 10000 -- 'LOCKING screen in 30 seconds'"

@ -5,6 +5,7 @@ ln -snf `pwd`/tmux.conf ~/.tmux.conf
ln -snf `pwd`/qtile_config.py ~/.config/qtile/config.py
ln -snf `pwd`/gitconfig ~/.gitconfig
ln -snf `pwd`/gitignore ~/.gitignore
ln -snf `pwd`/autolock.sh ~/.autolock.sh
echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

@ -25,10 +25,11 @@
# SOFTWARE.
import os
import subprocess
from libqtile.config import Key, Screen, Group, Drag, Click
from libqtile.command import lazy
from libqtile import layout, bar, widget
from libqtile import layout, bar, widget, hook
mod = "mod4"
@ -81,7 +82,7 @@ keys = [
lazy.layout.toggle_split()
),
Key([mod], "Return", lazy.spawn("terminator")),
Key(["control", "mod1"], "l", lazy.spawn("i3lock -c 000000")),
Key(["control", "mod1"], "l", lazy.spawn("xautolock -locknow")),
# Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout()),

Loading…
Cancel
Save