mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-05-12 19:29:33 +08:00
95 lines
2.2 KiB
Plaintext
95 lines
2.2 KiB
Plaintext
# confirmation popup to add the whole playlist to the queue
|
|
confirm_bulk_add = true
|
|
confirm_on_exit = true
|
|
queue_loop = false
|
|
load_prev_queue = true
|
|
popup_timeout = "5s"
|
|
# change this to directory that contains mp3 files
|
|
music_dir = "~/Music"
|
|
# url history of downloaded audio will be saved here
|
|
history_path = "~/.local/share/gomu/urls"
|
|
# some of the terminal supports unicode character
|
|
# you can set this to true to enable emojis
|
|
use_emoji = true
|
|
# initial volume when gomu starts up
|
|
volume = 80
|
|
# if you experiencing error using this invidious instance, you can change it
|
|
# to another instance from this list:
|
|
# https://github.com/iv-org/documentation/blob/master/Invidious-Instances.md
|
|
invidious_instance = "https://vid.puffyan.us"
|
|
|
|
# default emoji here is using awesome-terminal-fonts
|
|
# you can change these to your liking
|
|
emoji_playlist = ""
|
|
emoji_file = ""
|
|
emoji_loop = "ﯩ"
|
|
emoji_noloop = ""
|
|
|
|
# not all colors can be reproducible in terminal
|
|
# changing hex colors may or may not produce expected result
|
|
color_accent = "#008B8B"
|
|
color_background = "none"
|
|
color_foreground = "#FFFFFF"
|
|
color_now_playing_title = "#017702"
|
|
color_playlist = "#008B8B"
|
|
color_popup = "#0A0F14"
|
|
|
|
func fib(x) {
|
|
if x <= 1 {
|
|
return 1
|
|
}
|
|
|
|
return fib(x - 1) + fib(x - 2)
|
|
}
|
|
|
|
module Keybinds {
|
|
|
|
module Global {
|
|
|
|
b = func () {
|
|
# execute shell function and capture stdout and stderr
|
|
out, err = shell(`echo "bruhh"`)
|
|
if err != nil {
|
|
debug_popup("an error occurred")
|
|
return
|
|
}
|
|
debug_popup(out)
|
|
}
|
|
|
|
c = command_search
|
|
|
|
v = func() {
|
|
input_popup("fib calculator", func(result) {
|
|
x = to_int(result)
|
|
result = fib(x)
|
|
debug_popup(to_string(result))
|
|
})
|
|
}
|
|
|
|
x = reload_config
|
|
}
|
|
|
|
|
|
module Playlist {
|
|
e = func() {
|
|
val = 10 + 10
|
|
debug_popup(to_string(val))
|
|
}
|
|
|
|
t = func() {
|
|
search_popup("test", ["a", "b", "c"], func(x) {
|
|
debug_popup(x)
|
|
})
|
|
}
|
|
}
|
|
|
|
module Queue {
|
|
# override default loop keybinding
|
|
o = toggle_loop
|
|
}
|
|
}
|
|
|
|
# you can get the syntax highlighting for this language here:
|
|
# https://github.com/mattn/anko/tree/master/misc/vim
|
|
# vim: ft=anko cindent
|