Switch from slock to LightDM
- Add background process for light-locker - lockcmd uses light-locker-command - sleepcmd uses systemctl suspend
This commit is contained in:
@@ -66,3 +66,6 @@ and (re)compiling the source code.
|
|||||||
* [Pulse Audio Volume Control](https://gist.github.com/palopezv/efd34059af6126ad970940bcc6a90f2e)
|
* [Pulse Audio Volume Control](https://gist.github.com/palopezv/efd34059af6126ad970940bcc6a90f2e)
|
||||||
* Media Play/Pause, Prev, and Next Keybindings via [Playerctl](https://github.com/altdesktop/playerctl)
|
* 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/)
|
* 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/)
|
||||||
|
@@ -17,6 +17,7 @@ declare -a applications_array=(\
|
|||||||
"redshift-gtk" \ # Redshift Blue Light Filter
|
"redshift-gtk" \ # Redshift Blue Light Filter
|
||||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" # GNOME Polkit Authentication Agent
|
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" # GNOME Polkit Authentication Agent
|
||||||
"slstatus" \ # slstatus status bar
|
"slstatus" \ # slstatus status bar
|
||||||
|
"light-locker --lock-on-suspend --lock-on-lid" \ # LightDM Locker
|
||||||
# Hardware Driver Applications
|
# Hardware Driver Applications
|
||||||
"solaar --window=hide" \ # Logitech Mouse Driver
|
"solaar --window=hide" \ # Logitech Mouse Driver
|
||||||
"polychromatic-tray-applet" \ # Razer Keyboard Customization
|
"polychromatic-tray-applet" \ # Razer Keyboard Customization
|
||||||
|
4
config.h
4
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 *rofiruncmd[] = { "rofi", "-show", "drun", NULL };
|
||||||
static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL };
|
static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL };
|
||||||
static const char *deaddcmd[] = { "/bin/bash", deaddscriptpath, NULL };
|
static const char *deaddcmd[] = { "/bin/bash", deaddscriptpath, NULL };
|
||||||
static const char *lockcmd[] = { "slock", NULL };
|
static const char *lockcmd[] = { "light-locker-command", "--lock", NULL };
|
||||||
static const char *sleepcmd[] = { "slock", "systemctl", "suspend", NULL };
|
static const char *sleepcmd[] = { "systemctl", "suspend", NULL };
|
||||||
static const char *termcmd[] = { "alacritty", NULL };
|
static const char *termcmd[] = { "alacritty", NULL };
|
||||||
static const char *upvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+1%", 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 };
|
static const char *downvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1%", NULL };
|
||||||
|
4
dwm.1
4
dwm.1
@@ -84,12 +84,12 @@ Spawn
|
|||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-l
|
.B Mod1\-Shift\-l
|
||||||
Spawn
|
Spawn
|
||||||
.BR slock(1)
|
.BR light-locker(1)
|
||||||
to lock screen.
|
to lock screen.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-s
|
.B Mod1\-Shift\-s
|
||||||
Spawn
|
Spawn
|
||||||
.BR slock(1)
|
.BR suspend(1)
|
||||||
to lock screen and go to sleep.
|
to lock screen and go to sleep.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-,
|
.B Mod1\-,
|
||||||
|
Reference in New Issue
Block a user