Commit graph

16 commits

Author SHA1 Message Date
Marty Oehme d2e44d330d
dunst: Add brightness level notifications
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.
2020-12-21 22:55:52 +01:00
Marty Oehme ed2235c4ca
polybar: Rename bar and shrink in size
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.
2020-12-03 12:22:08 +01:00
Marty Oehme 1c335dcb66
Fix small issues: brightness scroll and formatting
Added ability to change display brightness by scrolling over polybar
module.
2020-12-03 11:57:20 +01:00
Marty Oehme 547dbc9966
polybar: Remove padding and example config
Removed padding from some polybar elements which do not need it and just
take up unnecessary space.

Removed left-over example configuration file.
2020-10-25 13:56:53 +01:00
Marty Oehme b29570327b
polybar: Add simple mail display script module
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.
2020-09-24 21:07:46 +02:00
Marty Oehme 5d265a33f7
polybar: Add weather script
Added script to show the forecast weather for the immediate future /
right now in polybar.
2020-09-07 22:02:25 +02:00
Marty Oehme 18cd15222d
polybar: Add underlines to modules
Slightly accent the modules by adding a distinct line under each one, in
the primary color of the current colorscheme.
2020-09-07 22:00:32 +02:00
Marty Oehme d37e65f03c
[polybar] Fix pomodoro timer script display
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.
2020-05-26 13:42:14 +02:00
Marty Oehme d4fda84c3b
[polybar] Add sxhkd mode display module 2020-05-26 13:22:12 +02:00
Marty Oehme 050bac9c55 [polybar] Add pomo timer as git submodule
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.
2020-05-25 15:25:45 +00:00
Marty Oehme ce4473bf9f
[polybar] Remove papersdue script date invocation
Removed unnecessary invocations of date util, since it will be invoked
by the actual running script anyways.
2020-05-16 19:07:01 +02:00
Marty Oehme f96f9f2211 [script] Add simple due script for bibtex file
Scrapes a bibtex file for 'due' field, and outputs all found entries
with their priority and sorted for date.
2020-05-16 17:05:09 +00:00
Marty Oehme f0dff67410
[polybar] Add safer package update checking
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.
2020-02-25 07:53:05 +01:00
Marty Oehme 97f7fcbbd6
Move scripts into respective directories
Having a general script folder makes little sense if the scripts are
targeted to specific applications. This commit moved every script that
solely, or mainly (like ueberzug), targets a single application into
that respective stow module.
2020-02-08 20:17:44 +01:00
Marty Oehme ad8decb4ef Integrate dynamic colorschemes into applications
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.
2020-02-01 11:01:26 +01:00
Marty Oehme d34cecb27e Switch to GNU stow 2019-12-29 23:12:13 +01:00