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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user