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:
2025-12-09 22:14:40 +01:00
parent 61017666ae
commit d0dba8c5f9
2 changed files with 7 additions and 9 deletions

View File

@@ -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

View File

@@ -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