C/C++語言中的Conky (Conky in C/C++ language)


問題描述

C/C++語言中的Conky (Conky in C/C++ language)

I want to change image of my desktop in mint :) I wan to add sth like conky to desktop but I don't know LUA language :( Is it possible to write it in C/C++ language? (for example I want to connect with forecast server to download some png with my weather and so on:)

Anyone knows how to do it?

‑‑‑‑‑

參考解法

方法 1:

I'm not sure that conky supports C/C++. But you can find many sample conky/lua scripts on google. It's not hard to find something close to what your looking for in appearance and in features, and simply modify the conky and lua scripts manually through trial and error. Its really quite easy to decipher. You can also check the conky man page for info:  http://conky.sourceforge.net/docs.html

方法 2:

Lua is extremely easy to learn, definitely a lot easier compared to C/C++.  I suggest you check out the book Programming in Lua and learn the basics.  If you really want to use C, you can always call C functions from Lua and do the real work there.  It is explained in the book aswell ;‑)

(by PatLasAndrew Holder1k5)

參考文件

  1. Conky in C/C++ language (CC BY‑SA 3.0/4.0)

#linux-mint #linux #conky






相關問題

C/C++語言中的Conky (Conky in C/C++ language)

關閉終端不記得我對 nvm/npm 的 .profile 更改 (Closing the terminal doesnt remember my .profile changes for nvm/npm)

在 Linux Mint 中升級 Python 版本 (Upgrade Python version in Linux Mint)

試圖消除 python3 Gtk3 錯誤信息 (Trying to eliminate python3 Gtk3 error message)

在我的 Linux Mint 上安裝 NetBeans 後出現問題,它無法執行任何操作 (i have problem after installing NetBeans on my Linux Mint it can't do anything)

Linux Mint 19.1,白色背景上的白色文本 (Linux Mint 19.1, white text on white background)

PhpStorm 找不到 Linux Mint 系統變量 (PhpStorm doesn't find Linux Mint system variables)

在 Linux Mint 上安裝 Android Studio 的問題 (Problems with Installing Android Studio on Linux Mint)

如何解決 Linux 中的“npm ERR!code ELIFECYCLE”錯誤? (How to solve "npm ERR! code ELIFECYCLE" error in Linux?)

在 Linux Mint 20.1 / Ubuntu 20.04 上安裝/卸載 Docker 後網絡連接斷開 (Broken network connection after Docker install/uninstall on Linux Mint 20.1 / Ubuntu 20.04)

如何使用 Python 和 Selenium Webdriver 在 Chrome 中加載默認配置文件? (How to load default profile in Chrome using Python and the Selenium Webdriver?)

如何使用終端重命名 linux 中的目錄? (How can I rename a directory in linux with terminal?)







留言討論