Giter VIP home page Giter VIP logo

i3-setup-laptop's Introduction

i3 Setup

i3 setup on Arch Linux or EndeavourOS

Setup

  1. Clone this repo
  2. cd into the home/.setup folder

There you can run a number of different scripts which will copy the needed files into their respective folders in your home.

After Running

Tasks after installing the packages and copying configs:

  1. Install junegunn/vim-plug, a vim plugin manager.
    1. Run .config/nvim/autoload/install-plug-vim.sh
    2. Open nvim
    3. Type :PlugInstall hit enter
  2. Install starship for a better shell and prompt
  3. Install zsh plugins
    1. Run git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting/
    2. Run git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
  4. Change your shell using chsh -s $(which zsh) log out and back in, or reboot
  5. Perform all or most of the steps described in the following chapters

Theming applications under i3

Common issue is that KDE and GTK application dont have theme when using i3. You need to install and setup qt6ct and lxappearance as described below.

qt6ct

  1. Install the qt6ct and breeze packages
  2. Open qt6ct and set the breeze and the font you want
  3. Save and close
  4. Edit the /etc/environment file and add the line QT_QPA_PLATFORMTHEME=qt6ct at the end. If the key already exists with the qt5ct value, you can replace it with qt6ct
  5. Reboot your system

lxappearance

  1. Install the

  2. Install the lxappearance and the breeze-gtk packages

  3. run lxappearance and change the theme

  4. Save and close

  5. Reboot your system

Fonts

The following fonts are being used in this setup:

  • ttf-ibm-plex
  • ttf-hack-nerd

Polybar

I use github.com/polybar/polybar as a status bar in my i3 setup. The following modules require specific packages or setup.

checkupdates Module

Will print the number of available updates for your system. Requires the pacman-contrib package to be installed.

network Module

Will show your current local ip, upload and download usage. You need to change the interfaces it uses in the .config/polybar/config file. You can get the available interfaces using ip link.

webcam Module

Will tell you that a webcam is currently connected! It will not tell you if its in use! By using right click you can see the current view of the camera, this requires the zvbi package.

backlight Module

Use this to change your backlight brightness on your laptop. You need to install the light package for this. Make sure to add your user to the video group using sudo usermod -a -G video <username> and log in again after this. Now you can change the brightness without using sudo.

weather Module

This requires my custom weather widget c-jaenicke/weather-go.

ag-au-price Module

Shows the current gold and silver price. Requires my custom c-jaenicke/go-silver-gold-tracker widget.

Printing and Scanning Files

Requires:

    brlaser \
    brother-dcp1610w \
    brscan4 \
    cups \
    cups-pdf \
    sane \
    sane-airscan \
    skanlite \

You can add the scanner using sudo brsaneconfig4 -a name=<NAME OF PRINTER> model=<MODEL> nodename=<HOSTNAME OF PRINTER>. You can try adding the printer automatically using the CUPS web interface. Alternatively you can add it manually using the web interface using the address ipp://<HOSTNAME>/ipp/port1.

This might not work for you because printers are great.

Issues and Fixes

Konsole Spacing Between Words

On some setups Konsole renders huge whitespaces between words. This is a font issue. To fix this you have to create a new profile in the Konsole settings and set the font to a monospace font! Save the profile and set is as the default.

Scaling on High Resolutions

Add or edit the line Xft.dpi: 192 to the home/.Xresources file. Exit the session and log in again.

Applications not using kdewallet

Sometimes fixed by installing kwalletmanager and kwallet-pam. Sometimes just installing kwalletmanager, opening it, unlocking the keyring, and then log into the application.

Generate Tree View

git ls-tree -r --name-only HEAD home| tree --fromfile -a | awk '!/directories|^$/ {print $0}'
git ls-tree -r --name-only HEAD home| tree --fromfile -a | awk '!/directories|^$/ {print $0}' > home/files.txt

i3-setup-laptop's People

Contributors

c-jaenicke avatar

Watchers

 avatar  avatar

i3-setup-laptop's Issues

light

Still need to enable light without using sudo e.g. sudo -S 50.
And then add a new backlight module to polybar.

.zshrc

Go trough .zshrc file.
Right now it is the standard config file provided by AnarchyLinux.
Might need to change a few things.

Enable layout switching

I regular switch between us and de layout, need to add a hotkey to i3.
Use dunst as a notification and maybe mod + space to switch.

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.