debug bash overlap because custom prompt errors\nadd nvidia kernel config

This commit is contained in:
SALVI Jérémie
2024-08-16 18:24:01 +02:00
parent 437ffecd44
commit ceda24609a
7 changed files with 14 additions and 5 deletions

1
TODO
View File

@@ -1,4 +1,3 @@
install steam, wine and lib32 multilib
pipwire-pulseaudio as root to X11
add nvidia to modprobe ant mkinitcpio (hyperland doc)
configure ranger

View File

@@ -15,6 +15,13 @@ sed -i "s|^#ParallelDownloads.*|ParallelDownloads = 10|" /etc/pacman.conf
#pacman -Syu --noconfirm
#pacman -S --noconfirm - < packages
### Configure modprobe
ln -sf "${_DIRNAME}/links/modprobe/nvidia.conf" /etc/modprobe.d/nvidia.conf
ln -sf "${_DIRNAME}/links/modprobe/blacklist.conf" /etc/modprobe.d/blacklist.conf
### Configure mkinitcpio
sed -i "s|^MODULES.*|MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)|" /etc/mkinitcpio.conf
### Configure tty
mkdir -p /etc/systemd/system/getty@tty1.service.d
ln -sf "${_DIRNAME}/links/tty/autologin.conf" /etc/systemd/system/getty@tty1.service.d/override.conf

View File

@@ -0,0 +1 @@
blacklist pcspkr

View File

@@ -0,0 +1 @@
options nvidia_drm modeset=1 fbdev=1

View File

@@ -30,9 +30,9 @@ fi
. /usr/local/share/dotfiles/scripts/git.sh
PS1="\n\[\e[48;5;027m\]  \u \[\e[00m\]\[\e[48;5;033;38;5;027m\]\[\e[00m\]"
PS1+="\[\e[48;5;033m\] \h \[\e[00m\]\[\e[48;5;063;38;5;033m\]\e[00m\]"
PS1+="\[\e[48;5;063m\] \w \[\e[00m\]\[\e[48;5;069;38;5;063m\]\e[00m\]"
PS1+="\[\e[48;5;069m\]\$(_git) \[\e[00m\]\[\e[38;5;069m\]\e[00m\] "
PS1+="\[\e[48;5;033m\] \h \[\e[00m\]\[\e[48;5;063;38;5;033m\]\[\e[00m\]"
PS1+="\[\e[48;5;063m\] \w \[\e[00m\]\[\e[48;5;069;38;5;063m\]\[\e[00m\]"
PS1+="\[\e[48;5;069m\] \$(_git)\[\e[00m\]\[\e[38;5;069m\]\[\e[00m\] "
# You may comment the following lines if you won't `ls' to be colorized:
eval "$(dircolors)"

View File

@@ -9,7 +9,7 @@ _git () {
_ORIGIN="$(git remote show)"
_AHEAD=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" | cut -f 1)
_BEHIND=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" | cut -f 2)
printf "  %s " "$(git branch --show-current)"
printf " %s " "$(git branch --show-current)"
if (( _MODIFIED == 0 )) && (( _UNTRACKED == 0 )) && (( _AHEAD == 0 )) && (( _BEHIND == 0 ))
then
printf ""

View File

@@ -1,5 +1,6 @@
#!/bin/bash
sleep 1
import -window root /tmp/screenshot.png
convert /tmp/screenshot.png -blur 15x15 /tmp/screenshot_blur.png
i3lock -i /tmp/screenshot_blur.png