summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.xbindkeysrc.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm
index d1c9479..4567611 100644
--- a/.xbindkeysrc.scm
+++ b/.xbindkeysrc.scm
@@ -90,9 +90,11 @@ the command."
(string-append "dmenu_pick -p 'Run:' " dmenu-args)))
(prog (read-line file)))
(close-port file)
- (switch-to-tag prog)
- (run-command prog))
- (reset-main-binding))
+ (if (string? prog)
+ (begin
+ (switch-to-tag prog)
+ (run-command prog)))
+ (reset-main-binding)))
(define (kill-tag)
"Kill a selected tag"