From d0dba8c5f918659fcc6e3b9ec7ec389d4f39e932 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Tue, 9 Dec 2025 22:14:40 +0100 Subject: [PATCH] feat: make the script secure, as it needs root access and I don't want to enable NOPASSWD for the setup_screen_hypr script --- reload_inputs.sh | 8 -------- setup_screen_hypr.sh | 8 +++++++- 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100755 reload_inputs.sh diff --git a/reload_inputs.sh b/reload_inputs.sh deleted file mode 100755 index c3b6e4e..0000000 --- a/reload_inputs.sh +++ /dev/null @@ -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 diff --git a/setup_screen_hypr.sh b/setup_screen_hypr.sh index 4ae709a..3ef62bb 100755 --- a/setup_screen_hypr.sh +++ b/setup_screen_hypr.sh @@ -26,7 +26,13 @@ disable_integrated_display_if_connected_to_external_monitors() { waybar & # 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