Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ main() {
info "prestobuntu setup complete!"
}

mute() { "$@" &>/dev/null; }

check_not_root() {
if (( UID == 0 )); then
die "must not run as root (tip: don't use sudo)"
Expand Down Expand Up @@ -523,28 +521,13 @@ install_tailscale() {
wget -qO- https://tailscale.com/install.sh | sudo sh
}

disable_if_installed() {
for unit in "$@"; do
if systemctl list-unit-files "$@" &>/dev/null; then
sudo systemctl disable "$unit"
fi
done
}

disable_suspend_on_lid_closed() {
_require_line "HandleLidSwitch=ignore" /etc/systemd/logind.conf
_require_line "HandleLidSwitchExternalPower=ignore" /etc/systemd/logind.conf
# TODO: below command causes session to end and user logout
# systemctl restart systemd-logind
}

auto_start_terminal() {
local autostart="$HOME/.config/autostart"
local file="startup-terminal.desktop"
mkdir -p "$autostart"
get_prestobuntu_file "$file" "$autostart/$file"
}

create_gruvbox_terminal_profile() {
get_prestobuntu_file "create-gruvbox" /tmp/create-gruvbox
bash /tmp/create-gruvbox
Expand Down
10 changes: 0 additions & 10 deletions startup-terminal.desktop

This file was deleted.