From 2211b062c984ee7e3c0987a5639557f86877fa97 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 20 Nov 2020 20:35:46 -0600 Subject: [PATCH] Laptop things --- env/arch-linux/provision.d/00-add-user.bash | 3 ++- env/arch-linux/provision.d/10-install-yay.bash | 6 +++--- env/arch-linux/provision.d/20-install-packages.bash | 5 +++-- env/common/machines/laptop/sway/main | 3 +++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/env/arch-linux/provision.d/00-add-user.bash b/env/arch-linux/provision.d/00-add-user.bash index bc2b4d9..a9f53b9 100755 --- a/env/arch-linux/provision.d/00-add-user.bash +++ b/env/arch-linux/provision.d/00-add-user.bash @@ -6,7 +6,8 @@ ud="/home/$u" # user exists - we will assume setup has already run if getent passwd "$u"; then exit 0; fi -pacman -S --needed sudo +pacman -S --needed sudo openssh +# TODO: enable admin group to sudo groupadd admin 2>/dev/null mkdir --parents "$ud/.home" "$ud/dl" useradd --home-dir "$ud/.home" \ diff --git a/env/arch-linux/provision.d/10-install-yay.bash b/env/arch-linux/provision.d/10-install-yay.bash index 1b40b67..238caa6 100755 --- a/env/arch-linux/provision.d/10-install-yay.bash +++ b/env/arch-linux/provision.d/10-install-yay.bash @@ -1,11 +1,11 @@ #!/usr/bin/env bash REPOSITORY_PATH="/tmp/provisioning" -pacman -S --needed git base-devel +sudo pacman -S --needed git base-devel mkdir -p "$REPOSITORY_PATH" rm -rf "$REPOSITORY_PATH/yay" -git clone https://aur.archlinux.org/yay.git -cd yay +git clone https://aur.archlinux.org/yay.git "$REPOSITORY_PATH/yay" +cd "$REPOSITORY_PATH/yay" makepkg -si yay -S yay rm -rf "$REPOSITORY_PATH/yay" diff --git a/env/arch-linux/provision.d/20-install-packages.bash b/env/arch-linux/provision.d/20-install-packages.bash index fb355d2..acf7f6e 100755 --- a/env/arch-linux/provision.d/20-install-packages.bash +++ b/env/arch-linux/provision.d/20-install-packages.bash @@ -26,7 +26,7 @@ yay -Sy \ accountsservice `# Mainly for User Avatars with Display Manager` \ gdm `# Display Manager of choice` \ deluge deluge-gtk cairo python-cairo `# GUI Torrent Client` \ - elixir nodejs erlang \ + elixir nodejs erlang rustup \ php `# PHP Language` \ nginx `# Web Server` \ postgresql pgcli `# RDBMS` \ @@ -87,4 +87,5 @@ yay -Sy \ fortune-mod fortune-mod-archlinux `# Fortune` \ diff-so-fancy `# Fancy Diffs` \ oath-toolkit `# One-Time Passwords` \ - sysstat `# System Statistics` + sysstat `# System Statistics` \ + ripcord `# Discord and Slack Client` diff --git a/env/common/machines/laptop/sway/main b/env/common/machines/laptop/sway/main index a408e6e..28095cb 100644 --- a/env/common/machines/laptop/sway/main +++ b/env/common/machines/laptop/sway/main @@ -5,3 +5,6 @@ bindswitch lid:toggle exec swaylock input type:keyboard { xkb_options ctrl:nocaps } +input type:touchscreen { + events disabled +}