Commit Graph

37 Commits

Author SHA1 Message Date
2e2bad65a2 polybar: Change while read loop to an xargs pipe 2025-12-10 14:27:53 +01:00
5599ce14d7 i3: Normal numeric workspaces on multi outputs
Use normal workspace numbers with the output name as workspace name, but
strip the name in polybar.

See https://github.com/polybar/polybar/pull/3230 for strip-wsnames.
2025-12-04 14:31:05 +01:00
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
442ee8c4d3 polybar: Remove one space between ramp and percent
I like that the percentage does not move when I press mute, so I want to
keep the alignment, but the percentage is too far away for my taste with
the previous two spaces when unmuted.
2025-05-14 18:44:31 +02:00
4c26fd98af powermenu: Change powermenu's text to format
This changed with some newer version of polybar
2024-09-21 00:26:39 +02:00
8811b81187 polybar: Configure use-ui-max & reverse-scroll 2024-09-21 00:25:32 +02:00
56596fe154 polybar: Update pulseaudio formats
label-volume is not allowed anymore in newer versions of polybar, see
https://github.com/polybar/polybar/pull/3095 and use fork until (maybe)
merged.
2024-09-21 00:23:31 +02:00
274549dddc polybar: Use new builtin tray module
New in 3.7.
2024-09-21 00:15:33 +02:00
c349b7f058 polybar: Make i3's mode-label clickable to reset
Reset to the "default" i3 mode when clicking on the mode-label. This
makes it easy to recover from a mode without binding to `mode default`.
2023-04-19 23:44:01 +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
8cf2a8d421 i3,polybar: Open nmtui in floating window 2022-12-14 18:49:43 +01:00
e2566444d4 polybar:audio: Display volume level when muted too 2022-10-16 01:57:16 +02: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
40ff2ac6c4 polybar: Add transparency 2022-07-12 21:00:05 +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
a3e872556f polybar: Update wlan interface name 2021-11-07 13:57:12 +01: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
01310c46ee polybar: Remove bluetooth module for now
Because of missing systemd, the module does not work anyway.
2020-12-18 23:36:43 +01:00
druckdev
7753a1f7bf i3,polybar: Add bind and make calendar toggleable 2020-11-05 12:23:43 +01:00
druckdev
d8222a861a polybar:launch.sh: Fix typo 2020-11-02 23:26:26 +01:00
druckdev
62cd1d5b1f polybar: Add calendar popup on date-module click 2020-11-02 23:25:10 +01:00
druckdev
307364364a polybar: Fix typo 2020-10-24 18:44:40 +02:00
druckdev
0ff935663e polybar:launch: Do not parse xrandr for primary
Instead of getting the primary monitor from xrandr we can use the output
of polybars `--list-monitors` that we get already. This results in a
slight performance boost.
2020-10-03 01:57:48 +02: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
29d28a25ee polybar: Use st to start nmtui 2020-09-28 18:10:05 +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
20b9e3c2a8 Show workspace name instead of index
By that workspaces with no indices are displayed as their name instead
of "-1".
2020-07-14 14:33:17 +02:00
druckdev
d8b40ce427 Display playing media information 2020-06-25 23:26:28 +02:00
druckdev
6cdabb78be Multi monitor support
When restarting i3 check for connected second monitor: scale it and
restart polybar if there is one.
Put polybar tray on the main monitor.
Do not kill polybar and relaunch it when restarting i3, but restart it
using ipc (much faster).
2020-06-25 23:20:08 +02:00
druckdev
e7d8ed55ed added bluetooth module; replaced bars with ramps 2020-04-28 01:57:04 +02:00
druckdev
758b6e5713 multi monitor support; auto reload config 2020-04-28 01:47:55 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00