Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 2.74 KB

File metadata and controls

82 lines (57 loc) · 2.74 KB


highonskooma's dotfiles


My personal configurations for endeavourOS with the i3 window manager.

🖼️ Gallery


🖌️ Dynamic Theme

A Dynamic theme can be applied to the system based on the main colors of a wallpaper. A script is run at every login that picks a random wallpaper from my wallpapers folder and uses pywal to create a corresponding color scheme. This color scheme can be applied to alacritty, kitty, polybar, neovim and rofi.


📜 Scripts

  • wallpaperRandomizer.sh
#!/bin/bash

# Set the directory of your wallpapers
WALLPAPERS_DIR="$HOME/Pictures/wallpapers"

# Check if the wallpapers directory exists
if [ ! -d "$WALLPAPERS_DIR" ]; then
    echo "Wallpapers directory not found."
    exit 1
fi

# Get a random wallpaper from the wallpapers directory
random_wallpaper=$(ls $WALLPAPERS_DIR | shuf -n 1)

# Set the wallpaper using feh
feh --bg-fill "$WALLPAPERS_DIR/$random_wallpaper"

# Run pywal.sh script located in ~/Scripts if it exists
PYWAL_SCRIPT="$HOME/Scripts/pywal.sh"
if [ -f "$PYWAL_SCRIPT" ]; then
    bash "$PYWAL_SCRIPT" "$WALLPAPERS_DIR/$random_wallpaper"
else
    echo "pywal.sh script not found."
fi

Theme specific configuration

My alacritty config imports a color scheme from .config/wal/templates like described here. I've also added include ~/.cache/wal/colors-kitty.conf to my kitty config. In neovim, I just use wal.vim.


Managed with gnu stow.


Personal Notes

  1. Copy configuration file into ~/dotfiles directory following the same structure as the home folder.
  2. Before running stow . make sure to commit any unsaved changes.

Dealing with directories

  1. Copy the whole directory to the corresponding ~/dotfiles location.
  2. Run stow with the --adopt flag: stow --adopt ..

New files/directories (plugins, extra configuration...)

New files cannot be added directly to the dotfiles directory, instead:

  1. Make sure to create the file on the default config location.
  2. Copy the file/directory into ~/dotfiles.
  3. Run stow with the adopt flag (this will create the new symlinks).