Giter VIP home page Giter VIP logo

dotfiles's Introduction

My dotfiles!

I have written my own script to backup the dotfiles. All my dotfiles (and other config files) are stored in the df directory. The files text file contains the list of directories/files to store.

Files config format

Each line represents a directory to backup/store. Each relative path is relative to the $HOME directory. For absolute paths, start them with a slash character (/).

To include multiple files/directories from the same directory, you can use a section to prefix all files from that directory. See the following example:

bin                 -> $HOME/bin

[.config]
dunst               -> $HOME/.config/dunst
i3                  -> $HOME/.config/i3

[scripts]
something_cool      -> $HOME/scripts/something_cool

/etc/udev/rules.d   -> /etc/udev/rules.d

Note in the previous example, the -> ... is not part of the config and only to show what the path represents.

Usage

To back up your own dotfiles, make a copy of this repo and delete the df directory. Then, modify the files directory to the dotfiles you want to back up yourself.

Save your dotfiles with:

go run . save

And load your dotfiles with:

go run .

MY dotfiles

Here is a (almost) comprehensive list of all my dotfiles/config files. These are the specs of my current system (thanks to hyfetch):

                                  mikey@spectre 
       _,met$$$$$gg.              ------------- 
    ,g$$$$$$$$$$$$$$$P.           OS: Debian GNU/Linux 12.5 (bookworm) x86_64 
  ,g$$P"        "\""Y$$.".        Host: HP Spectre x360 Convertible 15-eb0xxx 
 ,$$P'              `$$$.         Kernel: 6.1.0-21-amd64 
',$$P       ,ggs.     `$$b:       Uptime: way too long smh
`d$$'     ,$P"'   .    $$$        Packages: also way too many TT
 $$P      d$'     ,    $$P        Shell: zsh 5.9 
 $$:      $$.   -    ,d$$'        Resolution: 3840x2160 @ 60.00Hz (oop 4k laptop monitor)
 $$;      Y$b._   _,d$P'          WM: i3 
 Y$$.    `.`"Y$$$$P"'             Terminal: x-terminal-emulator
 `$$b      "-.__                  CPU: Intel i7-10750H (12) @ 5.0GHz 
  `Y$$                            GPU: NVIDIA GeForce GTX 1650 Ti Mobile 
   `Y$$.                          GPU: Intel CometLake-H GT2 [UHD Graphics] 
     `$$b.                        Memory: never enough TT
       `Y$$b.                     Network: Wifi6 
          `"Y$b._                 Bluetooth: Intel Corp. AX201 
              `"\""               BIOS: AMI 15.16 (11/02/2022)

Bin scripts

  • bin/lock - simple 1 liner to configure i3 lock UI
  • bin/monitors - configure multiple monitors; I have a 4k laptop screen, so doing the DPI and xrandr config is annoying with HD monitors. This script runs on startup and users can run it whenever they plug in/unplug monitors. It's a little annoying bc apps don't autoscale and need to be restarted.

General configs

  • .zshrc - Main zsh config file, mostly just loading plugins for oh-my-zsh
  • .zshenv and .zshprofile - idk what these are for exactly but some programs like to put their paths here
  • .vim/ - directory with all the vim stuff like colors and plugins
  • .vimrc - Vim config!!

Config directory

  • .config/i3/config - i3 config file
  • .config/polybar/launch.sh - Main script to launch polybar, checks for multi monitor, DPI, and kills running instances
  • .config/polybar/config.ini - polybar config file
  • .config/dunst/dunstrc - dunst config file
  • .config/hyfetch.json - hyfetch config file
  • .config/rofi/config.rasi - rofi config file

dotfiles's People

Contributors

michaelzhao21 avatar

Watchers

 avatar

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.