Coder Social home page Coder Social logo

dotfiles's Introduction

my dot files, with ability to install by stow

As I'm using my dot files for many platforms (linux, macos) I'm trying to use shared\common configurations like fonts etc that will be working easily for both platforms.

In most cases, I'm trying to avoid as much as possible platform specific things.

Installing dotfiles by GNU stow

Stow is very simple but powerful toos to manage dotfiles. https://www.gnu.org/software/stow/

Good manuals can be found in YouTuber typecraft https://medium.com/quick-programming/managing-dotfiles-with-gnu-stow-9b04c155ebad

brew install stow

cd ~/
git clone https://github.com/sergii-dudar/dotfiles.git
cd dotfiles

# install for example allacritty
stow allacritty

# in case we have existing config, that we want to override
# we need apply kind of hack, as stow now supported it fully from box

stow --adopt allacritty

# after this, we need restore in git dotfiles alacritty configs
# as --adopt just swapping existing configs with repo, and them make link with replacing existing config file 

Fonts

source: https://github.com/ryanoasis/nerd-fonts/releases

My favorite fonts: Hack Nerd Font: Regular|Bold

On mac can be installed by brew, or manually downloaded and imported by standard Font Book application

On linux the easiest way is

https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Hack.zip

wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip \
&& cd ~/.local/share/fonts \
&& unzip JetBrainsMono.zip \
&& rm JetBrainsMono.zip \
&& fc-cache -fv

wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Hack.zip \
&& cd ~/.local/share/fonts \
&& unzip Hack.zip \
&& rm Hack.zip \
&& fc-cache -fv

Dotfiles external extensions.

To easily install dotfile tools extensions as third party themes, extension etc from third party repos using directory dotfiles.extensions near dotfiles.

Dependencies

Ranger

Alacritty

ZSH

tmux

keyd

neovim

Key binds (GNOME)

System
  • Show the overview - disabled
Window
  • Activate the window menu - disabled
  • Close window - Shift+Super+C
  • Resize Window - Super+W
  • Toggle Fullscreen mode - Super+F11
Custom Shortcuts
  • Flameshot: [ flameshot gui ] key:Print

  • chrome: [ google-chrome ] key:Super+B (google-chrome-stable)

  • file manager: [ nautilus ] key:Super+F

  • intellij: [ intellij-idea-ultimate ] key:Super+I

  • rofi run: [ rofi -show open ] key:Super+S

  • zellij: [ kitty --hold zsh -c "zellij" ] key:Super+R

  • terminal kitty: [ kitty ] key:Super+Enter

  • terminal alacritty: [ alacritty ] key:Super+Enter

  • ranger: [ alacritty -e zsh -i -c "ranger ." ] key:Super+R

/usr/share/X11/xkb/rules/evdev.xml
<configItem>
    <name>ua</name>
    <!-- Keyboard indicator for Ukranian layouts -->
    <shortDescription>πŸ‡ΊπŸ‡¦</shortDescription>
    <description>Ukrainian</description>
    <languageList>
      <iso639Id>ukr</iso639Id>
    </languageList>
  </configItem>

<configItem>
    <name>gb</name>
    <!-- Keyboard indicator for English layouts -->
    <shortDescription>πŸ‡ΊπŸ‡Έ</shortDescription>
    <description>English (UK)</description>
    <languageList>
      <iso639Id>eng</iso639Id>
    </languageList>
</configItem>
/etc/pacman.conf
  • Color
  • ILoveCandy

/etc/default/grub

  • GRUB_TIMEOUT_STYLE=hidden
  • sudo update-grub

systray

remove windows title bar

disable Wayland and use Xorg

/etc/gdm/custom.conf file and uncomment the following line:
#WaylandEnable=false

disable logout on close laptop (Lid Switch)

sudo nvim /etc/systemd/logind.conf
HandleLidSwitch=ignore

translate apps

Burn iso from linux

- connect USB
- sudo fdisk -l | grep "Disk /dev/s"
- ls | grep '.iso'
- sudo dd bs=4M if=./archlinux-2024.07.01-x86_64.iso of=/dev/sda status=progress oflag=sync
- (optionally) we can download iso.sig to check iso sign to verify: gpg --keyserver-options auto-key-retrieve --verify archlinux-2024.07.01-x86_64.iso.sig archlinux-2024.07.01-x86_64.iso

Install Arch as by - archinstall script pre-actions

  • format system disc fully
  • lsblk (find sys disc name, fot example it's sda)
  • sudo mkfs -t ext4 /dev/sda (fully, with sub partitions)

connect to internet by wify from tty

dotfiles's People

Contributors

serhii-dudar-gl avatar

Watchers

serhii.dudar 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.