summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/extra/usbtoggle4
-rwxr-xr-xconfig/essentials/zsh/.zprofile3
-rwxr-xr-xconfig/home/.xprofile2
3 files changed, 6 insertions, 3 deletions
diff --git a/bin/extra/usbtoggle b/bin/extra/usbtoggle
index e8d4634..d459ffd 100755
--- a/bin/extra/usbtoggle
+++ b/bin/extra/usbtoggle
@@ -21,5 +21,5 @@ file="$(grep -l "$p" $(grep -l "$v" /sys/bus/usb/devices/*/idVendor |
sed 's/idVendor/idProduct/') |
sed 's/idProduct$/authorized/')"
-echo 0 | doas tee "$file"
-echo 1 | doas tee "$file"
+printf '%s\n' 0 | doas tee "$file"
+printf '%s\n' 1 | doas tee "$file"
diff --git a/config/essentials/zsh/.zprofile b/config/essentials/zsh/.zprofile
index f67e3f7..2e40c32 100755
--- a/config/essentials/zsh/.zprofile
+++ b/config/essentials/zsh/.zprofile
@@ -1,6 +1,7 @@
#!/bin/sh
-if [ "$TTY" = "/dev/tty1" ] && [ "$(id -u)" -ne 0 ]; then
+if { [ "$TTY" = "/dev/tty1" ] || [ "$TTY" = "/dev/tty8" ]; } &&
+ [ "$(id -u)" -ne 0 ]; then
exec startx > /dev/null 2>&1
exit
fi
diff --git a/config/home/.xprofile b/config/home/.xprofile
index 9d01277..e0f671d 100755
--- a/config/home/.xprofile
+++ b/config/home/.xprofile
@@ -18,3 +18,5 @@ unclutter --timeout 3 --jitter 50 -b
signal-desktop &
discord &
st -e "sh" "-c" "pgrep tmux && tmux a || tmux" &
+
+printf '%s\t%s' "$(date +%y_%m_%d-%T )" "$DISPLAY" >> ~/.x_displays.log &