add background and use it for i3lock

This commit is contained in:
LordMZTE 2023-07-28 00:57:43 +02:00
parent 6c78833ae8
commit 5fba20762f
Signed by: LordMZTE
GPG Key ID: B64802DC33A64FF6
5 changed files with 8 additions and 7 deletions

View File

@ -1,5 +0,0 @@
[commands]
# Suspend and Hibernate commands should launch i3lock first.
suspend = sh -c 'i3lock -c 660000 && systemctl suspend'
hibernate = sh -c 'i3lock -c 660000 && systemctl hibernate'

View File

@ -0,0 +1,5 @@
[commands]
# Suspend and Hibernate commands should launch i3lock first.
suspend = sh -c '<% opt.commands.screen_lock %> && systemctl suspend'
hibernate = sh -c '<% opt.commands.screen_lock %> && systemctl hibernate'

View File

@ -17,7 +17,7 @@ font pango:<% opt.font %> 10
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id xss-lock --transfer-sleep-lock -- <% opt.commands.screen_lock %>
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
@ -129,7 +129,7 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# Lock screen
bindsym $mod+Ctrl+l exec i3lock -c 660000
bindsym $mod+Ctrl+l exec <% opt.commands.screen_lock %>
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@ -31,6 +31,7 @@ opts.commands = {
-- zenity-compatible dialoger
zenity = "yad",
notification_daemon = "wired",
screen_lock = string.format("i3lock -ti %s/.local/share/backgrounds/mzte.png", os.getenv "HOME"),
}
opts.gamemode = {