WM configuration

#personalization

Table of Contents

Window manager configuration - Miscellaneous

via ponte rosso 9 lambrate milano

Waybar

Waybar is probably the equivalent, or at least the most similar alternative, of polybar for Xorg-based WM and when you configure it, launch it from the terminal either with waybar or, to facilitate debugging with env GTK_DEBUG=interactive waybar, which will spawn a debugging GUI.

If waybar tells you there is a module that is requiring more than the height you defined in your config, you could solve this by adding

* {
    margin: 0px;
    padding: 0px;
}

and it should work fine or at least be at a more reasonable height.
I had the bar height set at 15, as my font was (which I know, is not a smart idea), and waybar is setting the minimum height as 30, which looks perfect.

Terminal theme

I use kitty as terminal emulator since it has a built-in theme selector that does the job of manually changing all colors when I switching themes. I wrote this short bash script to change the from light to dark colorscheme depending on the part of the day.

#!/usr/bin/env bash

while true; do
	if [[ $(date +%k) -gt 8 ]] && [[ $(date +%k) -lt 17 ]]; then
		kitty +kitten themes Gruvbox\ Light
	else
		kitty +kitten themes Gruvbox\ Dark 
	fi
done

GTK themes

If your DE doesn’t have a way of changing your theme and icons directly in its setting, you can install nwg-shell for GTK applications and kvantum for qt based ones.

Before you can use those, you should download the theme of you preference and put it in ~/.local/share/themes/. For icons, put the folder in ~/.local/share/icons/.

sudo apt-get install nwg-shell kvantum

Now you can use the GUI to select your themes.

For those of you interested in doing this via command line

gsetting set org.gnome.desktop.interface gtk-theme 'your theme'
gsettings set org.gnome.desktop.interface icon-theme 'your theme'
gsettings set org.gnome.desktop.interface cursor-theme 'your theme'
gsettings set org.gnome.desktop.interface font-name 'your font'