debug bash overlap because custom prompt errors\nadd nvidia kernel config
This commit is contained in:
1
TODO
1
TODO
@@ -1,4 +1,3 @@
|
|||||||
install steam, wine and lib32 multilib
|
install steam, wine and lib32 multilib
|
||||||
pipwire-pulseaudio as root to X11
|
pipwire-pulseaudio as root to X11
|
||||||
add nvidia to modprobe ant mkinitcpio (hyperland doc)
|
|
||||||
configure ranger
|
configure ranger
|
||||||
|
|||||||
@@ -15,6 +15,13 @@ sed -i "s|^#ParallelDownloads.*|ParallelDownloads = 10|" /etc/pacman.conf
|
|||||||
#pacman -Syu --noconfirm
|
#pacman -Syu --noconfirm
|
||||||
#pacman -S --noconfirm - < packages
|
#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
|
### Configure tty
|
||||||
mkdir -p /etc/systemd/system/getty@tty1.service.d
|
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
|
ln -sf "${_DIRNAME}/links/tty/autologin.conf" /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
|
|||||||
1
links/modprobe/blacklist.conf
Normal file
1
links/modprobe/blacklist.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
blacklist pcspkr
|
||||||
1
links/modprobe/nvidia.conf
Normal file
1
links/modprobe/nvidia.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
options nvidia_drm modeset=1 fbdev=1
|
||||||
@@ -30,9 +30,9 @@ fi
|
|||||||
. /usr/local/share/dotfiles/scripts/git.sh
|
. /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="\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;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;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;069m\] \$(_git)\[\e[00m\]\[\e[38;5;069m\]\[\e[00m\] "
|
||||||
|
|
||||||
# You may comment the following lines if you won't `ls' to be colorized:
|
# You may comment the following lines if you won't `ls' to be colorized:
|
||||||
eval "$(dircolors)"
|
eval "$(dircolors)"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ _git () {
|
|||||||
_ORIGIN="$(git remote show)"
|
_ORIGIN="$(git remote show)"
|
||||||
_AHEAD=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" | cut -f 1)
|
_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)
|
_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 ))
|
if (( _MODIFIED == 0 )) && (( _UNTRACKED == 0 )) && (( _AHEAD == 0 )) && (( _BEHIND == 0 ))
|
||||||
then
|
then
|
||||||
printf ""
|
printf ""
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sleep 1
|
||||||
import -window root /tmp/screenshot.png
|
import -window root /tmp/screenshot.png
|
||||||
convert /tmp/screenshot.png -blur 15x15 /tmp/screenshot_blur.png
|
convert /tmp/screenshot.png -blur 15x15 /tmp/screenshot_blur.png
|
||||||
i3lock -i /tmp/screenshot_blur.png
|
i3lock -i /tmp/screenshot_blur.png
|
||||||
|
|||||||
Reference in New Issue
Block a user