Commit 70bf458d authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Removed i3exit scripts. Issues with bypassing dm-tool lock. Switched to...

Removed i3exit scripts.  Issues with bypassing dm-tool lock.  Switched to blurlock but with a custom image.
parent 976a2be8
#!/bin/bash
# /usr/bin/blurlock
# take screenshot
# import -window root /tmp/screenshot.png
# blur it
#convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
#rm /tmp/screenshot.png
# lock the screen
i3lock -i /usr/share/backgrounds/grey-split-manjaro.png
exit 0
#!/bin/bash
# /usr/bin/blurlock
# take screenshot
import -window root /tmp/screenshot.png
# blur it
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
rm /tmp/screenshot.png
# lock the screen
i3lock -i /tmp/screenshotblur.png
exit 0
\ No newline at end of file
#!/bin/sh
# /usr/bin/i3exit
# with openrc use loginctl
[[ $(cat /proc/1/comm) == "systemd" ]] && logind=systemctl || logind=loginctl
case "$1" in
lock)
dm-tool lock
;;
logout)
i3-msg exit
;;
switch_user)
dm-tool switch-to-greeter
;;
suspend)
dm-tool lock && sleep 2 && $logind suspend
;;
hibernate)
dm-tool lock && sleep 2 && $logind hibernate
;;
reboot)
$logind reboot
;;
shutdown)
$logind poweroff
;;
*)
echo "== ! i3exit: missing or invalid argument ! =="
echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"
exit 2
esac
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment