-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pacman-key, udisksctl, acpi, ethtool, rmmod, modinfo, alacritty
- Loading branch information
Showing
12 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# :fzf-tab:complete:(\\|*/|)acpi:options | ||
case $group in | ||
directory) | ||
acpi -d $wod | ||
;; | ||
option) | ||
case $word in | ||
-(k|f|-(kelvin|fahrenheit))) | ||
acpi -t $word | ||
;; | ||
*) | ||
acpi $word | ||
;; | ||
esac | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)alacritty-command-msg:argument-1 | ||
case $group in | ||
'alacritty msg commands') | ||
alacritty msg help $word | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)alacritty:argument-1 | ||
case $group in | ||
'alacritty commands') | ||
alacritty help $word | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)ethtool:argument-1 | ||
case $group in | ||
interface) | ||
ethtool $word | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)gtk-launch:values | ||
less {/usr,~/.local}/share/applications/$word.desktop(N) | ||
less {/usr,~/.local,~/.local/state/nix/profile,/run/current-system/sw}/share/applications/$word.desktop(N) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# :fzf-tab:complete:(\\|*/|)modinfo:argument-1 | ||
case $group in | ||
'module file') | ||
[[ -f $realpath ]] && modinfo $realpath | bat --color=always -plyaml || less $realpath | ||
;; | ||
module(|' alias')) | ||
modinfo $word | bat --color=always -plyaml | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# :fzf-tab:complete:(\\|*/|)pacman-key: | ||
case $group in | ||
'keys in keyring') | ||
pacman-key -f $word;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# :fzf-tab:complete:(\\|*/|)rmmod:argument-rest | ||
lsmod | head -n1 | ||
lsmod | grep -E "^$word\>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# :fzf-tab:complete:(\\|*/|)udisksctl-info:* | ||
case $group in | ||
'block device') | ||
udisksctl info -b $word | bat --color=always -plyaml | ||
;; | ||
'object path') | ||
udisksctl info -p $word | bat --color=always -plyaml | ||
;; | ||
drive) | ||
udisksctl info -d $word | bat --color=always -plyaml | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# :fzf-tab:complete:(\\|*/|)xdg-settings: | ||
file=$(xdg-settings get $word) | ||
[[ -n $file ]] && less {/usr,~/.local}/share/applications/$file(N) | ||
[[ -n $file ]] && less {/usr,~/.local,~/.local/state/nix/profile,/run/current-system/sw}/share/applications/$file(N) |