scripts: Add queue to vidl
Added queuing to vidl downloader - will collect newly added files to download to a queue. (by default in ($XDG_DATA_HOME/ or ~/.local/share)/vidl/vidl_queue) The queue of links can be interacted with like any other file. When vidl is already running it keeps a lock-file active in .cache directory so only one instance of vidl can ever be running simultaneously.
This commit is contained in:
parent
2c7430121e
commit
50a5b23aab
3 changed files with 43 additions and 15 deletions
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["river/tags"],
|
||||
"modules-center": ["clock", ],
|
||||
"modules-right": ["custom/events", "custom/media", "custom/wireguard", "custom/archupdates", "pulseaudio", "backlight", "network", "cpu", "memory", "temperature", "battery", "tray"],
|
||||
"modules-left": ["river/tags", "custom/events", "custom/vidl"],
|
||||
"modules-center": ["clock", "custom/media"],
|
||||
"modules-right": ["custom/wireguard", "custom/archupdates", "pulseaudio", "backlight", "network", "cpu", "memory", "temperature", "battery", "tray"],
|
||||
"custom/archupdates": {
|
||||
"format": "{} {icon}",
|
||||
"format-alt-click": "right",
|
||||
|
|
@ -166,5 +166,16 @@
|
|||
"return-type": "json",
|
||||
"signal": 6,
|
||||
"interval": 60,
|
||||
}
|
||||
},
|
||||
"custom/vidl": {
|
||||
"format": "{} {icon}",
|
||||
"format-alt-click": "right",
|
||||
"format-icons": {
|
||||
"default": ""
|
||||
},
|
||||
"exec": "wc -l ~/.local/share/vidl/vidl_queue | cut -d' ' -f1",
|
||||
"exec-if": "[ -f ~/.local/share/vidl/vidl_queue ]",
|
||||
"interval": 5,
|
||||
"on-click": "kitty --class float nvim ~/.local/share/vidl/vidl_queue"
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue