Skip to content

hp77-creator/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles that I use for my system.

❗ Update

Date: 9 Feb 2023

  1. Added customization to grub bootloader theme, lightdm
  2. Made booting fast by using systemd-analyze blame and removing service which are not necessary
  3. configured vim to nvim, used @madrix01's config files for that
  4. updated my shell to zsh and using oh-my-zsh with p10k configuration

Date: 24 June 2022 I have recently done a lot of modification in my configs, beginning from being able to open some apps in their workspaces to multiple xmobars on same monitor.

  1. Multiple xmobar in same monitor needs hacks like configuring it according to your window(so copy it at your own risk), I will upload them in separate files(ex: xmobarrc1, xmobarrc2, xmobarrc3) and also corresponding xmonad config as xmonad-multi.hs
  2. I have also added an icon in xmobar which is a xpm file
  3. I have also added box type style to all the components in xmobar(inspired by DT's config, link here)
⚡ Current
Backstory I fell in love with Vim and type of speed that it provides me and also the independence from the mouse. But the benefit was limited to only editor or when I was writing code. I wanted a system where Vim like keybindings are everywhere. I dig up internet to look for solutions which will make me use vim-like keybindings everywhere and came across the beautiful community of [Unixporn](www.reddit.com/r/unixporn), where different Linux users from around globe share their desktop customizations(known as rice) and from there I got to know of [DistroTube(DT)](https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg), this guy has a lot of videos on window manager and configs and what not. I looked functionalities of different windows manager but only Xmonad caught my eye because of its simplicity and Vim like keybindings and Here I am. 😆 .

To use these dotfiles for your system, you will have:

  • copy xmobar inside your .config directory(for xmobar)
  • copy xmonad in your ~ under directory name .xmonad

or copy them inside your home directory. Below is the detailed procedure for each application.

Bash

Bash I use bash for my system because it is the default and I was not looking for any hi-fi customization for my shell. To implement customization for your shell and if your shell is also Bash. You can simply copy the content of this repo's bashrc into your .bashrc.

Vim

Vim

My goto editor is Vim, so I have some customization for vim as well, to implement these changes you should copy all the content from .vim folder here into your system's.

If your system does not have vim by default, then first install it.

Command to install Vim in system with apt package manager is:

sudo apt update
sudo apt install vim

Xmonad

xmonad with icons in xmobar

xmonad in Mirror Tall config xmonad in Mirror Tall mode

xmonad in Full screen xmonad in FullScreen mode

xmonad in Tall Config It is a windows manager which can be configured using haskell language. By default, Ubuntu uses Gnome as its window manager but Gnome comes with lot of stuff which you usually do not need, so switching to more suckless windows manager is a good experience. And Xmonad helps to do just that.

There are different types of application in use, so you will have to ensure that they are installed on your system. Detailed setup will be updated soon.

To install it on ubuntu, follow steps provided in here

To be able to fully implement all the settings from the given xmonad.hs, you will have to have some tools already installed in your system, like:

  • xdotool

This pkg lets you use your mouse on xmobar and make it clickable.

sudo apt-get update -y
sudo apt-get install xdotool 
  • xmobar

With Xmonad it is essential to have Xmobar. Xmobar is a bar like application where you can customize what updates/information you want to display.

xmobar-with-icons

sudo apt-get update -y
sudo apt-get install xmobar
  • lxappearance(for changing GTK+ theme)
sudo apt-get update -y
sudo apt-get install -y lxappearance
  • picom(for aesthetic look and effect)

    link for instruction on how to install picom and a configuration file is provided in here.

Example

  • lux(for controlling backlight)
$ git clone https://github.com/Ventto/lux.git
$ cd lux
$ sudo make install

⚠️ Android Emulator will not work properly, add following lines to the config to make it work

myManageHook = composeAll 
[ ....
, stringProperty "_NET_WM_NAME" =? "Emulator" --> doFloat
]
  • Script for getting battery low notification

I created a cronjob for the same following this link. I have also added the script inside xmonad directory in case you don't want to copy paste from the website You will have to also install xosd-bin it is a tool which helps to display messages on screen in X-Display.

sudo apt update
sudo apt install xosd-bin
  • Step to create the cronjob is:
> crontab -e
DISPLAY=0.0
PATH=/usr/bin

* * * * * python3 ~/.xmonad/power.py

source of this info

  • grub

Link Above link is a good guide on how to do modifications to grub, lightdm and plymouth. To know more about Plymouth.

after making a change in grub file, don't forget to do

sudo update-grub

Links

Some helpful links that got me through the config of my system, you can explore these and have something of your own.

Thanks for checking out the repo. Have a good day. ❤️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published