GithubHelp home page GithubHelp logo

karmenzind / dotfiles-and-scripts Goto Github PK

View Code? Open in Web Editor NEW
166.0 9.0 28.0 27.54 MB

:pill: dotfiles and scripts for my Linux and Windows

Python 13.59% Shell 41.90% JavaScript 0.22% Vim Snippet 9.01% Vim Script 22.15% Lua 10.60% PowerShell 2.52%
vim archlinux arch tmux python

dotfiles-and-scripts's Introduction

🐝 dotfiles and scripts for my Linux/Win

The ArchLinux installation scripts has been migrated to this repo and is no longer maintained.

|简体中文|

🎨 Linux Windows
Shell Editor Vim/Neovim
Terminal Alacritty + Tmux + Zsh WindowsTerminal + pwsh(OMPosh)
Font Monaco Nerd
Dict kd
Others fzf / fd / ranger / lf / pistol / rg etc.
GUI Desktop i3wm -
Statusbar polybar
Launcher rofi
Notice dunst
Enhancement picom
Input fcitx5
Screenshot flameshot

Check file tree

TOC

⚙️ usage

Firstly, clone this repo.

apply all configurations

To apply everything in form of creating symbolic links for them (there will be prompt and backup before overwriting files):

python3 symlink.py

script parameters:

  • -h show this help message and exit
  • -i, --interactive Let me determine each file
  • -d, --delete remove all symlink files
  • --nogui only for terminal apps
  • --vimonly only for vim related apps

(Neo)Vim configuration and setup

Here are two sets of full-featured configuration for Vim and Neovim. Spent years refining them. There are some plugin differences, but the basic behaviors and shortcuts are pretty much the same. Mainly for everyday Python and Golang development, as well as whipping up VimL, Lua, and Bash scripts.

Simply run:

bash scripts/setup_vim.sh

This script will take care of everything included:

  • ensure Vim/Neovim installed
  • created symlinks for configuraion files
  • setup plugin and the manager
  • install related apps (lsp, linters, fixers, fuzzy finders, etc.)

Or if you only need the configuration files, run symlink.py with vimonly specified:

python3 symlink.py --vimonly

Launch Vim/Neovim and the plugin setup will start automatically.

Syncing Vim configurations directory under root might run into issues. I prefer not to create unique configuration for root user. FYI, I will create symlinks for .vimrc and .vim unser /root, sharing the same files with normal user.

install recommanded apps

These are the apps I use for pretty much everything – work, development, and everyday life.

Linux

This script supports both Arch Linux-based and Debian/Ubuntu-based distributions.

bash scripts/install_apps.sh

Windows

./dotfiles-and-scripts/scripts/setup.ps1

🧰 toolbox scripts

the description about some scripts that are no longer maintained can be found here

manage Aria2 and auto update bt-trackers

Function:

  • launch, restart, stop, check status, check log
  • update bt-tracker(from ngosang/trackerslist) periodically. Or via update subcommand
  • backup old log files
  • other trivials

Better combine with cron.

More details can be found in comments of the script.

fetch advertisement domain list for Chinese users

Mainly for Pi-hole use. Alternatively you can add domain lists directly to Pi-hole's adlists, but Pi-hole updates often get stuck (possibly due to the performance of older Raspberry Pi models). So, I decided to create a manual handling script instead.

I've mixed together domain lists from a bunch of popular repos, got rid of duplicates, and set it to run weekly in crontab. After that, just add local file link to Pi-hole.

👀 screenshots

  • i3 Desktop on ArchLinux:

  • (N)Vim:

  • Windows Terminal & pwsh7:

💡 create your own Dotfile repo

You can fork this repo and symlink your configuration files with symlink.py.

dotfiles-and-scripts's People

Contributors

karmenzind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles-and-scripts's Issues

关于/Boot分区

如果我不用/boot分区。只用/分区,安装完毕后。还能进入,你能做到吗?我的意思是,如果不破坏当前启动情况下,无论电脑是linux 还是windows,还是魔改的东西。你应该只需要提供相关的如何启动!(如果是全新硬盘,就别这样做了)
Fat分区专为启动工具使用,不用/boot能启动,可能会有各种不兼容问题。这个问题可以无视,因为你只需要看看启动arch正常不就可了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.