Added nvim spell checks, some ssh config for work, xrandr settings for monitor switching, kubernetes alias and starship

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-07-22 18:57:25 +02:00
parent 40d2d85ecb
commit 767910406f
15 changed files with 295 additions and 200 deletions

View File

@@ -32,17 +32,21 @@ function battery_routine {
function monitor {
oldmonstats="$monstats"
if xrandr | grep "$extern disconnected"; then
monstats="$intern"
xrandr --output "$extern" --off --output "$intern" --auto
else
monstats="$extern"
xrandr --output "$intern" --off --output "$extern" --auto
fi
if [ "$oldmonstats" != "$monstats" ]; then
oldmonstats="$monstats"
feh --randomize --bg-fill $HOME/Pictures/Wallpaper/basic/*;
dunstify -r 1 "Using $monstats.";
if [ "$monstats" == "$intern" ]; then
xrandr --output "$extern" --off --output "$intern" --auto;
else
xrandr --output "$intern" --off --output "$extern" --auto;
fi
fi
}
while :