mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-11-27 18:13:19 +00:00
feat(scripts): add config
This commit is contained in:
17
home/bin/executable_toggle-graphics.sh
Normal file
17
home/bin/executable_toggle-graphics.sh
Normal 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'
|
||||
Reference in New Issue
Block a user