summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-11 21:26:24 +0200
committerGravatar Tom Willemsen2012-10-11 21:26:24 +0200
commit1b02e9a398dd4c5c9ff409e17540cb1e1a94b9f9 (patch)
tree8e58186f10ef940ef5cbbffba6f867650f78e5c4 /.config
parent9ec6ce7e745d4ba25ad7356fda8b2fd4bf6d24f0 (diff)
downloaddotfiles-1b02e9a398dd4c5c9ff409e17540cb1e1a94b9f9.tar.gz
dotfiles-1b02e9a398dd4c5c9ff409e17540cb1e1a94b9f9.zip
.config/clfswm/clfswmrc
Diffstat (limited to '.config')
-rw-r--r--.config/clfswm/clfswmrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/clfswm/clfswmrc b/.config/clfswm/clfswmrc
new file mode 100644
index 0000000..f69623e
--- /dev/null
+++ b/.config/clfswm/clfswmrc
@@ -0,0 +1,25 @@
+;; -*- mode: lisp; -*-
+(in-package :clfswm)
+
+(defun start-i3lock ()
+ "Run i3lock"
+ (do-shell "exec i3lock -c 000000"))
+
+(defun start-i3lock-2 ()
+ "Run i3lock in second mode"
+ (setf *second-mode-leave-function* 'start-i3lock)
+ (leave-second-mode))
+
+(defun my-bindings ()
+ (define-main-key ("l" :mod-1 :control) 'start-i3lock)
+ (define-second-key ("l" :mod-1 :control) 'start-i3lock-2))
+
+(add-hook *binding-hook* 'my-bindings)
+
+;; (defun my-init-hook ()
+;; (add-frame (create-frame :name "The Gimp" :x 0.6 :y 0 :w 0.3 :h 0.2) *root-frame*))
+
+;;y (add-hook *init-hook* 'my-init-hook)
+
+;;(setf *frame-background* "#252a2b")
+;;(setf *frame-foreground* "#eeeeec")