I've added this way back when I started customizing my system but never
used it. The project does not list any license, so this should have
never been in here.
When systemd is fully installed, `loginctl` does not support the actions
`reboot`, `poweroff` and `suspend`.
Fix this by using `systemctl` if installed.
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
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.
Fix the duplicate config by replacing `config` with a symlink. `config`
only exists for the `conf` function in zsh.
Remove *.font since it is overriden by the Xresources setting.
TODO: Keep rofi form reading the Xresources file?
Remove *.lines setting, since it is overridden by window.height.
Convert spaces to tabs.
Add Vim like keybindings for navigation.
Set matching-type to fuzzy.
Remove unused commented lines.
Remove ": " from prompts since rofi adds them already.
Change order of yes and no when conforming so that <Enter> cannot
accidentally be pressed twice.
Use tabs instead of spaces.
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.