This commit is contained in:
2025-08-17 17:13:07 -04:00
parent 5bac05e0de
commit 6f951c7ae7
4 changed files with 88 additions and 93 deletions

View File

@@ -20,9 +20,9 @@ return {
-- For Windows users, TERM may not be present in environment variables.
-- Consider using APPDATA instead.
api_key = 'TERM',
name = 'Llama.cpp',
end_point = 'http://127.0.0.1:1234/v1/completions',
model = 'codellama-7b-instruct',
name = 'Ollama',
end_point = 'http://127.0.0.1:11434/v1/completions',
model = 'codellama:7b-code',
-- template = {
-- prompt = function(context_before_cursor, context_after_cursor, _)
-- return '<|fim_prefix|>'

View File

@@ -1,73 +0,0 @@
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "pulseaudio", "clock"],
"modules-right": ["tray", "memory", "battery", "custom/power"],
"sway/workspaces": {
"disable-scroll": true,
"sort-by-name": true,
"format": " {index} {icon} ",
"format-icons": {
"default": "◇",
"focused": "◈",
},
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"custom/music": {
"format": " {}",
"escape": true,
"interval": 5,
"tooltip": false,
"exec": "playerctl metadata --format='{{ title }}'",
"on-click": "playerctl play-pause",
"max-length": 50
},
"clock": {
"timezone": "America/Montreal",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "🕐 {:%H:%M 📅 %d/%m/%y} "
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"memory": {
"format": "{used:0.1f}/{total:0.1f}G"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "🔋{capacity}%",
"format-charging": "⚡{capacity}%",
"format-plugged": "🔌{capacity}%",
"format-alt": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
},
"custom/power": {
"format" : "⏻",
"tooltip": false,
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
"shutdown": "systemctl poweroff",
"reboot": "systemctl reboot"
}
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": ["", "", " "]
},
"on-click": "pwvucontrol"
},
}

View File

@@ -0,0 +1,73 @@
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "pulseaudio", "clock"],
"modules-right": ["tray", "memory", "battery", "custom/power"],
"sway/workspaces": {
"disable-scroll": true,
"sort-by-name": true,
"format": " {index} {icon} ",
"format-icons": {
"default": "◇",
"focused": "◈",
},
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"custom/music": {
"format": " {}",
"escape": true,
"interval": 5,
"tooltip": false,
"exec": "playerctl metadata --format='{{ title }}'",
"on-click": "playerctl play-pause",
"max-length": 50
},
"clock": {
"timezone": "America/Montreal",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "🕐 {:%H:%M 📅 %d/%m/%y} "
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"memory": {
"format": "{used:0.1f}/{total:0.1f}G"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "🔋{capacity}%",
"format-charging": "⚡{capacity}%",
"format-plugged": "🔌{capacity}%",
"format-alt": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
},
"custom/power": {
"format" : "⏻",
"tooltip": false,
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
"shutdown": "systemctl poweroff",
"reboot": "systemctl reboot"
}
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": ["", "", " "]
},
"on-click": "pwvucontrol"
},
}