Last active
February 19, 2024 17:38
-
-
Save gerardparareda/ea634024162c01ef31cb11906ce89691 to your computer and use it in GitHub Desktop.
Install Eww in Ubuntu 22.04.1 LTS with Wayland
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone Eww repository dir | |
git clone https://github.com/elkowar/eww | |
# Move in | |
cd eww | |
# Uninstall Rust if necessary | |
sudo apt remove rustc | |
# Install Rustup | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
# Eww dependencies for Ubuntu 22.04.1 | |
## Enable Universe repository | |
sudo add-apt-repository universe | |
## Install build necessary dependencies | |
sudo apt install -y libgtk-layer-shell-dev libgtk-3-dev libpango1.0-dev libgdk-pixbuf-2.0-dev libglib2.0-dev | |
# Move to build folder | |
cd target/release | |
# Build Eww for Wayland | |
cargo build --release --no-default-features --features=wayland | |
# Create configuration folder | |
mkdir ~/.config/eww | |
# Start Eww daemon | |
./eww daemon | |
# Add to session PATH appending to ~/.bashrc | |
export PATH="$HOME/<your-dir>/eww/target/release:$PATH" | |
## Open a new terminal or source .bashrc | |
source ~/.bashrc | |
## Test eww from session PATH | |
eww | |
# (Optional) Copy Eww example widget | |
## Move to the eww repository folder | |
cd ../../examples/eww-bar | |
## Move example bar to configuration folder | |
mv -r * .config/eww/ | |
# Download or create eww widgets (eww.yuck && eww.scss) and open them | |
./eww open <widget> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment