diff --git a/.gitignore b/.gitignore index b5c8b9c..ed2d664 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ !fastfetch !ghostty !git +htop/htop_history !htop !tmux !zathura diff --git a/fish/functions/pdf_extract.fish b/fish/functions/pdf_extract.fish new file mode 100644 index 0000000..e70a552 --- /dev/null +++ b/fish/functions/pdf_extract.fish @@ -0,0 +1,22 @@ +function pdf_extract + if test (count $argv) -lt 4 + echo "Usage: pdf_extract " + return 1 + end + + set input_file $argv[1] + set from_page $argv[2] + set to_page $argv[3] + set output_file $argv[4] + + if not test -f $input_file + echo "Error: input file '$input_file' not found" + return 1 + end + + set tmp_prefix (string replace -r '\.pdf$' '' $input_file)_extract_tmp_ + + pdfseparate -f $from_page -l $to_page $input_file "$tmp_prefix%04d.pdf" && + pdfunite $tmp_prefix*.pdf $output_file && + rm $tmp_prefix*.pdf +end diff --git a/htop/htoprc b/htop/htoprc index 8e075b3..e824fdc 100644 --- a/htop/htoprc +++ b/htop/htoprc @@ -1,6 +1,6 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -htop_version=3.4.1-3.4.1 +htop_version=3.5.0-3.5.0 config_reader_min_version=3 fields=0 48 17 18 38 39 40 130 2 46 47 49 1 hide_kernel_threads=1 @@ -23,6 +23,7 @@ header_margin=1 screen_tabs=1 detailed_cpu_time=0 cpu_count_from_one=0 +show_cpu_smt_labels=0 show_cpu_usage=1 show_cpu_frequency=1 show_cpu_temperature=1 @@ -41,14 +42,14 @@ column_meters_1=RightCPUs Tasks LoadAverage System column_meter_modes_1=1 2 2 2 tree_view=1 sort_key=47 -tree_sort_key=47 +tree_sort_key=46 sort_direction=-1 tree_sort_direction=-1 tree_view_always_by_pid=0 all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE M_PRIV STATE PERCENT_CPU PERCENT_MEM TIME Command .sort_key=PERCENT_MEM -.tree_sort_key=PERCENT_MEM +.tree_sort_key=PERCENT_CPU .tree_view_always_by_pid=0 .tree_view=1 .sort_direction=-1