mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-21 18:40:26 +10:00
A new autostart for DTOS and QTILE
This commit is contained in:
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user