forked from Shinonome/dots-hyprland
material symbols: support filling
This commit is contained in:
@@ -20,14 +20,14 @@ Singleton {
|
||||
"ollama-llama-3.2": {
|
||||
"name": "Ollama - Llama 3.2",
|
||||
"icon": "ollama-symbolic",
|
||||
"description": "Ollama - Llama 3.2",
|
||||
"description": "Local Ollama model - Llama 3.2",
|
||||
"endpoint": "http://localhost:11434/api/chat",
|
||||
"model": "llama3.2",
|
||||
},
|
||||
"gemini-2.0-flash": {
|
||||
"name": "Gemini 2.0 Flash",
|
||||
"icon": "gemini-symbolic",
|
||||
"description": "Gemini 2.0 Flash",
|
||||
"description": "Online Gemini 2.0 Flash",
|
||||
"endpoint": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:streamGenerateContent",
|
||||
"model": "gemini-2.0-flash",
|
||||
"messageMapFunc": function (message) {
|
||||
|
||||
@@ -9,12 +9,14 @@ Singleton {
|
||||
property string distroName: "Unknown"
|
||||
property string distroId: "unknown"
|
||||
property string distroIcon: "linux-symbolic"
|
||||
property string username: "user"
|
||||
|
||||
Timer {
|
||||
interval: 1
|
||||
running: true
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
getUsername.running = true
|
||||
fileOsRelease.reload()
|
||||
const textOsRelease = fileOsRelease.text()
|
||||
|
||||
@@ -46,6 +48,16 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: getUsername
|
||||
command: ["whoami"]
|
||||
stdout: SplitParser {
|
||||
onRead: data => {
|
||||
username = data.trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileView {
|
||||
id: fileOsRelease
|
||||
path: "/etc/os-release"
|
||||
|
||||
Reference in New Issue
Block a user