feat: make the script secure, as it needs root access and I don't want to enable NOPASSWD for the setup_screen_hypr script
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
#!/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,7 +26,13 @@ disable_integrated_display_if_connected_to_external_monitors() {
|
|||||||
waybar &
|
waybar &
|
||||||
|
|
||||||
# reload the inputs, as they somehow get lost when a second monitor is attached
|
# reload the inputs, as they somehow get lost when a second monitor is attached
|
||||||
sudo /home/tim/.local/bin/reload_inputs.sh
|
sudo /usr/local/bin/reload_inputs.sh
|
||||||
|
# contents of the script
|
||||||
|
##!/bin/bash
|
||||||
|
#sleep 5
|
||||||
|
#udevadm trigger --action=remove --subsystem-match=input
|
||||||
|
#sleep 0.5
|
||||||
|
#udevadm trigger --action=add --subsystem-match=input
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_integrated_display_if_connected_to_external_monitors
|
disable_integrated_display_if_connected_to_external_monitors
|
||||||
|
|||||||
Reference in New Issue
Block a user