From 3029ae787993192bf61d07dc618207e7cbe69828 Mon Sep 17 00:00:00 2001 From: Harzo Date: Tue, 30 May 2023 23:12:15 +0200 Subject: [PATCH] screenlock: Script for screenlock This script supports dynamic wallpaper - uses the current random wallpaper that was already applied by random-wallpaper script. --- .config/hypr/conf.d/keybinds.conf | 2 +- .scripts/system/screenlock | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 .scripts/system/screenlock diff --git a/.config/hypr/conf.d/keybinds.conf b/.config/hypr/conf.d/keybinds.conf index fe9d319..33df3fc 100644 --- a/.config/hypr/conf.d/keybinds.conf +++ b/.config/hypr/conf.d/keybinds.conf @@ -25,7 +25,7 @@ bind = $smod, down, movewindow, d bind = $mmod, Return, exec, footclient bind = $mmod, F, exec, pkill fsearch; fsearch bind = $smod, D, exec, wofi --show drun -bind = $smod, X, exec, swaylock +bind = $smod, X, exec, ~/.scripts/system/screenlock bind = $smod, S, exec, ~/.scripts/grimshot bind = , Print, exec, ~/.scripts/grimshot -f bind = $smod, Escape, exec, ~/.scripts/system/wofi-session diff --git a/.scripts/system/screenlock b/.scripts/system/screenlock new file mode 100755 index 0000000..d5d277c --- /dev/null +++ b/.scripts/system/screenlock @@ -0,0 +1,2 @@ +#!/bin/sh +swaylock -i "/run/user/$(id -u)/.current-wallpaper"