dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 87ca28a38d70b7c71cd1d7c71e88fd4cb0bf8705
parent 4c3d80d98636364b581cdc67f1d7d3270d1fc73f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 26 Sep 2019 10:54:18 +0200

Update lock settings, remove custom xlock

Diffstat:
D.local/bin/xlock | 35-----------------------------------
M.xsession | 2+-
2 files changed, 1 insertion(+), 36 deletions(-)

diff --git a/.local/bin/xlock b/.local/bin/xlock @@ -1,35 +0,0 @@ -#!/bin/sh -#mpc stop - -get_short_fortune() { - while :; do - text="$(fortune)" - if [ "$(echo "$text" | wc -l)" -lt 8 ]; then - echo "$text" - break - fi - done -} - -img="$(mktemp --tmpdir tmp.XXXXXXXXXX.png)" -maim "$img" -#gm convert $img -blur 0x10 $img -convert "$img" \ - -blur 0x10 \ - -fill black \ - -colorize 20% \ - -fill white \ - -gravity Center \ - -font 'PragmataPro' \ - -pointsize 142 \ - -annotate +0-7 '🔒' \ - "$img" -convert "$img" \ - -fill white \ - -gravity Center \ - -font 'PragmataPro' \ - -pointsize 22 \ - -annotate +0+160 \ - "$(get_short_fortune)" \ - "$img" -i3lock -i "$img" diff --git a/.xsession b/.xsession @@ -2,5 +2,5 @@ [ -f ~/.config/sh/profile ] && . ~/.config/sh/profile [ -f ~/.config/sh/commands ] && . ~/.config/sh/commands [ -f ~/.xprofile ] && . ~/.xprofile -xidle & +xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode euler2d" -timeout 300 & exec dwm