Repository navigation
notification when the focused monitor switches? #376
Unanswered
yayuwang0624
asked this question in
Q&A
Replies: 1 comment
|
I checked and it looks like it is possible to achieve this by using the IPC patch and subscribing to $ dwm-msg subscribe monitor_focus_change_event
{"result":"success"}
{
"monitor_focus_change_event": {
"old_monitor_number": 0,
"new_monitor_number": 1
}
}
{
"monitor_focus_change_event": {
"old_monitor_number": 1,
"new_monitor_number": 0
}
}
{
"monitor_focus_change_event": {
"old_monitor_number": 0,
"new_monitor_number": 1
}
}
{
"monitor_focus_change_event": {
"old_monitor_number": 1,
"new_monitor_number": 0
}
}It would be possible to have this drive the script that sends the notifications. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want an explicit notification (e.g. notify-send) when the focused monitor changes. I tried to add an extra SHCMD associated with the
focusmonfunction so it works when I manually switch the monitor, but it doesn't work when_NET_ACTIVE_WINDOWchanges the monitor.Is there any means to achieve that?
All reactions