kanchiLUG lightning talk 13-10-2024

topic : setup pywal and picom
description : setup pywal and custom build picom compositor

Pywal:
Pywal is a Python package that sets wallpapers and generates a colour palette based on the wallpaper’s colours.

Picom:
Picom is a compositor that provides improved animations, blur effects, and rounded corners.

my org file

kanchiLUG lightningTalk

  • pywal
    ** required packages
    *** python3
    *** python3-pip
    *** python3-venv
    *** feh
    ** installation
    #+begin_src sh
    sudo apt update;
    sudo apt install python3-pip python3-venv feh
    #+end_src
    ** setup virtual environment
    #+begin_src sh
    python3 -m venv .venv
    #+end_src
    ** install pywal
    #+begin_src sh
    source .venv/bin/activate
    pip install pywal
    #+end_src
    ** run pywal
    *** terminal
    #+begin_src sh
    source .venv/bin/activate
    wal -i wallpaper/wall.jpg
    #+end_src
    *** config file
    #+begin_src sh
    $HOME/.venv/bin/wal -i wallpaper/wall.jpg
    #+end_src
    *** create softlink
    #+begin_src sh
    sudo ln -s ~/.venv/bin/wal /usr/local/games/pywal
    pywal -i wallpaper/wall.jpg
    #+end_src
    ** setup i3/polybar/terminal
    #+begin_src sh
    #i3
    set_from_resource $fg i3wm.color7 #f0f0f0
    set_from_resource $bg i3wm.color2 #f0f0f0
    set_from_resource $ind i3wm.color6

    #polybar
    [colors]
    background = ${xrdb:color0:#222}
    foreground = ${xrdb:color7:#222}
    foreground-alt = ${xrdb:color7:#222}
    primary = ${xrdb:color1:#222}
    secondary = ${xrdb:color2:#222}
    alert = ${xrdb:color3:#222}
    disabled = ${xrdb:color8:#222}
    uptime = ${xrdb:color6:#222}

    #terminal
    (cat ~/.cache/wal/sequences &)
    #+end_src

** other information
*** couldn’t generate pattle
#+begin_src sh
pywal -i wallpaper/shield.jpg

[I] image: Using image shield.jpg.
[I] colors: Generating a colorscheme.
[I] colors: Using wal backend.
[W] wal: Imagemagick couldn't generate a palette.

#+end_src
*** change resolution
#+begin_src sh
-R - reload previous colorscheme
-e - skip reloading gtk/xrdb/i3/sway/polybar
pywal -Re
#+end_src

  • picom
    ** clone repository
    #+begin_src sh
    git clone GitHub - jonaburg/picom: A lightweight compositor for X11 (previously a compton fork)
    #+end_src
    ** build require packages
    #+begin_src sh
    sudo apt update
    sudo apt install ninja meson cmake
    sudo apt install libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev
    #+end_src
    ** build
    #+begin_src sh
    meson --buildtype=release -Dregex=false . build
    ninja -C build
    sudo ninja -C build install
    #+end_src
    ** config
    #+begin_src sh
    mkdir ~/.config/picom
    cp picom.sample.conf ~/.config/picom/picom.conf
    #+end_src

other resource
pywal(itsFOSS) : Automatically Change Color Scheme of Your Linux Terminal Based on Your Wallpaper

2 Likes