Slock Changes
- Replace light-locker with slock in config.def.h - Add keypress mask for slock mediakeys patch in dwm.c
This commit is contained in:
@@ -36,7 +36,7 @@ static const char *const autostart[] = {
|
|||||||
// System Tray Applications
|
// System Tray Applications
|
||||||
"volctl", NULL, // PulseAudio Volume Control
|
"volctl", NULL, // PulseAudio Volume Control
|
||||||
"nyrna", NULL, // Nyrna Application Suspend
|
"nyrna", NULL, // Nyrna Application Suspend
|
||||||
"blueman-tray", NULL, // Blueman Bluetooth Manager
|
"blueman-applet", NULL, // Blueman Bluetooth Manager
|
||||||
"nm-applet", NULL, // Network Manager Applet
|
"nm-applet", NULL, // Network Manager Applet
|
||||||
"kdeconnect-indicator", NULL, // KDE Connect
|
"kdeconnect-indicator", NULL, // KDE Connect
|
||||||
"flameshot", NULL, // Flameshot Screenshot Tool
|
"flameshot", NULL, // Flameshot Screenshot Tool
|
||||||
@@ -48,7 +48,6 @@ static const char *const autostart[] = {
|
|||||||
"redshift", "-x", NULL, // Reset redshift display gamma
|
"redshift", "-x", NULL, // Reset redshift display gamma
|
||||||
"redshift-gtk", NULL, // Redshift Blue Light Filter
|
"redshift-gtk", NULL, // Redshift Blue Light Filter
|
||||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", NULL, // GNOME Polkit Authentication Agent
|
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", NULL, // GNOME Polkit Authentication Agent
|
||||||
"light-locker", "--lock-on-suspend", "--lock-on-lid", NULL, // LightDM Locker
|
|
||||||
// Hardware Driver Applications
|
// Hardware Driver Applications
|
||||||
"solaar", "--window=hide", NULL, // Logitech Mouse Driver
|
"solaar", "--window=hide", NULL, // Logitech Mouse Driver
|
||||||
"polychromatic-tray-applet", NULL, // Razer Keyboard Customization
|
"polychromatic-tray-applet", NULL, // Razer Keyboard Customization
|
||||||
@@ -111,7 +110,7 @@ static const Layout layouts[] = {
|
|||||||
/* commands */
|
/* commands */
|
||||||
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 *lockcmd[] = { "light-locker-command", "--lock", NULL };
|
static const char *lockcmd[] = { "slock", NULL };
|
||||||
static const char *sleepcmd[] = { "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 };
|
||||||
|
2
dwm.c
2
dwm.c
@@ -2060,7 +2060,7 @@ setup(void)
|
|||||||
wa.cursor = cursor[CurNormal]->cursor;
|
wa.cursor = cursor[CurNormal]->cursor;
|
||||||
wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask
|
wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask
|
||||||
|ButtonPressMask|PointerMotionMask|EnterWindowMask
|
|ButtonPressMask|PointerMotionMask|EnterWindowMask
|
||||||
|LeaveWindowMask|StructureNotifyMask|PropertyChangeMask;
|
|LeaveWindowMask|StructureNotifyMask|PropertyChangeMask|KeyPressMask;
|
||||||
XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa);
|
XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa);
|
||||||
XSelectInput(dpy, root, wa.event_mask);
|
XSelectInput(dpy, root, wa.event_mask);
|
||||||
grabkeys();
|
grabkeys();
|
||||||
|
Reference in New Issue
Block a user