Giter Club home page Giter Club logo

linux-dotfiles's Introduction

Linux dotfiles

This is my collection of dotfiles for Linux systems, all stored in a bare git repo, and managed with the technique described at: https://www.atlassian.com/git/tutorials/dotfiles.

To install on a freshly minted machine or container:

Setup Arch

Linux packages

TODO: Packages that need to be installed...

Xorg High DPI

1- Manually configure the monitor in the X11 config. https://wiki.archlinux.org/title/org#Monitor_settings

Section "Monitor"
  Identifier "Virtual1"
  Modeline "3840x2160_60.00" 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -HSync +V
  Option "PreferredMode" "3840x2160_60.00"
  DisplaySize 597 336 # In millimeters
EndSection

Modeline can be obtained by using an online calculator (Google). Exact display dimensions can be obtained either from the manufacturer specs or by calculating it based on the diagonal size.

2- Get the real DPI from `xdpyinfo grep -B2 resolution

   screen #0:
    dimensions:    3840x2160 pixels (598x336 millimeters)
    resolution:    163x163 dots per inch

3- Set the dpi in the X server command line at the display manager, e.g. for sddm, we add the '-dpi 163' to 'ServerArguments' in /etc/sddm/sddm.conf

Manual install additional packages

SDDM sugar-candy theme

https://framagit.org/MarianArlt/sddm-sugar-candy

sudo mkdir -p /usr/share/sddm/themes/sugar-candy &&
curl -s https://framagit.org/MarianArlt/sddm-sugar-candy/-/archive/v.1.1/sddm-sugar-candy-v.1.1.tar.gz |
sudo tar zxvf - -C /usr/share/sddm/themes/sugar-candy --strip-components 1.1

Rust

rustup default stable

Java

sudo archlinux-java set java-17-openjdk

Ruby

gem install neovim

Setup dotfiles

git clone --bare https://bitbucket.org/durdn/cfg.git $HOME/.cfg
function config {
   /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
  echo "Checked out config.";
  else
    echo "Backing up pre-existing dot files.";
    config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no

To edit dotfiles in vscode and have full access to git functionality, use the alias defined below:

alias dote=GIT_WORK_TREE=~ GIT_DIR=.dotfiles code ~

Finalize Git settings

GIT_AUTHOR_NAME="<Your Name>"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="<Your Masked Address>"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Finalize zsh setup

TODO: Install oh-my-zsh and plugins

Finalize vim setup

:TSInstall

:LSPInstall

linux-dotfiles's People

Contributors

abdes avatar

Stargazers

 avatar

Watchers

 avatar  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.