mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 19:10:24 +10:00
A new autostart for DTOS and QTILE
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
COLORSCHEME=DoomOne
|
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
|
if [[ $(systemd-detect-virt) = "none" ]]; then
|
||||||
echo "Not running in a Virtual Machine";
|
echo "Not running in a Virtual Machine";
|
||||||
elif xrandr | grep "1366x768"; then
|
elif xrandr | grep "1366x768"; then
|
||||||
@@ -11,7 +14,19 @@ elif xrandr | grep "1920x1080"; then
|
|||||||
else echo "Could not set a resolution."
|
else echo "Could not set a resolution."
|
||||||
fi
|
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 &
|
lxsession &
|
||||||
picom &
|
picom &
|
||||||
/usr/bin/emacs --daemon &
|
/usr/bin/emacs --daemon &
|
||||||
|
|||||||
Reference in New Issue
Block a user