This commit is contained in:
Stephan Raabe
2023-08-30 14:45:03 +02:00
parent 726b9ab296
commit b5c936e484
12 changed files with 157 additions and 126 deletions

13
scripts/autolock.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# _ _ _ _
# / \ _ _| |_ ___ | | ___ ___| | __
# / _ \| | | | __/ _ \| |/ _ \ / __| |/ /
# / ___ \ |_| | || (_) | | (_) | (__| <
# /_/ \_\__,_|\__\___/|_|\___/ \___|_|\_\
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
pkill xautolock
xautolock -time 10 -locker "swaylock -i ~/.cache/current_wallpaper.jpg" -notify 30 -notifier "notify-send 'Screen will be locked soon.' 'Locking screen in 30 seconds'"

View File

@@ -23,6 +23,7 @@ source "$HOME/.cache/wal/colors.sh"
# Copy color file to waybar folder
# -----------------------------------------------------
cp ~/.cache/wal/colors-waybar.css ~/dotfiles/waybar/
cp $wallpaper ~/.cache/current_wallpaper.jpg
# -----------------------------------------------------
# get wallpaper iamge name

View File

@@ -31,7 +31,8 @@ if [ "$selected" ]; then
# Copy color file to waybar folder
# -----------------------------------------------------
cp ~/.cache/wal/colors-waybar.css ~/dotfiles/waybar/
cp $wallpaper ~/.cache/current_wallpaper.jpg
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
# -----------------------------------------------------