-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Maxattax97/miscellaneous
- Loading branch information
Showing
2 changed files
with
54 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1011,18 +1011,19 @@ case "$response" in | |
xdg-settings set default-web-browser brave-browser.desktop | ||
fi | ||
|
||
# TODO: Install extensions | ||
#[email protected] | ||
#blur-my-shell@aunetx | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
#[email protected] | ||
extensions=( | ||
"[email protected]" | ||
"blur-my-shell@aunetx" | ||
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
) | ||
|
||
for extension in "${extensions[@]}"; do | ||
# TODO: Need to download the extensions first. | ||
# gnome-extensions install "$extension" | ||
gnome-extensions enable "$extension" | ||
done | ||
|
||
# Clear the bookmarks file | ||
printf "" > "${HOME}/.config/gtk-3.0/bookmarks" | ||
|
@@ -1424,36 +1425,38 @@ case "$response" in | |
;; | ||
esac | ||
|
||
read -r -p "Would you like to setup system permissions? [y/N] " response | ||
case "$response" in | ||
[yY][eE][sS] | [yY]) | ||
if [[ "$(uname)" != "Darwin" ]]; then | ||
read -r -p "Would you like to setup system permissions? [y/N] " response | ||
case "$response" in | ||
[yY][eE][sS] | [yY]) | ||
|
||
if [[ -x "$(command -v pw)" ]]; then | ||
sudo pw groupmod video -m "$USER" | ||
sudo pw groupmod docker -m "$USER" | ||
sudo pw groupmod wireshark -m "$USER" | ||
sudo pw groupmod wheel -m "$USER" | ||
sudo pw groupmod tty -m "$USER" | ||
sudo pw groupmod nordvpn -m "$USER" | ||
else | ||
# TODO: Check that these are correct groupadd commands. | ||
sudo groupadd -r docker | ||
sudo usermod -a -G docker "$USER" | ||
if [[ -x "$(command -v pw)" ]]; then | ||
sudo pw groupmod video -m "$USER" | ||
sudo pw groupmod docker -m "$USER" | ||
sudo pw groupmod wireshark -m "$USER" | ||
sudo pw groupmod wheel -m "$USER" | ||
sudo pw groupmod tty -m "$USER" | ||
sudo pw groupmod nordvpn -m "$USER" | ||
else | ||
# TODO: Check that these are correct groupadd commands. | ||
sudo groupadd -r docker | ||
sudo usermod -a -G docker "$USER" | ||
|
||
sudo groupadd -r wireshark | ||
sudo usermod -a -G wireshark "$USER" | ||
sudo groupadd -r wireshark | ||
sudo usermod -a -G wireshark "$USER" | ||
|
||
sudo groupadd -r tty | ||
sudo usermod -a -G tty "$USER" | ||
sudo groupadd -r tty | ||
sudo usermod -a -G tty "$USER" | ||
|
||
sudo groupadd -r nordvpn | ||
sudo usermod -a -G nordvpn "$USER" | ||
fi | ||
;; | ||
*) | ||
echo "Skipping permission setup" | ||
;; | ||
esac | ||
sudo groupadd -r nordvpn | ||
sudo usermod -a -G nordvpn "$USER" | ||
fi | ||
;; | ||
*) | ||
echo "Skipping permission setup" | ||
;; | ||
esac | ||
fi | ||
|
||
if [ -n "${AUTOMATED}" ]; then | ||
response='n' | ||
|