Code Monkey home page Code Monkey logo

dotfiles's Introduction

There's no place like ~/


Nice to have you!

img

img

These are the dotfiles for my current setup.

This configuration aims to be simple and portable. Yet there are some parts that won't work on MacOS.

The Installation section will guide you through the installation process.

For some visuals refer to the Gallery section.

Main software:

Usage

I use the configuration mostly on my Linux systems but partly on a mac for work. The install script is OS aware and will only create symlinks for macOS usable software if executed on macOS.

Furthermore the script will ask whether or not to install configuration files for Vim and Tmux from other repositories listed down below.

The install script won't install any packages, only config files.

The install script will clone the following repos:

The install script will ask to clone / setup the following repos:

Furthermore the SourceCodePro Nerd Font will be installed.

Requirements

  • git
  • stow
  • wget

Installation

Clone all repositories and components without asking. Be careful, you might loose your own config files.

curl \
    -fsSL \
    https://raw.githubusercontent.com/oliverwiegers/dotfiles/prod/install \
    -o install \
    && chmod +x install \
    && ./install

If there are current configuration files these will be moved to $HOME/current_config_backup-$(date +%Y%m%d%H%m)" so the install script should not delete or override any files.

Development and Testing

This script can be tested inside a docker container. The repository provides a Dockerfile to build an Ubuntu image including all needed packages to run my shell configuration. Some of the installed packages aren't needed to test the script itself but the functionality of the configuration afterwards.

The install script and the Dockerfile both know the GIT_BRANCH env variable to curl the install script from the right branch and checkout the right branch after cloning. The default is the prod branch.

Testing remote changes

git clone [email protected]:oliverwiegers/dotfiles.git
cd dotfiles
export branch="$(git rev-parse --abbrev-ref HEAD)"
docker build -t install_test:"${branch}" --build-arg GIT_BRANCH="${branch}" .
docker container run -it install_test:"${branch}"
./install
zsh

Testing local changes

git clone [email protected]:oliverwiegers/dotfiles.git
cd dotfiles
export branch="$(git rev-parse --abbrev-ref HEAD)"
docker build -t install_test:"${branch}" --build-arg GIT_BRANCH="${branch}" .
docker container run -v $PWD:/root/.dotfiles -it install_test:"${branch}"
cd .dotfiles
./install
zsh

Software

The install script installs configuration files for the following software.

Included in this repo

Cloned from other repos

For Vim and Tmux I use different repositories.

A big shoutout to dylanaraps for pywal. This is an awesome tool. It took me some time to reconfigure my system to use the full potential, but it is worth it a thousand times.

Firefox

Firefox is highly customized using userChrome.css and Vimium.

Show TabBar in fullscreen mode

  • Open about:config.
  • Set browser.fullscreen.autohide to false.

userChrome.css

The userChrome.css uses the colors created by pywal. These are stored in ~/.cache/wal/colors.css by default. To enable this do the following:

  • Open about:config.
  • Set toolkit.legacyUserProfileCustomizations.stylesheets to true.
  • Enable userChrome.css support. (FF 69+).
  • Open about:profile.
  • Find out currently used profile.
  • Create $HOME/.mozilla/firefox/$profile_name/chrome directory.
  • Create $HOME/.mozilla/firefox/$profile_name/chrome/userChrome.css file.
  • Add some rules.
  • Restart Firefox.

Vimium-FF

To apply the Vimium config you need to apply the config in the plugin settings inside of Firefox. I didn't find a way to import the pywal colors so you need to generate the final config by hand.

  • Generate config.
    • cat ~/.cache/wal/colors.css ~/.dotfiles/extra/firefox/vimium_theme | clipcopy
  • Open Firefox.
  • Type about:addons into URL bar and hit Enter.
  • Go to Vimium preferences.
  • Open "Advanced Options".
  • Clear "CSS for Vimium UI".
  • Paste the generated config into the empty text field.
  • Save changes.

Gallery

These are screenshots from my current Void Linux system.

Fake Buisy

img

Clean Desktop

img

Locked Screen

img

Firefox Clean

img

Firefox Tabbar

img

Firefox Vimium-FF

img

Tmux

img

ToDo

  • Create Keybing Section
  • Create theming mechanism / script
    • Copy wallpaper to ~/.cache/wallpaper.png
    • Talk to pywal
    • Set GTK theme
    • generate vimium theme
    • Themes
      • Gruvbox
      • Nord
      • Dracula
      • Onehalf
      • Spaceduck
      • Iceberg

1

dotfiles's People

Contributors

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