Stow scripts

This commit is contained in:
2023-11-25 09:35:34 -05:00
parent 547eb10705
commit b41a4141f2
41 changed files with 2 additions and 2 deletions

17
scripts/bin/toggle-graphics.sh Executable file
View File

@ -0,0 +1,17 @@
#! /bin/bash
# Script to toggle graphical
defTarget=$(systemctl get-default)
if [[ $defTarget == 'graphical.target' ]]
then
echo 'Changing default target to nongraphical shell'
sudo systemctl set-default multi-user.target
else
echo 'Changing default target to graphical shell'
sudo systemctl set-default graphical.target
fi
echo
echo 'Default target changed to '$(systemctl get-default)
echo 'Please reboot for the change to take effect'