Code Monkey home page Code Monkey logo

dotfiles's Introduction

dotfiles

Clone this repository in your home directory (~). The install.sh script checks pre- and post-conditions, links files and installs/updates programs.

cd ~
git clone https://github.com/andys8/dotfiles.git
cd dotfiles
./install.sh

Machine specific configuration

~/bin/startup.sh

Local script executed on machine startup

#!/bin/bash
[ -z "$(pgrep dropbox)" ] && dropbox start &
[ -z "$(pgrep -f duplicati)" ] && duplicati &
# ubuntu only
[ -z "$(pgrep pulseaudio)" ] && pulseaudio --daemonize
#!/bin/bash
[ -z "$(pgrep -f slack)" ] && slack --startup &
[ -z "$(pgrep -f gcal-notifier-kotlin-gtk)" ] && gcal-notifier-kotlin-gtk &
[ -z "$(pgrep -f hasmail)" ] || killall hasmail
hasmail &

.hasmailrc

click=xdg-open https://mail.google.com

[gmail]
hostname=imap.gmail.com:993
username=<email>
password=lpass show -p personal/gmail-hasmail

~/.gitconfig.machine

Local default git user configuration with an example for conditional includes.

[user]
    name = andys8
    email = [email protected]

[includeIf "gitdir:~/dev/repository/work/"]
    path = ~/.gitconfig.work

~/.gitconfig.work

[user]
    name = andreas
    email = [email protected]
[url "ssh://[email protected]/"]
    insteadOf = https://[email protected]/

~/.profile.machine

Contains per system environment variables (optional).

export PATH=/home/user/example-path:$PATH
export SLACK_TOKEN=example-token

Shell

Change shell to fish

bash -c 'chsh -s $(chsh -l | grep -m 1 fish)'

Fish theme

Open config with fish_config and set theme to dracula in Web-UI.

Terminal

Alacritty

DPI

Add WINIT_HIDPI_FACTOR=1.0 to /etc/environment

Add alacritty to terminals

sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/alacritty 80

st (suckless-terminal)

Fork of st: andys8/st

Add st to terminals and set as default

sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/st 80
sudo update-alternatives --config x-terminal-emulator

Xmonad

lightdm is expected. /usr/share/xsessions/xmonad.desktop will be created if not existing.

Super + Space on Ubuntu

Run ibus-setup and delete shortcut to remove conflict with keybinding.

Qutebrowser

Default browser

xdg-settings set default-web-browser org.qutebrowser.qutebrowser.desktop
xdg-settings set default-web-browser chromium.desktop # or stick with chromium
xdg-mime default chromium.desktop x-scheme-handler/https
xdg-mime default chromium.desktop x-scheme-handler/http

Spell checking

Download dictionaries for spell checking

git clone https://github.com/qutebrowser/qutebrowser.git && cd qutebrowser
./scripts/dictcli.py install en-US
./scripts/dictcli.py install de-DE
# or with virtualenv (if wrong directory)
./.venv/bin/python3 ./scripts/dictcli.py install en-US

Might be necessary to copy to ~/.local/share/qutebrowser/qtwebengine_dictionaries

Time

Enable time synchronization with timedatectl set-ntp true.

Git

Set credentials in ~/.netrc

sudo

Open sudo visudo and add these lines to enable asterisks and silly feedback.

Defaults insults
Defaults pwfeedback
  • Defaults secure_path is not set to keep $PATH and access to user installed binaries with sudo.
  • Defaults env_keep += "HOME" keeps the home directory and uses configuration files.

Pacman

Enable in /etc/pacman.conf:

Color
ILoveCandy
VerbosePkgLists

Theme

Install xcursor-breeze and Ant-Dracula theme. Configure with lxappearance.

stats

dotfiles's People

Contributors

andys8 avatar

Stargazers

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

Watchers

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