By invoking key combination fn+F9 (XF86Search button), we can quiet
dunst notifications.
This change will be picked up by polybar and a small do not disturb
symbol is shown in the top bar (a tiny moon).
Both scripts are very simple and make use of a temporary file, so a
little brittle but workable.
Added notifications on changing brightness, will stack by default to
show the current level before disappearing.
The script to change and notify can be run through the command
`control-brightness`, and is bound to the sxhkd media key shortcuts for
brightness changes.
Removed the brightness indicator from polybar since it should be easy
enough to check current brightness by doing a quick higher-lower and
that's it.
Kept the module in polybar configuration script since I might reconsider
its removal if it turns out to have been useful.
Slightly restyled polybar, mainly shrunk in size and re-located the
papers due information.
Renamed it from `simple-top` to just `top` since no alternative top bar
exists in this configuration.
The module will pick up the current state of the systemd mbsync.timer
and display an according icon (sleepy bell if auto-sync is off, mail
icon if auto-sync is on).
It will use notmuch counters to show only unread mails in the inbox,
which generally constitute the 'new' mails one wants to know about.
It will not display anything if it did not find 'new' mails.
Lastly, right-clicking allows starting the auto-sync timer and left
clicking allows to stop it.
FIXME: The icon will only update on the next update interval of the
module itself (which is set at 300 seconds). That means, after clicking
the icon to start or stop the auto-sync, the actual state will not be
reflected by the icon for a couple of minutes.
Moved pomo submodule directory to avoid conflict with pomo generated
file.
Right-clicking will now always reset the pomodoro timer. It will not
automatically start again. Left-click it once to initialize a new run,
and again to actually start the timer.
The symbol signifies this:
Empty tomato, timer stopped.
Half-full tomato, timer paused.
Clock-tomato and a timer beside it, work timer running.
Coffee cup, break timer running.
Using [jsspencer/pomo](https://github.com/jsspencer/pomo) as the timer
of choice. It is simple, it works well, and it uses a very elegant way
of tracking the time.
I can think about implementing my own version later, but this will
handily suffice for now.
Polybar script will now limit the pomo timer to a single 'running'
instance containing the notification function, by putting its running
instance PID in a lockfile and killing it before restarting or changing
the timer.
Added running and paused tomato icons; as well as break coffee icon.
Removed display of seconds, unless the last minute of a timer is
running.
Package updates in yay (as in pacman) will not be reported correctly
when the repository mirrors have not been updated recently.
However, updating only the mirrors without also synching the packages
locally is not recommended by arch. That means, essentially, we can't do
a dry-run to only 'check' for packages without running the danger of
performing a partial arch upgrade.
The program `checkupdates` in pacman-contrib package helps with this by
performing a check for the available updates without needing to pull
from the mirrors before. So, the polybar update script now checks for
its existence and uses it if available, falling back to the standard yay
procedure otherwise.
Makes polybar use Xresources color values for its colors. Resets rofi
values to their default after being overwritten by the base16 themes.
Makes qutebrowser include the colorscheme in its configuration file.
Ignore dynamically generated colorschemes in .gitignore file.