feat: properly reload inputs
This commit is contained in:
8
reload_inputs.sh
Executable file
8
reload_inputs.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# reload the inputs, as they somehow get lost when a second monitor is attached
|
||||
|
||||
sleep 5
|
||||
udevadm trigger --action=remove --subsystem-match=input
|
||||
sleep 0.5
|
||||
udevadm trigger --action=add --subsystem-match=input
|
||||
@@ -26,10 +26,7 @@ disable_integrated_display_if_connected_to_external_monitors() {
|
||||
waybar &
|
||||
|
||||
# reload the inputs, as they somehow get lost when a second monitor is attached
|
||||
sleep 5
|
||||
sudo udevadm trigger --action=remove --subsystem-match=input
|
||||
sleep 0.5
|
||||
sudo udevadm trigger --action=add --subsystem-match=input
|
||||
sudo /home/tim/.local/bin/reload_inputs.sh
|
||||
}
|
||||
|
||||
disable_integrated_display_if_connected_to_external_monitors
|
||||
|
||||
Reference in New Issue
Block a user