Commit Graph

9 Commits

Author SHA1 Message Date
5078b6a63f *.sh: Fix some shellcheck issues 2025-06-27 12:59:13 +02:00
90dc52b6c5 rofi:powermenu: Support systems with full systemd
When systemd is fully installed, `loginctl` does not support the actions
`reboot`, `poweroff` and `suspend`.

Fix this by using `systemctl` if installed.
2022-11-20 16:51:26 +01: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
235d240a81 rofi: Migrate to new theme format
Since needed with/after rofi 1.7.0.
2021-09-08 14:44:06 +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
druckdev
26e9e42610 rofi:powermenu: Use loginctl instead of systemctl
By that the script can be used together with elogind when systemd is not
fully installed as in artix.
2020-10-31 22:34:04 +01:00
druckdev
e403a03eca rofi:powermenu: Small fixes and refactoring
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.
2020-10-26 15:08:49 +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
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00