summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2017-09-06 19:40:17 -0500
committerBlaise Thompson <blaise@untzag.com>2017-09-06 19:40:17 -0500
commit455906b4eb242266ba279cb5fbbde22c2b7eb534 (patch)
tree7e5060e2425073a2f3a8e8fdb5a76466c8a27361
parentd9e224ba768e01db3b5b2cb0e47c4c4ea49a4723 (diff)
i3lock
-rw-r--r--i3/config15
-rwxr-xr-xi3/lock.sh6
-rwxr-xr-xlink.sh1
l---------password-store/password-store1
4 files changed, 17 insertions, 6 deletions
diff --git a/i3/config b/i3/config
index 30a582b..e70bf43 100644
--- a/i3/config
+++ b/i3/config
@@ -24,14 +24,17 @@ bindsym $mod+Return exec xterm
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
-bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -nb '#373b41' -sb '#373b41' -sf '#f0c674'"
-#bindsym $mod+d exec dmenu_run -nb '#fdf6e3' -nf '#586c75' -sf '#fdf6e3' -sb '#b58900'
+bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -i -nb '#373b41' -sb '#373b41' -sf '#f0c674'"
+
+# i3lock
+bindsym $mod+l exec ~/.config/i3/lock.sh
+exec xautolock -time 15 -locker '~/.config/i3/lock.sh'
# change focus
-bindsym $mod+j focus left
-bindsym $mod+k focus down
-bindsym $mod+l focus up
-bindsym $mod+semicolon focus right
+#bindsym $mod+j focus left
+#bindsym $mod+k focus down
+#bindsym $mod+l focus up
+#bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
diff --git a/i3/lock.sh b/i3/lock.sh
new file mode 100755
index 0000000..d60f0df
--- /dev/null
+++ b/i3/lock.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+scrot /tmp/screen.png
+convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
+[[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png
+i3lock -i /tmp/screen.png
+rm /tmp/screen.png
diff --git a/link.sh b/link.sh
index 832124e..77dc788 100755
--- a/link.sh
+++ b/link.sh
@@ -22,5 +22,6 @@ ln -sf ~/dotfiles/password-store ~/.password-store
# i3
ln -sf ~/dotfiles/i3/config ~/.config/i3/config
+ln -sf ~/dotfiles/i3/lock.sh ~/.config/i3/lock.sh
mkdir ~/.config/i3status
ln -sf ~/dotfiles/i3/i3status+config ~/.config/i3status/config
diff --git a/password-store/password-store b/password-store/password-store
new file mode 120000
index 0000000..3a9c8ff
--- /dev/null
+++ b/password-store/password-store
@@ -0,0 +1 @@
+/home/blaise/dotfiles/password-store \ No newline at end of file