fix Makefile install target
code refactoring

Reduce indentation and adopt parts of the Linux kernel coding style [1].

[1] https://www.kernel.org/doc/Documentation/CodingStyle
fix i3-nagbar respawn when closing it manually