Commit Graph

17 Commits

Author SHA1 Message Date
91fa7fecb0 rofi: Remove unused wifi-menu script
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.
2025-06-27 13:05:35 +02:00
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
7353a51132 rofi: Unbind Shift+Tab as it is bound by default
With a new version, Tab and Shift+Tab (ISO_Left_Tab) are bound to
kb-element-{next,prev}.
2022-09-09 02:24:55 +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
48ed69da25 rofi: Left/Right without Shift for next/prev mode 2021-09-14 22:46:57 +02:00
80095fe683 rofi: Readd a binding for kb-mode-complete 2021-09-08 14:47:42 +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
12c7fbcfc4 rofi: Do not match all desktop file fields 2020-11-22 14:48:49 +01:00
druckdev
97ab5d64a6 rofi: Fix duplicate, whitespaces, bindings & more
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.
2020-11-12 23:43:23 +01: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
ca7e82ae64 rofi: Add run modi, auto-select + fix whitespaces 2020-10-26 13:40:26 +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