add background and use it for i3lock
This commit is contained in:
parent
6c78833ae8
commit
5fba20762f
5 changed files with 8 additions and 7 deletions
|
@ -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'
|
5
.config/gpower2/config.ini.cgt
Normal file
5
.config/gpower2/config.ini.cgt
Normal 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'
|
|
@ -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.
|
||||
|
|
BIN
.local/share/backgrounds/mzte.png
Normal file
BIN
.local/share/backgrounds/mzte.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 MiB |
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue