项目作者: VaughnValle

项目描述 :
Clean and Blue BSPWM setup
高级语言: C
项目地址: git://github.com/VaughnValle/blue-sky.git
创建时间: 2020-07-13T06:05:23Z
项目社区:https://github.com/VaughnValle/blue-sky

开源协议:MIT License

下载


Cerulean




Cerulean - 50 Shades of Blue

Cerulean is a minimalistic Linux setup for Pop! OS using various shades of blue. This setup uses BSPWM as the tiling window manager.

Love the content? Help me reach my goal of upgrading my laptop integrated GPU; any amount helps :)

paypal

Or consider supporting me on these platforms:


Dependencies

  • bspwm
  • sxhkd
  • polybar
  • picom
  • rofi
  • spotify-client
  • spicetify
  • alacritty
  • zsh
  • oh my zsh!
  • powerlevel10k
  • vim
  • slim
  • slimlock

Installation Steps (Ubuntu/Pop! OS 20.04)

NOTE: This guide uses ~/Downloads as the default path for cloning repos

  1. Update your repositories:

    1. sudo apt update
  2. Upgrade your system:

    1. sudo apt upgrade
  3. Install bspwm:

    Install required dependencies (vim included):

    1. sudo apt install build-essential git vim xcb libxcb-util0-dev libxcb-ewmh-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-xinerama0-dev libasound2-dev libxcb-xtest0-dev libxcb-shape0-dev libuv1-dev

    Clone the repository:

    1. cd ~/Downloads
    2. git clone https://github.com/baskerville/bspwm.git

    Compile and install bspwm:

    1. cd bspwm
    2. make
    3. sudo make install

    Copy bspwm configuration files:

    1. mkdir ~/.config/bspwm
    2. cp examples/bspwmrc ~/.config/bspwm
    3. chmod +x ~/.config/bspwm/bspwmrc
    4. cd ..

    OPTIONAL: Configure bspwmrc to your liking

    1. vim ~/.config/bspwm/bspwmrc
  4. Install sxhkd:

    Clone the repository:

    1. git clone https://github.com/baskerville/sxhkd.git

    Compile and install sxhkd:

    1. cd sxhkd
    2. make
    3. sudo make install

    Copy sxhkd configuration files:

    1. mkdir ~/.config/sxhkd
    2. cp ../bspwm/examples/sxhkdrc ~/.config/sxhkd
    3. cd ..

    OPTIONAL: Configure the keybind in sxhkdrc to your liking:

    1. vim ~/.config/sxhkd/sxhkdrc

    NOTE: Make sure the terminal emulator used in the config file is installed as the terminal will be the only way we can interact with bspwm upon startup after a fresh installation


  5. Install Polybar:

    Install required dependencies:

    1. sudo apt install cmake cmake-data pkg-config python3-sphinx libcairo2-dev libxcb1-dev libxcb-util0-dev libxcb-randr0-dev libxcb-composite0-dev python3-xcbgen xcb-proto libxcb-image0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-xkb-dev libxcb-xrm-dev libxcb-cursor-dev libasound2-dev libpulse-dev libjsoncpp-dev libmpdclient-dev libcurl4-openssl-dev libnl-genl-3-dev

    Clone the repository:

    1. git clone --recursive https://github.com/polybar/polybar

    Compile and install Polybar:

    1. cd polybar
    2. mkdir build
    3. cd build
    4. cmake ..
    5. make -j$(nproc)
    6. sudo make install
  6. Install Picom:

    Install required dependencies:

    1. sudo apt install meson 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 libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev libxcb-glx0-dev

    Clone the repository:

    1. git clone https://github.com/ibhagwan/picom.git

    Build (with Ninja):

    1. cd picom
    2. git submodule update --init --recursive
    3. meson --buildtype=release . build
    4. ninja -C build

    Install Picom:

    1. sudo ninja -C build install
    2. cd ..

    NOTE: Default installation path is /usr/local, use this to change the install prefix:

    1. meson configure -Dprefix=<path> build

  7. Install Rofi:

    Install required dependencies:

    1. sudo apt install bison flex libstartup-notification0-dev check autotools-dev libpango1.0-dev librsvg2-bin librsvg2-dev libcairo2-dev libglib2.0-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev

    Get necessary releases:

    1. cd ~/Downloads
    2. wget https://github.com/davatorium/rofi/releases/download/1.5.4/rofi-1.5.4.tar.gz
    3. wget https://github.com/libcheck/check/releases/download/0.15.1/check-0.15.1.tar.gz
    4. tar -xvzf rofi-1.5.4.tar.gz
    5. tar -xvzf check-0.15.1.tar.gz

    Build check:

    1. cd check-0.15.1
    2. ./configure
    3. make
    4. make check

    Install check:

    1. sudo make insttar -xvzfall
    2. cd ..

    Build rofi:

    1. cd rofi
    2. mkdir build && cd build
    3. ../configure
    4. make

    Install rofi:

    1. sudo make install

    Enable and use rofi:

    1. vim ~/.config/sxhkd/sxhkdrc

    Change dmenu to:

    1. rofi -modi run,drun,window -show drun -show-icons -sidebar-mode
  8. Install spotify:

    1. curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
    2. echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
    3. sudo apt update && sudo apt install spotify-client
  9. Install spicetify:

    Install spicetify:

    1. curl -fsSL https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.sh | sh
    2. sudo chmod a+wr /usr/share/spotify
    3. sudo chmod a+wr /usr/share/spotify/Apps -R

    Launch Spotify using spicetify:

    1. spicetify
    2. spicetify backup apply enable-devtool
    3. spicetify update

    Theming:

    1. cd ~/Downloads
    2. git clone https://github.com/morpheusthewhite/spicetify-themes.git
    3. cd spicetify-themes
    4. cp -r * ~/spicetify-cli/Themes
    5. cd ~/spicetify-cli/Themes/Dribbblish/
    6. cp dribbblish.js ../../Extensions
    7. spicetify config extensions dribbblish.js
    8. spicetify config current_theme Dribbblish color_scheme nord-dark
    9. spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
    10. spicetify apply
  10. Install alacritty:

    Install alacritty:

    1. sudo apt install alacritty

    Clone the repo:

    1. cd ~/Downloads
    2. git clone https://github.com/VaughnValle/blue-sky.git

    Apply alacritty theme:

    1. mkdir ~/.config/alacritty
    2. cp blue-sky/alacritty/alacritty.yml ~/.config/alacritty/

    NOTE: If you get the error: GLSL 3.30 is not supported error, do this:

    1. vim /usr/share/applications/com.alacritty.Alacritty.desktop

    and change Exec=alacritty to Exec=bash -c "LIBGL_ALWAYS_SOFTWARE=1 alacritty"


  11. Apply the desktop wallpaper:

    1. sudo apt install feh
    2. echo 'feh --bg-fill $HOME/Downloads/blue-sky/wallpapers/blue3.png' >> ~/.config/bspwm/bspwmrc
  12. Configure polybar:

    1. mkdir ~/.config/polybar
    2. cd ~/Downloads/blue-sky/polybar
    3. cp * -r ~/.config/polybar
    4. echo '~/.config/polybar/./launch.sh' >> ~/.config/bspwm/bspwmrc
    5. cd fonts
    6. sudo cp * /usr/share/fonts/truetype/
  13. Install Oh My ZSH!:

    1. sudo apt install zsh
    2. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)
  14. Install Powerlevel10k:

    1. git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
  15. Theme vim:

    1. mkdir -p ~/.vim/colors
    2. cd ~/Downloads
    3. cp blue-sky/nord.vim ~/.vim/colors
    4. git clone https://github.com/vim-airline/vim-airline.git
    5. cd vim-airline
    6. cp * -r ~/.vim
    7. cd ~/Downloads
    8. git clone https://github.com/vim-airline/vim-airline-themes.git
    9. cd vim-airline-themes
    10. cp * -r ~/.vim
    11. echo 'colorscheme nord' >> ~/.vimrc
    12. echo let g:airline_theme=\'base16\' >> ~/.vimrc
  16. Theme rofi:

    1. mkdir -p ~/.config/rofi/themes
    2. cp ~/Downloads/blue-sky/nord.rasi ~/.config/rofi/themes
    3. rofi-theme-selector #preview the "nord theme" with Enter and apply it with Alt+a
    4. # modify keybindings
    5. vim ~/.config/sxhkd/sxhkdrc
    6. # replace dmenu with rofi -show drun
  17. Install slim and slimlock:

    Installation slim and slimlock:

    1. sudo apt install slim libpam0g-dev libxrandr-dev libfreetype6-dev libimlib2-dev libxft-dev
    2. sudo dpkg-reconfigure gdm3 #select slim

    NOTE: If you get fatal error: ft2build.h: do:

    1. sudo vim /usr/include/X11/Xft/Xft.h

    Change line 39: to #include <freetype2/ft2build.h>" <truncated> and do:

    1. sudo cp /usr/include/freetype2/freetype /usr/include

    Then run:

    1. sudo make
    2. sudo make install
    3. cd ..

    Theming:

    1. cd ~/Downloads/blue-sky
    2. sudo cp slim.conf /etc && sudo cp slimlock.conf /etc
    3. sudo cp default /usr/share/slim/themes

Thanks for dropping by!