Skip to content

Commit

Permalink
Merge branch 'main' into process_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Denizantip authored Dec 4, 2024
2 parents 58dbbde + e17bc6b commit ec70437
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/linux/intel_gpu_top/intel_gpu_top.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ static int get_num_gts(uint64_t type)

errno = 0;
for (cnt = 0; cnt < MAX_GTS; cnt++) {
fd = igt_perf_open(type, __I915_PMU_REQUESTED_FREQUENCY(cnt));
fd = igt_perf_open(type, __I915_PMU_INTERRUPTS(cnt));
if (fd < 0)
break;

Expand Down
10 changes: 7 additions & 3 deletions src/linux/intel_gpu_top/intel_name_lookup_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ char *get_intel_device_name(const char *device_id) {
char full_name[256];
const struct intel_device_info *info = intel_get_device_info(devid);
if (info) {
strcpy(dev_name, info->codename);
dev_name[0] = toupper(dev_name[0]);
if (info->codename == NULL) {
strcpy(dev_name, "(unknown)");
} else {
strcpy(dev_name, info->codename);
dev_name[0] = toupper(dev_name[0]);
}
snprintf(full_name, sizeof(full_name), "Intel %s (Gen%u)", dev_name, info->graphics_ver);
return strdup(full_name);
}
return NULL;
}
}
92 changes: 92 additions & 0 deletions themes/everforest-light-medium.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# All graphs and meters can be gradients
# For single color graphs leave "mid" and "end" variable empty.
# Use "start" and "end" variables for two color gradient
# Use "start", "mid" and "end" for three color gradient

# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#fdf6e3"

# Main text color
theme[main_fg]="#5c6a72"

# Title color for boxes
theme[title]="#5c6a72"

# Highlight color for keyboard shortcuts
theme[hi_fg]="#df69ba"

# Background color of selected items
theme[selected_bg]="#4F585E"

# Foreground color of selected items
theme[selected_fg]="#dfa000"

# Color of inactive/disabled text
theme[inactive_fg]="#9DA9A0"

# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#5c6a72"

# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#8da101"

# Cpu box outline color
theme[cpu_box]="#4F585E"

# Memory/disks box outline color
theme[mem_box]="#4F585E"

# Net up/down box outline color
theme[net_box]="#4F585E"

# Processes box outline color
theme[proc_box]="#4F585E"

# Box divider line and small boxes line color
theme[div_line]="#4F585E"

# Temperature graph colors
theme[temp_start]="#8da101"
theme[temp_mid]="#dfa000"
theme[temp_end]="#f85552"

# CPU graph colors
theme[cpu_start]="#8da101"
theme[cpu_mid]="#dfa000"
theme[cpu_end]="#f85552"

# Mem/Disk free meter
theme[free_start]="#f85552"
theme[free_mid]="#dfa000"
theme[free_end]="#8da101"

# Mem/Disk cached meter
theme[cached_start]="#3994c5"
theme[cached_mid]="#35a77c"
theme[cached_end]="#8da101"

# Mem/Disk available meter
theme[available_start]="#f85552"
theme[available_mid]="#dfa000"
theme[available_end]="#8da101"

# Mem/Disk used meter
theme[used_start]="#8da101"
theme[used_mid]="#dfa000"
theme[used_end]="#f85552"

# Download graph colors
theme[download_start]="#8da101"
theme[download_mid]="#35a77c"
theme[download_end]="#3994c5"

# Upload graph colors
theme[upload_start]="#dfa000"
theme[upload_mid]="#e66868"
theme[upload_end]="#df69ba"

# Process box color gradient for threads, mem and cpu usage
theme[process_start]="#8da101"
theme[process_mid]="#df69ba"
theme[process_end]="#f85552"

0 comments on commit ec70437

Please sign in to comment.