Permalink
Browse files

Add vim session selector

  • Loading branch information...
1 parent ea575d0 commit 93d7d4334e520bd6fbde138073714c79d9f65ad1 @frioux committed Aug 19, 2015
Showing with 5 additions and 0 deletions.
  1. +1 −0 awesome/rc.lua
  2. +3 −0 bin/showsession
  3. +1 −0 install.sh
View
@@ -467,6 +467,7 @@ globalkeys = awful.util.table.join(
awful.key({ modkey }, "d", function () awful.util.spawn('/home/frew/code/dotfiles/bin/showdm') end),
awful.key({ modkey }, "u", function () awful.util.spawn('/home/frew/code/dotfiles/bin/showuni') end),
+ awful.key({ modkey }, "v", function () awful.util.spawn('/home/frew/code/dotfiles/bin/showsession') end),
awful.key({ modkey }, "x",
function ()
View
@@ -0,0 +1,3 @@
+#!/bin/zsh
+
+exec gvim -S "$(find ~/.vvar/sessions -type f | dmenu -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -nb '#000000' -nf '#FFFFFF' -sb '#0066ff')"
View
@@ -69,6 +69,7 @@ cat smartcd-export | smartcd import
mkdir -p "$HOME/.vvar/undo";
mkdir -p "$HOME/.vvar/swap";
+mkdir -p "$HOME/.vvar/sessions";
# vim works differently on win32
case $OSTYPE in

0 comments on commit 93d7d43

Please sign in to comment.