Browse Source

Update lock script, moved scripts to .scripts folder

master
Riyyi 7 years ago
parent
commit
3074fdaba4
  1. 11
      .config/i3/scripts/lock.sh
  2. 0
      .scripts/colors.sh
  3. 0
      .scripts/wm/brightness.sh
  4. 31
      .scripts/wm/lock.sh
  5. 0
      .scripts/wm/volume.sh
  6. 1
      dotfiles.sh

11
.config/i3/scripts/lock.sh

@ -1,11 +0,0 @@
#!/bin/bash
xset s 30 30
icon="$HOME/Pictures/lock.png"
tmpbg='/tmp/screen.png'
scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock --nofork -u -i "$tmpbg"; xset s off

0
scripts/color.sh → .scripts/colors.sh

0
.config/i3/scripts/brightness.sh → .scripts/wm/brightness.sh

31
.scripts/wm/lock.sh

@ -0,0 +1,31 @@
#!/bin/bash
ICON="$HOME/Pictures/lock.png"
TMPBG='/tmp/screen.png'
revert() {
xset dpms 0 0 0
}
trap revert HUP INT TERM
xset +dpms dpms 30 30 30
scrot "$TMPBG"
convert "$TMPBG" -scale 10% -scale 1000% "$TMPBG"
convert "$TMPBG" "$ICON" -gravity center -composite -matte "$TMPBG"
i3lock -n -i "$TMPBG" -e \
--textcolor=00000000 \
--insidecolor=00000000 \
--insidevercolor=00000000 --insidewrongcolor=00000000 \
--ringcolor=00000000 \
--ringvercolor=FFFFFFC0 --ringwrongcolor=DA2825C0 \
--keyhlcolor=FFFFFFC0 --bshlcolor=DA2825C0 \
--linecolor=00000000 --separatorcolor=00000000 \
-k \
--timesize=64 --datesize=24 \
--timestr="%I:%M %p" --datestr="%A, %B %e" \
--timepos="ix-200:iy-250" --datepos="ix-200:iy-210" \
--timecolor=FFFFFFC0 --datecolor=FFFFFFC0
revert

0
.config/i3/scripts/volume.sh → .scripts/wm/volume.sh

1
dotfiles.sh

@ -6,7 +6,6 @@ if [ "$(dirname $0)" != "." ]; then
fi fi
FILES=$(find . \( -path ./.git -o \ FILES=$(find . \( -path ./.git -o \
-path ./scripts -o \
-path ./dotfiles.sh \) -prune -o -type f -print) -path ./dotfiles.sh \) -prune -o -type f -print)
if [ "$1" == "help" ] || [ "$1" == "" ]; then if [ "$1" == "help" ] || [ "$1" == "" ]; then

Loading…
Cancel
Save