ysl2 / .dotfiles

My dotfiles
2 stars 0 forks source link

Localhost configs #11

Open ysl2 opened 1 year ago

ysl2 commented 1 year ago

/home/yusongli/.dosbox/dosbox.localhost.conf

[autoexec]
mount c /home/yusongli/Documents/asm/dependencies/MASM
c:
ysl2 commented 1 year ago

/home/yusongli/.config/alacritty/alacritty.localhost.yml

font:
  size: 13.0
window:
  opacity: 1.0
ysl2 commented 1 year ago

/home/yusongli/.bashrc.localhost.pre

#!/bin/bash
MYCONDA=/home/yusongli/.Local/bin/miniconda3
MYTMUX=/usr/bin/tmux

/home/yusongli/.bashrc.localhost.post

#!/bin/bash

export http_proxy=127.0.0.1:7890
export https_proxy="$http_proxy"

alias 201="ssh yusongli@abc.cn -p 23331 -i ~/.ssh/yusongli_201"
alias i53="ssh yusongli@219.231.164.69 -p 2444"

function cd {
    builtin cd "$@"
    command -v conda &> /dev/null && conda_env
}

function conda_env {
    [[ $PWD/ == $HOME/Documents/baiduseg/* ]] && conda activate baiduseg
    [[ $PWD/ == $HOME/Documents/yunet/* ]] && conda activate yunet
    [[ $PWD/ == $HOME/Documents/fastvit/* ]] && conda activate fastvit
    [[ $PWD/ == $HOME/Documents/wangzhiping/* ]] && conda activate wangzhiping
}
ysl2 commented 1 year ago

~/.ssh/config.localhost

Host hd202
    HostName abc.cn
    User yusongli
    Port 23332
    Identityfile ~/.ssh/yusongli_202

Host i53
    HostName 219.231.164.69
    User yusongli
    Port 2444
ysl2 commented 10 months ago

~/.scripts/wm/autostart.localhost.sh

#!/bin/sh

# Small and big:
# xrandr --output eDP-1 --mode 1920x1080 --pos 320x1440 --rotate normal --output HDMI-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-2 --off
# Small and middle:
xrandr --output eDP-1 --mode 1920x1080 --pos 0x1024 --rotate normal --output HDMI-1 --off --output DP-1 --primary --mode 1280x1024 --pos 320x0 --rotate normal --output HDMI-2 --off
# Small and TV:
# xrandr --output eDP-1 --mode 1920x1080 --pos 0x768 --rotate normal --output HDMI-1 --primary --mode 1360x768 --pos 280x0 --rotate normal --output DP-1 --off --output HDMI-2 --off
# feh --bg-fill ~/Pictures/wallpapers/2560x1440.svg
feh --bg-fill ~/Pictures/garden.jpeg
# swaybg -i ~/Pictures/wall.png -m fill
fcitx5 &
udiskie --no-automount --no-notify --tray &
cfw &
ysl2 commented 1 month ago

vim hot setting

set nu rnu sb spr et ts=4 sw=4

vim hot settings for single file

# vim: set et ts=4 sw=4: