Locking things
This commit is contained in:
parent
b536af829e
commit
f14cbe7f2c
|
@ -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"
|
|
|
@ -299,7 +299,7 @@ mode "Resize" {
|
||||||
|
|
||||||
bindsym $mod+r 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
|
bindsym $mod+Shift+a $background
|
||||||
set $mode_screen_select [V] VGA1 [H] HDMI1
|
set $mode_screen_select [V] VGA1 [H] HDMI1
|
||||||
mode "$mode_screen_select" {
|
mode "$mode_screen_select" {
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
dm-tool lock
|
dm-tool lock
|
||||||
if [ $? -ne 0 ]; then
|
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
|
fi
|
||||||
|
|
Loading…
Reference in a new issue