mirror of https://github.com/aristocratos/btop.git
Compare commits
19 Commits
144387cfb6
...
5611cfee5e
Author | SHA1 | Date |
---|---|---|
Santhosh Raju | 5611cfee5e | |
Santhosh Raju | eac3086280 | |
Santhosh Raju | 61c5aa1af5 | |
Santhosh Raju | fe4b4b90d3 | |
Santhosh Raju | bd1c9bc164 | |
Santhosh Raju | aea95dbafc | |
Santhosh Raju | 7cf048d591 | |
Santhosh Raju | a61ebacafa | |
Santhosh Raju | 284969f395 | |
Santhosh Raju | bc2b2c3bfd | |
Santhosh Raju | 5641437e1a | |
Jakob P. Liljenberg | d1680735d9 | |
Jakob P. Liljenberg | a535a6eb92 | |
Jakob P. Liljenberg | b1b8249d55 | |
kk9uk | 4a82105547 | |
kz6fittycent | 8af8389bd0 | |
kz6fittycent | adaea59a2a | |
kz6fittycent | 2aa2c90f41 | |
Davide Conti | a60c969533 |
|
@ -0,0 +1,45 @@
|
||||||
|
name: NetBSD CMake
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
tags-ignore: '*.*'
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/cmake-netbsd.yml'
|
||||||
|
- 'CMakeLists.txt'
|
||||||
|
- 'include/**'
|
||||||
|
- 'src/*pp'
|
||||||
|
- 'src/netbsd/*pp'
|
||||||
|
pull_request:
|
||||||
|
branches: main
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/cmake-netbsd.yml'
|
||||||
|
- 'CMakeLists.txt'
|
||||||
|
- 'include/**'
|
||||||
|
- 'src/*pp'
|
||||||
|
- 'src/netbsd/*pp'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cmake_build_on_netbsd:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Compile
|
||||||
|
uses: vmactions/netbsd-vm@v1
|
||||||
|
with:
|
||||||
|
release: '9.3'
|
||||||
|
usesh: true
|
||||||
|
prepare: |
|
||||||
|
PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
|
||||||
|
PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.3/All/"
|
||||||
|
export PATH PKG_PATH
|
||||||
|
/usr/sbin/pkg_add pkgin
|
||||||
|
pkgin -y install cmake ninja-build gcc10 coreutils git
|
||||||
|
git config --global --add safe.directory /home/runner/work/btop/btop
|
||||||
|
run: |
|
||||||
|
cmake -DCMAKE_CXX_COMPILER="/usr/pkg/gcc10/bin/g++" -B build -G Ninja -DBTOP_STATIC=ON
|
||||||
|
cmake --build build --verbose
|
|
@ -11,6 +11,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
@ -22,6 +23,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
|
|
@ -11,6 +11,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
@ -22,6 +23,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
|
|
@ -11,6 +11,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
@ -22,6 +23,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
|
|
@ -11,6 +11,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
@ -22,6 +23,7 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- '!src/openbsd/**'
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
|
|
|
@ -0,0 +1,65 @@
|
||||||
|
name: Continuous Build NetBSD
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags-ignore:
|
||||||
|
- '*.*'
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- '!src/linux/**'
|
||||||
|
- '!src/osx/**'
|
||||||
|
- '!src/freebsd/**'
|
||||||
|
- '!src/openbsd/**'
|
||||||
|
- 'include/**'
|
||||||
|
- 'Makefile'
|
||||||
|
- '.github/workflows/continuous-build-netbsd.yml'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- '!src/linux/**'
|
||||||
|
- '!src/osx/**'
|
||||||
|
- '!src/freebsd/**'
|
||||||
|
- '!src/openbsd/**'
|
||||||
|
- 'include/**'
|
||||||
|
- 'Makefile'
|
||||||
|
- '.github/workflows/continuous-build-netbsd.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-netbsd:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
timeout-minutes: 20
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Compile
|
||||||
|
uses: vmactions/netbsd-vm@v1
|
||||||
|
|
||||||
|
with:
|
||||||
|
release: '9.3'
|
||||||
|
usesh: true
|
||||||
|
prepare: |
|
||||||
|
PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
|
||||||
|
PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.3/All/"
|
||||||
|
export PATH PKG_PATH
|
||||||
|
/usr/sbin/pkg_add pkgin
|
||||||
|
pkgin -y install gmake gcc10 coreutils git
|
||||||
|
git config --global --add safe.directory /home/runner/work/btop/btop
|
||||||
|
run: |
|
||||||
|
gmake CXX=/usr/pkg/gcc10/bin/g++ CXXFLAGS='-DNDEBUG -I/usr/pkg/gcc10/include -I/usr/include -I/usr/pkg/include' STATIC=true STRIP=true
|
||||||
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
|
mv bin/btop bin/btop-GCC10-"$GIT_HASH"
|
||||||
|
ls -alh bin
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: btop-x86_64-netbsd-9.3
|
||||||
|
path: 'bin/*'
|
||||||
|
if-no-files-found: error
|
||||||
|
|
|
@ -12,6 +12,7 @@ on:
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- '.github/workflows/continuous-build-openbsd.yml'
|
- '.github/workflows/continuous-build-openbsd.yml'
|
||||||
|
@ -23,6 +24,7 @@ on:
|
||||||
- '!src/linux/**'
|
- '!src/linux/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- '.github/workflows/continuous-build-openbsd.yml'
|
- '.github/workflows/continuous-build-openbsd.yml'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
name: 🧪 Test snap can be built on x86_64
|
name: 🧪 Test snap can be built on x86_64
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
@ -10,6 +9,8 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- '.github/workflows/test-snap-can-build.yml'
|
- '.github/workflows/test-snap-can-build.yml'
|
||||||
|
@ -19,6 +20,8 @@ on:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- '!src/osx/**'
|
- '!src/osx/**'
|
||||||
- '!src/freebsd/**'
|
- '!src/freebsd/**'
|
||||||
|
- '!src/netbsd/**'
|
||||||
|
- '!src/openbsd/**'
|
||||||
- 'include/**'
|
- 'include/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- '.github/workflows/test-snap-can-build.yml'
|
- '.github/workflows/test-snap-can-build.yml'
|
||||||
|
@ -28,7 +31,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
node-version: [20.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -66,6 +66,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||||
target_sources(btop PRIVATE src/freebsd/btop_collect.cpp)
|
target_sources(btop PRIVATE src/freebsd/btop_collect.cpp)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||||
target_sources(btop PRIVATE src/openbsd/btop_collect.cpp src/openbsd/sysctlbyname.cpp)
|
target_sources(btop PRIVATE src/openbsd/btop_collect.cpp src/openbsd/sysctlbyname.cpp)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||||
|
target_sources(btop PRIVATE src/netbsd/btop_collect.cpp)
|
||||||
elseif(LINUX)
|
elseif(LINUX)
|
||||||
target_sources(btop PRIVATE src/linux/btop_collect.cpp)
|
target_sources(btop PRIVATE src/linux/btop_collect.cpp)
|
||||||
else()
|
else()
|
||||||
|
@ -208,6 +210,13 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||||
endif()
|
endif()
|
||||||
find_package(kvm REQUIRED)
|
find_package(kvm REQUIRED)
|
||||||
target_link_libraries(btop kvm::kvm)
|
target_link_libraries(btop kvm::kvm)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_compile_options(btop PRIVATE -static-libstdc++ -std=c++20 -DNDEBUG)
|
||||||
|
endif()
|
||||||
|
find_package(kvm REQUIRED)
|
||||||
|
find_package(proplib REQUIRED)
|
||||||
|
target_link_libraries(btop kvm::kvm proplib::proplib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -146,6 +146,12 @@ else ifeq ($(PLATFORM_LC),openbsd)
|
||||||
override ADDFLAGS += -lkvm -static-libstdc++
|
override ADDFLAGS += -lkvm -static-libstdc++
|
||||||
export MAKE = gmake
|
export MAKE = gmake
|
||||||
SU_GROUP := wheel
|
SU_GROUP := wheel
|
||||||
|
else ifeq ($(PLATFORM_LC),netbsd)
|
||||||
|
PLATFORM_DIR := netbsd
|
||||||
|
THREADS := $(shell sysctl -n hw.ncpu || echo 1)
|
||||||
|
override ADDFLAGS += -lkvm -lprop
|
||||||
|
export MAKE = gmake
|
||||||
|
SU_GROUP := wheel
|
||||||
else
|
else
|
||||||
$(error $(shell printf "\033[1;91mERROR: \033[97mUnsupported platform ($(PLATFORM))\033[0m"))
|
$(error $(shell printf "\033[1;91mERROR: \033[97mUnsupported platform ($(PLATFORM))\033[0m"))
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
# Find proplib – property container object library
|
||||||
|
#
|
||||||
|
|
||||||
|
if(BSD)
|
||||||
|
find_path(proplib_INCLUDE_DIR NAMES prop/proplib.h)
|
||||||
|
find_library(proplib_LIBRARY NAMES libprop prop)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
find_package_handle_standard_args(proplib REQUIRED_VARS proplib_LIBRARY proplib_INCLUDE_DIR)
|
||||||
|
|
||||||
|
if(proplib_FOUND AND NOT TARGET proplib::proplib)
|
||||||
|
add_library(proplib::proplib UNKNOWN IMPORTED)
|
||||||
|
set_target_properties(proplib::proplib PROPERTIES
|
||||||
|
IMPORTED_LOCATION "${proplib_LIBRARY}"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${proplib_INCLUDE_DIR}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced(proplib_INCLUDE_DIR proplib_LIBRARY)
|
||||||
|
endif()
|
||||||
|
|
|
@ -6,7 +6,7 @@ description: |
|
||||||
C++ version and continuation of bashtop and bpytop.
|
C++ version and continuation of bashtop and bpytop.
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
|
|
||||||
base: core20
|
base: core22
|
||||||
grade: stable
|
grade: stable
|
||||||
confinement: strict
|
confinement: strict
|
||||||
compression: lzo
|
compression: lzo
|
||||||
|
|
|
@ -293,7 +293,7 @@ void clean_quit(int sig) {
|
||||||
Global::quitting = true;
|
Global::quitting = true;
|
||||||
Runner::stop();
|
Runner::stop();
|
||||||
if (Global::_runner_started) {
|
if (Global::_runner_started) {
|
||||||
#if defined __APPLE__ || defined __OpenBSD__
|
#if defined __APPLE__ || defined __OpenBSD__ || defined __NetBSD__
|
||||||
if (pthread_join(Runner::runner_id, nullptr) != 0) {
|
if (pthread_join(Runner::runner_id, nullptr) != 0) {
|
||||||
Logger::warning("Failed to join _runner thread on exit!");
|
Logger::warning("Failed to join _runner thread on exit!");
|
||||||
pthread_cancel(Runner::runner_id);
|
pthread_cancel(Runner::runner_id);
|
||||||
|
@ -329,7 +329,7 @@ void clean_quit(int sig) {
|
||||||
|
|
||||||
const auto excode = (sig != -1 ? sig : 0);
|
const auto excode = (sig != -1 ? sig : 0);
|
||||||
|
|
||||||
#if defined __APPLE__ || defined __OpenBSD__
|
#if defined __APPLE__ || defined __OpenBSD__ || defined __NetBSD__
|
||||||
_Exit(excode);
|
_Exit(excode);
|
||||||
#else
|
#else
|
||||||
quick_exit(excode);
|
quick_exit(excode);
|
||||||
|
@ -1024,7 +1024,7 @@ int main(int argc, char **argv) {
|
||||||
Config::set("tty_mode", true);
|
Config::set("tty_mode", true);
|
||||||
Logger::info("Forcing tty mode: setting 16 color mode and using tty friendly graph symbols");
|
Logger::info("Forcing tty mode: setting 16 color mode and using tty friendly graph symbols");
|
||||||
}
|
}
|
||||||
#if not defined __APPLE__ && not defined __OpenBSD__
|
#if not defined __APPLE__ && not defined __OpenBSD__ && not defined __NetBSD__
|
||||||
else if (not Global::arg_tty and Term::current_tty.starts_with("/dev/tty")) {
|
else if (not Global::arg_tty and Term::current_tty.starts_with("/dev/tty")) {
|
||||||
Config::set("tty_mode", true);
|
Config::set("tty_mode", true);
|
||||||
Logger::info("Real tty detected: setting 16 color mode and using tty friendly graph symbols");
|
Logger::info("Real tty detected: setting 16 color mode and using tty friendly graph symbols");
|
||||||
|
|
|
@ -34,7 +34,7 @@ tab-size = 4
|
||||||
#include <ifaddrs.h>
|
#include <ifaddrs.h>
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||||
# include <kvm.h>
|
# include <kvm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ namespace Shared {
|
||||||
|
|
||||||
extern long coreCount, page_size, clk_tck;
|
extern long coreCount, page_size, clk_tck;
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||||
struct KvmDeleter {
|
struct KvmDeleter {
|
||||||
void operator()(kvm_t* handle) {
|
void operator()(kvm_t* handle) {
|
||||||
kvm_close(handle);
|
kvm_close(handle);
|
||||||
|
|
|
@ -160,6 +160,7 @@ namespace Gpu {
|
||||||
namespace Rsmi {
|
namespace Rsmi {
|
||||||
#if !defined(RSMI_STATIC)
|
#if !defined(RSMI_STATIC)
|
||||||
//? RSMI defines, structs & typedefs
|
//? RSMI defines, structs & typedefs
|
||||||
|
#define RSMI_DEVICE_NAME_BUFFER_SIZE 128
|
||||||
#define RSMI_MAX_NUM_FREQUENCIES_V5 32
|
#define RSMI_MAX_NUM_FREQUENCIES_V5 32
|
||||||
#define RSMI_MAX_NUM_FREQUENCIES_V6 33
|
#define RSMI_MAX_NUM_FREQUENCIES_V6 33
|
||||||
#define RSMI_STATUS_SUCCESS 0
|
#define RSMI_STATUS_SUCCESS 0
|
||||||
|
@ -1396,8 +1397,8 @@ namespace Gpu {
|
||||||
for (uint32_t i = 0; i < device_count; ++i) {
|
for (uint32_t i = 0; i < device_count; ++i) {
|
||||||
if constexpr(is_init) {
|
if constexpr(is_init) {
|
||||||
//? Device name
|
//? Device name
|
||||||
char name[NVML_DEVICE_NAME_BUFFER_SIZE]; // ROCm SMI does not provide a constant for this as far as I can tell, this should be good enough
|
char name[RSMI_DEVICE_NAME_BUFFER_SIZE];
|
||||||
result = rsmi_dev_name_get(i, name, NVML_DEVICE_NAME_BUFFER_SIZE);
|
result = rsmi_dev_name_get(i, name, RSMI_DEVICE_NAME_BUFFER_SIZE);
|
||||||
if (result != RSMI_STATUS_SUCCESS)
|
if (result != RSMI_STATUS_SUCCESS)
|
||||||
Logger::warning("ROCm SMI: Failed to get device name");
|
Logger::warning("ROCm SMI: Failed to get device name");
|
||||||
else gpu_names[Nvml::device_count + i] = string(name);
|
else gpu_names[Nvml::device_count + i] = string(name);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,89 @@
|
||||||
|
# Btop gruvbox_light theme
|
||||||
|
# by kk9uk
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#fbf1c7"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#3c3836"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#3c3836"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#cc241d"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#f2e5bc"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#8f3f71"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#ebdbb2"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#a89984"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#98971a"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#a89984"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#a89984"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#a89984"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#a89984"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#a89984"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#98971a"
|
||||||
|
theme[temp_mid]=""
|
||||||
|
theme[temp_end]="#cc241d"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#427b58"
|
||||||
|
theme[cpu_mid]="#d79921"
|
||||||
|
theme[cpu_end]="#cc241d"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#cc241d"
|
||||||
|
theme[free_mid]="#d79921"
|
||||||
|
theme[free_end]="#427b58"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#458588"
|
||||||
|
theme[cached_mid]="#076678"
|
||||||
|
theme[cached_end]="#427b58"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#cc241d"
|
||||||
|
theme[available_mid]="#d65d0e"
|
||||||
|
theme[available_end]="#b57614"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#427b58"
|
||||||
|
theme[used_mid]="#d65d0e"
|
||||||
|
theme[used_end]="#cc241d"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#98971a"
|
||||||
|
theme[download_mid]="#689d6a"
|
||||||
|
theme[download_end]="#79740e"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#cc241d"
|
||||||
|
theme[upload_mid]="#d65d0e"
|
||||||
|
theme[upload_end]="#b57614"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#427b58"
|
||||||
|
theme[process_mid]="#af3a03"
|
||||||
|
theme[process_end]="#cc241d"
|
Loading…
Reference in New Issue