diff options
| -rw-r--r-- | ar/.config/htop/htoprc | 53 | ||||
| -rwxr-xr-x | ar/.local/bin/fzffiles | 2 | ||||
| -rw-r--r-- | fedora/.config/htop/htoprc | 53 | ||||
| -rwxr-xr-x | fedora/.local/bin/fzffiles | 2 | ||||
| -rw-r--r-- | mac/.config/htop/htoprc | 53 | ||||
| -rwxr-xr-x | mac/.local/bin/fzffiles | 2 | ||||
| -rwxr-xr-x | mac/.local/bin/hugow | 54 |
7 files changed, 189 insertions, 30 deletions
diff --git a/ar/.config/htop/htoprc b/ar/.config/htop/htoprc new file mode 100644 index 0000000..8666417 --- /dev/null +++ b/ar/.config/htop/htoprc @@ -0,0 +1,53 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +.all_branches_collapsed=0 +.sort_direction=-1 +.sort_key=PERCENT_CPU +.tree_sort_direction=1 +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +account_guest_in_cpu_meter=0 +all_branches_collapsed=0 +color_scheme=5 +column_meter_modes_0=1 1 1 2 2 2 1 +column_meter_modes_1= +column_meters_0=LeftCPUs Memory Swap Uptime LoadAverage Tasks RightCPUs +column_meters_1= +config_reader_min_version=3 +cpu_count_from_one=0 +delay=15 +detailed_cpu_time=0 +enable_mouse=1 +fields=0 48 17 18 38 39 2 46 46 47 49 1 +find_comm_in_cmdline=1 +header_layout=two_50_50 +header_margin=1 +hide_function_bar=0 +hide_kernel_threads=1 +hide_running_in_container=0 +hide_userland_threads=0 +highlight_base_name=1 +highlight_changes=1 +highlight_changes_delay_secs=1 +highlight_deleted_exe=1 +highlight_megabytes=1 +highlight_threads=1 +htop_version=3.3.0-dev +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command +screen_tabs=1 +shadow_distribution_path_prefix=0 +shadow_other_users=1 +show_cpu_frequency=1 +show_cpu_usage=1 +show_merged_command=0 +show_program_path=1 +show_thread_names=0 +sort_direction=-1 +sort_key=46 +strip_exe_from_cmdline=1 +tree_sort_direction=1 +tree_sort_key=0 +tree_view=0 +tree_view_always_by_pid=0 +update_process_names=0 diff --git a/ar/.local/bin/fzffiles b/ar/.local/bin/fzffiles index 44634a2..97047e9 100755 --- a/ar/.local/bin/fzffiles +++ b/ar/.local/bin/fzffiles @@ -53,7 +53,7 @@ files=$(fzf-tmux \ --bind "ctrl-g:change-prompt( )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME/Private/repos $HOME/Public/repos)" \ --bind "ctrl-h:change-prompt( 🏠 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME)" \ --bind "ctrl-k:change-prompt( 🖥️ )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . ${XDG_DESKTOP_DIR:-${HOME}/Desktop})" \ - --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_BIN_HOME:-${HOME}/.local/bin})" \ + --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_SCRIPTS_HOME:-${HOME}/.local/bin})" \ --bind "ctrl-s:change-prompt( 🛠 )+reload(find ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless -maxdepth 2 -type f -not -path '*/.git/*')" \ --bind "ctrl-u:change-prompt( 📝 )+reload(if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then top=\$(git rev-parse --show-toplevel 2>/dev/null); git -C \"\$top\" status --porcelain | awk -v root=\"\$top\" '{ staged=substr(\$0,1,1); diff --git a/fedora/.config/htop/htoprc b/fedora/.config/htop/htoprc new file mode 100644 index 0000000..8666417 --- /dev/null +++ b/fedora/.config/htop/htoprc @@ -0,0 +1,53 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +.all_branches_collapsed=0 +.sort_direction=-1 +.sort_key=PERCENT_CPU +.tree_sort_direction=1 +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +account_guest_in_cpu_meter=0 +all_branches_collapsed=0 +color_scheme=5 +column_meter_modes_0=1 1 1 2 2 2 1 +column_meter_modes_1= +column_meters_0=LeftCPUs Memory Swap Uptime LoadAverage Tasks RightCPUs +column_meters_1= +config_reader_min_version=3 +cpu_count_from_one=0 +delay=15 +detailed_cpu_time=0 +enable_mouse=1 +fields=0 48 17 18 38 39 2 46 46 47 49 1 +find_comm_in_cmdline=1 +header_layout=two_50_50 +header_margin=1 +hide_function_bar=0 +hide_kernel_threads=1 +hide_running_in_container=0 +hide_userland_threads=0 +highlight_base_name=1 +highlight_changes=1 +highlight_changes_delay_secs=1 +highlight_deleted_exe=1 +highlight_megabytes=1 +highlight_threads=1 +htop_version=3.3.0-dev +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command +screen_tabs=1 +shadow_distribution_path_prefix=0 +shadow_other_users=1 +show_cpu_frequency=1 +show_cpu_usage=1 +show_merged_command=0 +show_program_path=1 +show_thread_names=0 +sort_direction=-1 +sort_key=46 +strip_exe_from_cmdline=1 +tree_sort_direction=1 +tree_sort_key=0 +tree_view=0 +tree_view_always_by_pid=0 +update_process_names=0 diff --git a/fedora/.local/bin/fzffiles b/fedora/.local/bin/fzffiles index 44634a2..97047e9 100755 --- a/fedora/.local/bin/fzffiles +++ b/fedora/.local/bin/fzffiles @@ -53,7 +53,7 @@ files=$(fzf-tmux \ --bind "ctrl-g:change-prompt( )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME/Private/repos $HOME/Public/repos)" \ --bind "ctrl-h:change-prompt( 🏠 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME)" \ --bind "ctrl-k:change-prompt( 🖥️ )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . ${XDG_DESKTOP_DIR:-${HOME}/Desktop})" \ - --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_BIN_HOME:-${HOME}/.local/bin})" \ + --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_SCRIPTS_HOME:-${HOME}/.local/bin})" \ --bind "ctrl-s:change-prompt( 🛠 )+reload(find ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless -maxdepth 2 -type f -not -path '*/.git/*')" \ --bind "ctrl-u:change-prompt( 📝 )+reload(if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then top=\$(git rev-parse --show-toplevel 2>/dev/null); git -C \"\$top\" status --porcelain | awk -v root=\"\$top\" '{ staged=substr(\$0,1,1); diff --git a/mac/.config/htop/htoprc b/mac/.config/htop/htoprc new file mode 100644 index 0000000..8666417 --- /dev/null +++ b/mac/.config/htop/htoprc @@ -0,0 +1,53 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +.all_branches_collapsed=0 +.sort_direction=-1 +.sort_key=PERCENT_CPU +.tree_sort_direction=1 +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +account_guest_in_cpu_meter=0 +all_branches_collapsed=0 +color_scheme=5 +column_meter_modes_0=1 1 1 2 2 2 1 +column_meter_modes_1= +column_meters_0=LeftCPUs Memory Swap Uptime LoadAverage Tasks RightCPUs +column_meters_1= +config_reader_min_version=3 +cpu_count_from_one=0 +delay=15 +detailed_cpu_time=0 +enable_mouse=1 +fields=0 48 17 18 38 39 2 46 46 47 49 1 +find_comm_in_cmdline=1 +header_layout=two_50_50 +header_margin=1 +hide_function_bar=0 +hide_kernel_threads=1 +hide_running_in_container=0 +hide_userland_threads=0 +highlight_base_name=1 +highlight_changes=1 +highlight_changes_delay_secs=1 +highlight_deleted_exe=1 +highlight_megabytes=1 +highlight_threads=1 +htop_version=3.3.0-dev +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command +screen_tabs=1 +shadow_distribution_path_prefix=0 +shadow_other_users=1 +show_cpu_frequency=1 +show_cpu_usage=1 +show_merged_command=0 +show_program_path=1 +show_thread_names=0 +sort_direction=-1 +sort_key=46 +strip_exe_from_cmdline=1 +tree_sort_direction=1 +tree_sort_key=0 +tree_view=0 +tree_view_always_by_pid=0 +update_process_names=0 diff --git a/mac/.local/bin/fzffiles b/mac/.local/bin/fzffiles index 44634a2..97047e9 100755 --- a/mac/.local/bin/fzffiles +++ b/mac/.local/bin/fzffiles @@ -53,7 +53,7 @@ files=$(fzf-tmux \ --bind "ctrl-g:change-prompt( )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME/Private/repos $HOME/Public/repos)" \ --bind "ctrl-h:change-prompt( 🏠 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . $HOME)" \ --bind "ctrl-k:change-prompt( 🖥️ )+reload(fd -H -L -t f -E .Trash -E .git -E .cache . ${XDG_DESKTOP_DIR:-${HOME}/Desktop})" \ - --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_BIN_HOME:-${HOME}/.local/bin})" \ + --bind "ctrl-r:change-prompt( 👟 )+reload(fd -H -L -t f -E .Trash -E .git -E .cache -E zsh . ${XDG_SCRIPTS_HOME:-${HOME}/.local/bin})" \ --bind "ctrl-s:change-prompt( 🛠 )+reload(find ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless -maxdepth 2 -type f -not -path '*/.git/*')" \ --bind "ctrl-u:change-prompt( 📝 )+reload(if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then top=\$(git rev-parse --show-toplevel 2>/dev/null); git -C \"\$top\" status --porcelain | awk -v root=\"\$top\" '{ staged=substr(\$0,1,1); diff --git a/mac/.local/bin/hugow b/mac/.local/bin/hugow index 0460174..e9113a0 100755 --- a/mac/.local/bin/hugow +++ b/mac/.local/bin/hugow @@ -18,33 +18,33 @@ fi tmp="$(mktemp "$out.XXXXXXXX.tmp")" -awk -v defaults="$defaults" ' -BEGIN { - n = split(defaults, a, /[[:space:]]+/) - insert = "" - for (i = 1; i <= n; i++) { - if (a[i] == "") continue - name = a[i] ".mp4" - insert = insert \ -" <li>\n" \ -" <a href=\"/recordings/" name "\" data-name=\"" name "\" class=\"vid\">" name "</a>\n" \ -" </li>\n" - } - injected = 0 -} -{ - print - if (!injected && $0 ~ /<ul[^>]*id=["'\''"]list["'\''"][^>]*>/) { - printf("%s", insert) - injected = 1 - } -} -END { if (!injected) exit 2 } -' "$out" >"$tmp" - -mv "$tmp" "$out" -echo "Injected defaults into: $out" - +# awk -v defaults="$defaults" ' +# BEGIN { +# n = split(defaults, a, /[[:space:]]+/) +# insert = "" +# for (i = 1; i <= n; i++) { +# if (a[i] == "") continue +# name = a[i] ".mp4" +# insert = insert \ +# " <li>\n" \ +# " <a href=\"/recordings/" name "\" data-name=\"" name "\" class=\"vid\">" name "</a>\n" \ +# " </li>\n" +# } +# injected = 0 +# } +# { +# print +# if (!injected && $0 ~ /<ul[^>]*id=["'\''"]list["'\''"][^>]*>/) { +# printf("%s", insert) +# injected = 1 +# } +# } +# END { if (!injected) exit 2 } +# ' "$out" >"$tmp" +# +# mv "$tmp" "$out" +# echo "Injected defaults into: $out" +# ssh "$server" "mkdir -p '$dest'" if [ -n "${THESIAH_SSH_OPTS:-}" ]; then |
