You are not logged in.
Pages: 1
I've been using i3 and in order to add easy suspend, logout, etc functionality I used this code, straight out of the arch wiki.
set $Locker i3lock && sleep 1
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutd$
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"When I suspend and turn the computer back on I get a white screen. If I start typing stuff starts happening on the screen, eventually I figured out that if I type my password and hit enter, it will log me in. When I do that however, my background appears corrupted and the conky window I had running on the desktop appears to be gone. Does anyone know what's going on with that? If it matters, I'm running i3-gaps rather than the standard i3
Last edited by leggettc13 (2017-05-07 15:27:41)
Offline
Are you using nvidia drivers? That corrupted background is normal in the current version. You can "fix" it by reloading your background in that exec line after the suspend.
You need to configure i3lock using its parameters. I guess that white color is its default.
About conky, perhaps your script runs into an error in one of its lines if there's a suspend?
Last edited by Ropid (2017-05-07 16:56:24)
Offline
I get a white screen. If I start typing stuff starts happening on the screen
Yes, that's exactly what "i3lock" does. "Stuff" being the typing indicator (which you might even suppress)
Please do no mindlessly copy random stuff, not even from the Arch wiki. It's a guide, not a clumsy copy&paste way to setup a usable system.
Notably i3 does not point noobs, so think about what you're doing and test things by hand before automizing yourself into a trap.
Regarding conky, please first check whether the process is still running.
Offline
Pages: 1