diff --git a/README.md b/README.md index a33212b..ed98930 100644 --- a/README.md +++ b/README.md @@ -66,3 +66,6 @@ and (re)compiling the source code. * [Pulse Audio Volume Control](https://gist.github.com/palopezv/efd34059af6126ad970940bcc6a90f2e) * Media Play/Pause, Prev, and Next Keybindings via [Playerctl](https://github.com/altdesktop/playerctl) * Arch Community Repo: [playerctl](https://www.archlinux.org/packages/community/x86_64/playerctl/) +* Use [light-locker](https://github.com/the-cavalry/light-locker) to lock screen with [LightDM](https://github.com/canonical/lightdm) + * Arch Community Repo: [lightdm](https://www.archlinux.org/packages/extra/x86_64/lightdm/) + * Arch Community Repo: [light-locker](https://www.archlinux.org/packages/community/x86_64/light-locker/) diff --git a/autostart.sh b/autostart.sh index 8a7b3b7..036cc12 100755 --- a/autostart.sh +++ b/autostart.sh @@ -17,6 +17,7 @@ declare -a applications_array=(\ "redshift-gtk" \ # Redshift Blue Light Filter "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" # GNOME Polkit Authentication Agent "slstatus" \ # slstatus status bar + "light-locker --lock-on-suspend --lock-on-lid" \ # LightDM Locker # Hardware Driver Applications "solaar --window=hide" \ # Logitech Mouse Driver "polychromatic-tray-applet" \ # Razer Keyboard Customization diff --git a/config.h b/config.h index b803d2c..d55dbb2 100644 --- a/config.h +++ b/config.h @@ -69,8 +69,8 @@ static const char deaddscriptpath[] = "/home/sravan/.config/deadd/open-notificat static const char *rofiruncmd[] = { "rofi", "-show", "drun", NULL }; static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL }; static const char *deaddcmd[] = { "/bin/bash", deaddscriptpath, NULL }; -static const char *lockcmd[] = { "slock", NULL }; -static const char *sleepcmd[] = { "slock", "systemctl", "suspend", NULL }; +static const char *lockcmd[] = { "light-locker-command", "--lock", NULL }; +static const char *sleepcmd[] = { "systemctl", "suspend", NULL }; static const char *termcmd[] = { "alacritty", NULL }; static const char *upvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+1%", NULL }; static const char *downvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1%", NULL }; diff --git a/dwm.1 b/dwm.1 index 292b123..9e71ced 100644 --- a/dwm.1 +++ b/dwm.1 @@ -84,12 +84,12 @@ Spawn .TP .B Mod1\-Shift\-l Spawn -.BR slock(1) +.BR light-locker(1) to lock screen. .TP .B Mod1\-Shift\-s Spawn -.BR slock(1) +.BR suspend(1) to lock screen and go to sleep. .TP .B Mod1\-,