summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Krinitsin <code@krinitsin.xyz>2024-05-28 22:21:23 +0200
committerChristian Krinitsin <code@krinitsin.xyz>2024-05-28 22:21:23 +0200
commit597a57c242422ea8e760f82f285e404ce2e43a41 (patch)
tree6ac8fcdffe3c3bb203fa83affa620dbd28fc9f77 /scripts
parenta3b983d90668a87ec07d4f7fb53122d9fe579e74 (diff)
downloaddotfiles-597a57c242422ea8e760f82f285e404ce2e43a41.tar.gz
dotfiles-597a57c242422ea8e760f82f285e404ce2e43a41.zip
add many different things
Diffstat (limited to 'scripts')
-rw-r--r--scripts/getty@tty1.service60
-rwxr-xr-xscripts/install-packages.sh6
-rwxr-xr-xscripts/lsp.sh2
3 files changed, 66 insertions, 2 deletions
diff --git a/scripts/getty@tty1.service b/scripts/getty@tty1.service
new file mode 100644
index 0000000..9e12fb8
--- /dev/null
+++ b/scripts/getty@tty1.service
@@ -0,0 +1,60 @@
+#  SPDX-License-Identifier: LGPL-2.1-or-later
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Getty on %I
+Documentation=man:agetty(8) man:systemd-getty-generator(8)
+Documentation=https://0pointer.de/blog/projects/serial-console.html
+After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
+
+# If additional gettys are spawned during boot then we should make
+# sure that this is synchronized before getty.target, even though
+# getty.target didn't actually pull it in.
+Before=getty.target
+IgnoreOnIsolate=yes
+
+# IgnoreOnIsolate causes issues with sulogin, if someone isolates
+# rescue.target or starts rescue.service from multi-user.target or
+# graphical.target.
+Conflicts=rescue.service
+Before=rescue.service
+
+# On systems without virtual consoles, don't start any getty. Note
+# that serial gettys are covered by serial-getty@.service, not this
+# unit.
+ConditionPathExists=/dev/tty0
+
+[Service]
+# the VT is cleared by TTYVTDisallocate
+# The '-o' option value tells agetty to replace 'login' arguments with an
+# option to preserve environment (-p), followed by '--' for safety, and then
+# the entered username.
+ExecStart=-/sbin/agetty -a chris --noclear - $TERM
+Type=idle
+Restart=always
+RestartSec=0
+UtmpIdentifier=%I
+StandardInput=tty
+StandardOutput=tty
+TTYPath=/dev/%I
+TTYReset=yes
+TTYVHangup=yes
+TTYVTDisallocate=yes
+IgnoreSIGPIPE=no
+SendSIGHUP=yes
+ImportCredential=agetty.*
+ImportCredential=login.*
+
+# Unset locale for the console getty since the console has problems
+# displaying some internationalized messages.
+UnsetEnvironment=LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
+
+[Install]
+WantedBy=getty.target
+DefaultInstance=tty1
diff --git a/scripts/install-packages.sh b/scripts/install-packages.sh
index 1fd1cb8..0e0c11e 100755
--- a/scripts/install-packages.sh
+++ b/scripts/install-packages.sh
@@ -1,10 +1,14 @@
 #!/usr/bin/bash
 
 # install packages
-sudo pacman -S pacman-contrib python-tldextract pass gnupg base-devel libnotify wl-clipboard qt6-wayland xorg-server-xwayland nerd-fonts zoxide waybar bison startup-notification flex wayland-protocols pkg-config cmake gcc alacritty dunst neovim qutebrowser starship xdg-user-dirs zathura zathura-pdf-mupdf meson ninja
+sudo pacman -S fzf grim pacman-contrib python-tldextract pass gnupg base-devel libnotify wl-clipboard qt6-wayland xorg-server-xwayland nerd-fonts zoxide waybar bison startup-notification flex wayland-protocols pkg-config cmake gcc alacritty dunst neovim qutebrowser starship xdg-user-dirs zathura zathura-pdf-mupdf meson ninja
 
 sudo pacman -S pipewire pipewire-audio pipewire-alsa pipewire-pulse pavucontrol
 
+sudo pacman -S texlive-basic texlive-bibtexextra texlive-latex texlive-mathscience texlive-latexrecommended texlive-latexextra texlive-binextra
+
+yay -S grimshot
+
 # install rofi and dmenu for wayland
 git clone https://github.com/lbonn/rofi.git /tmp/rofi
 cd /tmp/rofi
diff --git a/scripts/lsp.sh b/scripts/lsp.sh
index d516a87..ad9fc98 100755
--- a/scripts/lsp.sh
+++ b/scripts/lsp.sh
@@ -1,4 +1,4 @@
 #!/usr/bin/bash
 
 
-sudo pacman -S lua-language-server clang rust-analyzer
+sudo pacman -S lua-language-server clang rust-analyzer texlab