From ac77e67324cf15c1f817c49dcdbaedbc6cb7908a Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 26 Aug 2023 11:08:51 -0500 Subject: [PATCH] A new autostart for DTOS and QTILE --- .config/qtile/autostart.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index 728db6d..3b3044c 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -2,6 +2,9 @@ COLORSCHEME=DoomOne +### CHECKS IF VIRTUAL MACHINE ### +# If so, this sets an appropriate screen resolution. +# This is needed as part of DTOS. if [[ $(systemd-detect-virt) = "none" ]]; then echo "Not running in a Virtual Machine"; elif xrandr | grep "1366x768"; then @@ -11,7 +14,19 @@ elif xrandr | grep "1920x1080"; then else echo "Could not set a resolution." fi +### Fix Emacs elpaca symlinks ### +# This runs the fix-elpaca-symlinks scripts which +# fixes all of the symlinks in .config/emacs/elpaca/build. +# This is needed as part of DTOS. +if [[ -f "$HOME/.config/fix-elpaca-symlinks/log" ]]; then + echo "fix-eplaca-symlinks has been run previously." +else + /usr/local/bin/fix-elpaca-symlinks + touch "$HOME/.config/fix-elpaca-symlinks/log" + echo "has-been-run: TRUE" > "$HOME/.config/fix-elpaca-symlinks/log" +fi +### AUTOSTART PROGRAMS ### lxsession & picom & /usr/bin/emacs --daemon &