-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
427 additions
and
163 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
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 @@ | ||
2.2 - ALPHA |
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,20 @@ | ||
function _inLimbo_completions | ||
set -l cur (commandline -ct) | ||
set -l opts \ | ||
"--help" "Show help information" \ | ||
"--version" "Display the version of inLimbo" \ | ||
"--clear-cache" "Clear cached data" \ | ||
"--show-config-file" "Show the configuration file path" \ | ||
"--show-log-dir" "Show the log directory path" \ | ||
"--show-dbus-name" "Show the DBus service name" | ||
for i in (seq 1 2 (count $opts)) | ||
set -l opt (string trim -- $opts[$i]) | ||
set -l desc $opts[(math $i + 1)] | ||
if test -z "$cur" | ||
echo -e "$opt\t$desc\n" | ||
else if string match -q -- "$cur*" $opt | ||
echo -e "$opt\t$desc\n" | ||
end | ||
end | ||
end | ||
complete -f -c inLimbo -a "(_inLimbo_completions)" |
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,29 +1,14 @@ | ||
# inLimbo-completion.zsh | ||
# A very primitive and early conf for inLimbo completions for zsh | ||
|
||
_inLimbo_completions() { | ||
local cur prev opts | ||
|
||
# Get the current word being typed | ||
cur="${words[$CURRENT]}" | ||
prev="${words[$CURRENT-1]}" | ||
|
||
# List of options for the music player | ||
opts="--play --pause --stop --next --prev --shuffle --repeat --volume --help" | ||
|
||
# If the current word starts with a dash (option), complete the options | ||
if [[ "$cur" == --* ]]; then | ||
COMPREPLY=($(compgen -W "$opts" -- "$cur")) | ||
return 0 | ||
fi | ||
|
||
# If the previous word was an option that expects a file path, suggest file paths | ||
if [[ "$prev" == "--play" || "$prev" == "--next" || "$prev" == "--prev" ]]; then | ||
COMPREPLY=($(compgen -f -- "$cur")) | ||
return 0 | ||
fi | ||
local -a opts | ||
opts=( | ||
"--help:Show help information" | ||
"--version:Display the version of inLimbo" | ||
"--clear-cache:Clear cached data" | ||
"--show-config-file:Show the configuration file path" | ||
"--show-log-dir:Show the log directory path" | ||
"--show-dbus-name:Show the DBus service name" | ||
) | ||
_describe -t options "inLimbo options" opts | ||
} | ||
|
||
# Register the completion for inLimbo using complete | ||
complete -F _inLimbo_completions inLimbo | ||
|
||
compdef _inLimbo_completions inLimbo |
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 @@ | ||
[Desktop Entry] | ||
Name=inLimbo | ||
GenericName=Music Player | ||
Comment=Music Player that keeps you in Limbo. | ||
Exec=/usr/bin/inLimbo | ||
Terminal=true | ||
Type=Application | ||
Categories=Audio;Music;Player;ConsoleOnly; | ||
Icon=inLimbo-Logo |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.