Git Product home page Git Product logo

.dotfiles's Introduction

There is no place like $HOME

This config includes Hyprland, neovim and zsh.

Last commit Size

Prerequisites

  1. git must be installed
  2. Your brain must be present in skull.

HYPRLAND SETUP

To get started you'll need few utilities and some basic things, We'll go in steps as;

  1. Adding Wayland & Xwayland
  2. Installing an AUR helper
  3. Installing hyprland and related dependencies
  4. Setting up audio, video, Brightness, wofi & Screenshot
  5. Installing and configuring app clients like Discord, Telegram

Setup

Setting Up Wayland and Xwayland

If you are running something like Gnome, Kde, Sway, Qtile e.t.c you can skip this step and move to next one

sudo pacman -Sy wayland libdrm pixman libxkbcommon python2 libxml2 \
llvm libpng gegl mtdev xorg-xwayland  qt5-wayland qt6-wayland 

These dependencies will setup the base required for proper functioning of hyprland or any other window manager based on wayland

Xwayland is requied to run some xorg specific dependencies without it you might feel lags or stutters while doing some task or some task might break

Installing AUR Helper (Paru)

git clone https://aur.archlinux.org/paru-bin && cd paru-bin && makepkg -si

After Installing paru, check for any updates using Paru.

Installing hyprland and other related packages to make Hyprland functional

paru -S hyprland-bin hyprpaper waybar-hyprland-git xdg-desktop-portal-hyprland \
wlroots xdg-desktop-portal polkit-kde-agent wofi thunar thunar-volman gvfs-mtp gvfs mtpfs

Setting up Volume, Brightness & other useful stuff

paru -S light pavucontrol alsa-utils mako mpv brave-bin nm-applet

Config installation

Following are the general packages that you need.

kitty neovim zsh zsh-completions zsh-syntax-highlighting zsh-autosuggestions \
starship ntfs-3g intel-ucode npm

Run the following piece of code in $HOME directory.

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

It takes the backup of current config files in .dotfiles-backup folder and installs remote config.


Other Useful stuff and fixes

Bluetooth

  1. Install bluez blueman bluez-utils pulseaudio-bluetooth
  2. sudo systemctl enable bluetooth.service
  3. sudo systemctl start bluetooth.service

Thumbnail fix

  • Dolphin - Install ffmpegthumbs package.
  • Thunar/Nautilus - Install ffmpeg ffmpegthumbnailer gst-libav

In case insalling these alone doesn't work, remove ~/.thumbnails, then ln -s $HOME/.cache/thumbnails $HOME/.thumbnails

Chaotic AUR

First, install the primary key - it can then be used to install Chaotic AUR's keyring and mirrorlist.

pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'

Append (adding to the end of the file) to /etc/pacman.conf:

[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist

To mount NTFS

  1. Get UUID of disk with lsblk -f
  2. Add following to /etc/fstab
UUID=<UUID>     <mount-point>   ntfs    rw,uid=1000,gid=1000,umask=0022,fmast=0022  0 0

Add WARP+

  1. Install cloudflare-warp-bin
  2. sudo systemctl enable --now warp-svc.service
  3. sudo systemctl stop systemd-resolved
  4. sudo systemctl disable systemd-resolved
  5. warp-cli register
  6. warp-cli set-license <enter your key>
  7. To set different modes warp-cli set-mode <your-mode>
  8. warp-cli connect

Keyring related issue

Here is the required commands to reset the keys.

mv /etc/pacman.d/gnupg /root/pacman-key.bak
pacman-key --init
pacman-key --populate archlinux

pacman -Syy archlinux-keyring

Make sure to update the system after this.

Other Apps

  • evince - PDF Reader
  • mpv - Video Player (VLC sucks in Linux)
  • imv - Image Viewer

.dotfiles's People

Contributors

mahtosujeet avatar

Stargazers

 avatar

Watchers

 avatar

.dotfiles's Issues

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.