diff --git a/config/i3/blurlock b/config/i3/blurlock deleted file mode 100755 index 31b24ee..0000000 --- a/config/i3/blurlock +++ /dev/null @@ -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" diff --git a/config/i3/config b/config/i3/config index bf37494..48c0450 100644 --- a/config/i3/config +++ b/config/i3/config @@ -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" { diff --git a/config/i3/lock b/config/i3/lock index d01806a..9bc0a51 100755 --- a/config/i3/lock +++ b/config/i3/lock @@ -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