Git Product home page Git Product logo

dwm's Introduction

Dwm

Language

My custom and patched build of dwm.

Patches:

To install this on your system, first you need the following dependencies:

yay -S nerd-fonts-ubuntu-mono

I always use that font for icons. You will also need my custom dwmblocks and ~/.local/bin scripts.

# dwm & dwmblocks
cd ~/.config
git clone https://github.com/antoniosarosi/dwm.git
mkdir -p ~/.local/share/dwm
ln -s ~/.config/dwm/autostart.sh ~/.local/share/dwm

# Scripts
mkdir -p ~/.local/bin
cd ~/.local/bin
curl -sL "https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.local/bin/battery" -o battery
curl -sL "https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.local/bin/volume" -o volume
curl -sL "https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.local/bin/percentage" -o percentage
curl -sL "https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.local/bin/brightness" -o brightness
chmod 755 battery volume percentage brightness

# These scripts have some dependencies
sudo pacman -S pacman-contrib brightnessctl pamixer upower

Place this in your ~/.xprofile:

export PATH=$HOME/.local/bin:$PATH

Build dwm and dwmblocks and create a new xsession:

cd ~/.config/dwm
sudo make clean install
cd ~/.config/dwm/dwmblocks
sudo make clean install
sudo cp ~/.config/dwm/dwm.desktop /usr/share/xsessions

For autostart, check ~/.dwm/autostart.sh. Test it with Xephyr:

Xephyr -br -ac -noreset -screen 1280x720 :1 &
DISPLAY=:1 dwm

If you want to modify bar icons, open ~/.config/dwmblocks/config.h and change these lines:

static const Block blocks[] = {
//   Icon    Command                          Update Interval     Update Signal
    { "ο€™  ", "checkupdates | wc -l",                 60,               0 },
    { "",    "brightness",                           2,                0 },
    { "",    "volume",                               2,                0 },
    { "",    "battery",                              60,               0 },
    { "",    "date '+ο—΄ %d/%m/%Y  ο€— %H:%M%p'",        5,                0 },
};

Then recompile dwmblocks and restart dwm using mod + control + r.

cd ~/.config/dwm/dwmblocks
sudo make clean install

Once that's done, you can login. But keep in mind keybindings will not work unless you have the same programs that I use and the same configs. You can either change keybindings or install the software I use and my config files, check out my dotfiles repo for instructions.

dwm's People

Contributors

antoniosarosi avatar

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.