update htop config & add fish pdf extract function
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
!fastfetch
|
||||
!ghostty
|
||||
!git
|
||||
htop/htop_history
|
||||
!htop
|
||||
!tmux
|
||||
!zathura
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
function pdf_extract
|
||||
if test (count $argv) -lt 4
|
||||
echo "Usage: pdf_extract <input_file> <from_page> <to_page> <output_file>"
|
||||
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
|
||||
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user