From c23dd4ed86a5f6fc3ada68f489fc9376307130ad Mon Sep 17 00:00:00 2001 From: odave Date: Mon, 6 Apr 2020 15:42:38 +0100 Subject: ~setup lock and bg variables in i3 $bg is the background command using feh, and is a random item from the backgrounds folder $lock is the i3lock command I use. Uses a png from locksreens folder, and also sets a colour in case the lockscreen image is not present. --- i3.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/i3.conf b/i3.conf index bde4080..5edf111 100644 --- a/i3.conf +++ b/i3.conf @@ -2,10 +2,8 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 -set $lock i3lock --nofork -f -e - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. +set $lock i3lock -n -f -e -i ~/Pictures/Lockscreens/mountain.png -c 555555 +set $bg feh --randomize --bg-scale ~/Pictures/Backgrounds font pango:Waree 9 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the @@ -183,5 +181,5 @@ bar { font pango:Arial 9.5 } -exec --no-startup-id feh --randomize --bg-scale ~/Pictures/Backgrounds +exec --no-startup-id $bg exec rofi -show run -matching fuzzy daemon -- cgit v1.2.3-13-gbd6f