Locking things

This commit is contained in:
Geoffrey Frogeye 2016-11-23 20:13:26 +01:00
parent b536af829e
commit f14cbe7f2c
3 changed files with 9 additions and 11 deletions

View file

@ -1,8 +0,0 @@
#!/bin/bash
i3-msg workspace Lock
imgpath=$(mktemp).png
scrot "$imgpath"
convert "$imgpath" -blur 0x5 "$imgpath"
i3lock -f -i "$imgpath"
i3-msg workspace back_and_forth
rm "$imgpath"

View file

@ -299,7 +299,7 @@ mode "Resize" {
bindsym $mod+r mode "Resize"
set $background exec --no-startup-id feh --bg-scale $HOME/.config/i3/bg.jpg
set $background exec --no-startup-id feh --bg-fill $HOME/.config/i3/bg.jpg
bindsym $mod+Shift+a $background
set $mode_screen_select [V] VGA1 [H] HDMI1
mode "$mode_screen_select" {

View file

@ -1,6 +1,12 @@
#!/bin/sh
#!/usr/bin/env sh
dm-tool lock
if [ $? -ne 0 ]; then
$HOME/.config/i3/blurlock
revert() {
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset dpms 5 5 5
i3lock --nofork --color 648901 --ignore-empty-password
revert
fi