desktop building?
This commit is contained in:
126
modules/home/programs/btop/default.nix
Executable file
126
modules/home/programs/btop/default.nix
Executable file
@@ -0,0 +1,126 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.mjallen.programs.btop;
|
||||
nord = import ../../desktop/theme/nord.nix;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
config = mkIf cfg.enable {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
color_theme = "nord"; # todo
|
||||
theme_background = true;
|
||||
truecolor = true;
|
||||
force_tty = false;
|
||||
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty";
|
||||
vim_keys = true;
|
||||
rounded_corners = true;
|
||||
graph_symbol = "braille";
|
||||
graph_symbol_cpu = "default";
|
||||
graph_symbol_mem = "default";
|
||||
graph_symbol_net = "default";
|
||||
graph_symbol_proc = "default";
|
||||
shown_boxes = "cpu mem net proc";
|
||||
update_ms = 2000;
|
||||
proc_sorting = "cpu lazy";
|
||||
proc_reversed = false;
|
||||
proc_tree = false;
|
||||
proc_colors = true;
|
||||
proc_gradient = true;
|
||||
proc_per_core = false;
|
||||
proc_mem_bytes = true;
|
||||
proc_cpu_graphs = true;
|
||||
proc_info_smaps = false;
|
||||
proc_left = false;
|
||||
proc_filter_kernel = false;
|
||||
cpu_graph_upper = "total";
|
||||
cpu_graph_lower = "total";
|
||||
cpu_invert_lower = true;
|
||||
cpu_single_graph = false;
|
||||
cpu_bottom = false;
|
||||
show_uptime = true;
|
||||
check_temp = true;
|
||||
cpu_sensor = "Auto";
|
||||
show_coretemp = true;
|
||||
cpu_core_map = "";
|
||||
temp_scale = "celsius";
|
||||
base_10_sizes = false;
|
||||
show_cpu_freq = true;
|
||||
clock_format = "%X";
|
||||
background_update = true;
|
||||
custom_cpu_name = "";
|
||||
disks_filter = "";
|
||||
mem_graphs = true;
|
||||
mem_below_net = false;
|
||||
zfs_arc_cached = true;
|
||||
show_swap = true;
|
||||
swap_disk = true;
|
||||
show_disks = true;
|
||||
only_physical = true;
|
||||
use_fstab = true;
|
||||
zfs_hide_datasets = false;
|
||||
disk_free_priv = false;
|
||||
show_io_stat = true;
|
||||
io_mode = false;
|
||||
io_graph_combined = false;
|
||||
io_graph_speeds = "";
|
||||
net_download = 100;
|
||||
net_upload = 100;
|
||||
net_auto = true;
|
||||
net_sync = true;
|
||||
net_iface = "";
|
||||
show_battery = true;
|
||||
selected_battery = "Auto";
|
||||
log_level = "WARNING";
|
||||
};
|
||||
themes = {
|
||||
nord = ''
|
||||
theme[main_bg]="${nord.polarNight.nord0}"
|
||||
theme[main_fg]="${nord.snowStorm.nord6}"
|
||||
theme[title]="${nord.snowStorm.nord6}"
|
||||
theme[hi_fg]="${nord.frost.nord7}"
|
||||
theme[selected_bg]="${nord.polarNight.nord1}"
|
||||
theme[selected_fg]="${nord.frost.nord7}"
|
||||
theme[inactive_fg]="${nord.polarNight.nord2}"
|
||||
theme[graph_text]="${nord.snowStorm.nord6}"
|
||||
theme[meter_bg]="${nord.polarNight.nord1}"
|
||||
theme[proc_misc]="${nord.snowStorm.nord6}"
|
||||
theme[cpu_box]="${nord.aurora.nord15}"
|
||||
theme[mem_box]="${nord.aurora.nord14}"
|
||||
theme[net_box]="${nord.aurora.nord12}"
|
||||
theme[proc_box]="${nord.aurora.nord11}"
|
||||
theme[div_line]="${nord.polarNight.nord1}"
|
||||
theme[temp_start]="${nord.aurora.nord14}"
|
||||
theme[temp_mid]="${nord.aurora.nord13}"
|
||||
theme[temp_end]="${nord.aurora.nord11}"
|
||||
theme[cpu_start]="${nord.aurora.nord15}"
|
||||
theme[cpu_mid]="${nord.aurora.nord12}"
|
||||
theme[cpu_end]="${nord.aurora.nord11}"
|
||||
theme[free_start]="${nord.aurora.nord14}"
|
||||
theme[free_mid]="${nord.aurora.nord13}"
|
||||
theme[free_end]="${nord.aurora.nord12}"
|
||||
theme[cached_start]="${nord.aurora.nord14}"
|
||||
theme[cached_mid]="${nord.aurora.nord13}"
|
||||
theme[cached_end]="${nord.aurora.nord12}"
|
||||
theme[available_start]="${nord.snowStorm.nord6}"
|
||||
theme[available_mid]="${nord.aurora.nord11}"
|
||||
theme[available_end]="${nord.aurora.nord11}"
|
||||
theme[used_start]="${nord.aurora.nord14}"
|
||||
theme[used_mid]="${nord.aurora.nord13}"
|
||||
theme[used_end]="${nord.aurora.nord11}"
|
||||
theme[download_start]="${nord.frost.nord8}"
|
||||
theme[download_mid]="${nord.frost.nord8}"
|
||||
theme[download_end]="${nord.aurora.nord12}"
|
||||
theme[upload_start]="${nord.frost.nord7}"
|
||||
theme[upload_mid]="${nord.frost.nord7}"
|
||||
theme[upload_end]="${nord.aurora.nord12}"
|
||||
theme[process_start]="${nord.aurora.nord15}"
|
||||
theme[process_mid]="${nord.aurora.nord12}"
|
||||
theme[process_end]="${nord.aurora.nord11}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user