Commit Graph

17 Commits

Author SHA1 Message Date
5078b6a63f *.sh: Fix some shellcheck issues 2025-06-27 12:59:13 +02:00
1f80b616c2 *: Fix some old uses of st as terminal
I replaced st with kitty in 0139294831 ("Use kitty instead of st as
terminal").
2025-05-27 18:25:03 +02:00
b489fdbe4b polybar:vpn: Parse mullvad status 2023-02-13 16:39:04 +01:00
92589d5423 polybar:vpn: Support wireguard connections 2022-12-26 23:54:27 +01:00
d327ddf79b polybar: Ignore/abort on missing commands/files
Catch if the files needed in the battery module are missing and exit
early.

Do not mess up the bar by printing error messages. Instead abort.
2022-10-16 01:09:59 +02:00
00927c8921 *: Use tabs for indentation where appropriate
I am a big supporter of the approach to indent with tabs and align with
spaces. (Read [here][1] f.e.) Thus at some places a simple `s/ {4}/\t/g`
(replace 4 with whatever fits) is not enough and a bit more thought is
needed. Because of that there are still places where I plan to
substitute the whitespace in the future.

This patch contains exclusively whitespace changes. Check for yourself
with `git diff --ignore-all-space`.

[1]: https://dmitryfrank.com/articles/indent_with_tabs_align_with_spaces
2022-06-23 23:59:01 +02:00
b96d32996b *: Wrap lines at 80 columns where appropriate
Wrap lines at 80 columns where appropriate and I had the energy to think
about how/where to wrap.

There are still lines longer than that, which I plan to wrap in the
future. But that is enough for now.
2022-06-23 23:59:00 +02:00
b1d396babd *: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
2021-07-14 13:48:21 +02:00
141e422910 polybar📆 Clear LC_TIME
I have set LC_TIME to tk_TM.utf8 for its date formatting, but this is
cumbersome when calling `cal`.
2021-04-02 18:36:03 +02:00
druckdev
7753a1f7bf i3,polybar: Add bind and make calendar toggleable 2020-11-05 12:23:43 +01:00
druckdev
62cd1d5b1f polybar: Add calendar popup on date-module click 2020-11-02 23:25:10 +01:00
druckdev
4cb445c2b5 shell-scripts: Use [[ instead of [ where possible
Replace all occurrences of [ with [[ in bash and zsh scripts and
configs.
Performance wise it makes sense to use the builtin instead of calling an
external command also when from a functionality stand point `test` would
suffice.
2020-10-03 01:29:29 +02:00
druckdev
1d3adc30e5 polybar: Make hardcoded paths dependant from XDG
Instead of hardcoding the paths of all the scripts, use env variables
that are set in launch.sh. This way the config also works with
XDG_CONFIG_HOME not set to ~/.config.
Sadly polybar only accepts references that stand on their own.
(So something like ${env:XDG_CONFIG_HOME:~/.config}/polybar/<script>
does not work.) Hence the mess with the associative array and the
variables for every module.
2020-09-28 18:08:03 +02:00
druckdev
d3433bc83e Small changes in vpn polybar module
Check for tunnel connections now as well.
Add exit code that signals if a VPN is used or not.
2020-09-13 04:45:15 +02:00
druckdev
d8b40ce427 Display playing media information 2020-06-25 23:26:28 +02:00
druckdev
e7d8ed55ed added bluetooth module; replaced bars with ramps 2020-04-28 01:57:04 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00