diff options
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/extractkeys | 4 | ||||
| -rwxr-xr-x | ar/.local/bin/fzffiles | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-music | 11 | ||||
| -rwxr-xr-x | ar/.local/bin/vimwikitodo | 2 |
4 files changed, 10 insertions, 9 deletions
diff --git a/ar/.local/bin/extractkeys b/ar/.local/bin/extractkeys index f92a677..5c670ae 100755 --- a/ar/.local/bin/extractkeys +++ b/ar/.local/bin/extractkeys @@ -44,6 +44,7 @@ for file_path in "${config_files[@]}"; do printf ".PP\nTHESIAH's default terminal in C. It is light, configurable, and fast.\n" >>"$temp_file_before" fi echo ".LI" >>"$temp_file_before" + echo ".QUAD L" >>"$temp_file_before" awk 'BEGIN {flag=0} /static[[:space:]]+(const[[:space:]]+)?(Keychord|Shortcut)[[:space:]]+(\*keychords|shortcuts)[[:space:]]*\[\][[:space:]]*=[[:space:]]*{/ {flag=1} /\};/ {flag=0} flag' "$file_path" | while read -r line; do if [[ "$line" =~ \/\*.*\*\/ || "$line" =~ .*\"\\.* || "$line" =~ ^$ || "$line" =~ STACKKEYS || "$line" =~ TAGKEYS || "$line" =~ static\ Keychord\ \*keychords || "$line" =~ static\ Shortcut\ \shortcuts || "$line" =~ ^\#.* ]]; then @@ -52,10 +53,12 @@ for file_path in "${config_files[@]}"; do if [[ "$line" =~ ^\/\/.* ]]; then echo ".LIST OFF" >>"$temp_file_before" + echo ".QUAD J" >>"$temp_file_before" line=$(echo "$line" | sed -e 's/\/\/\s*//g' | awk '{for (i=1; i<=NF; i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2)); print}') output_line=".HEADING 5 \"$line\"" echo "$output_line" >>"$temp_file_before" echo ".LI" >>"$temp_file_before" + echo ".QUAD L" >>"$temp_file_before" continue fi @@ -152,6 +155,7 @@ for file_path in "${config_files[@]}"; do done echo ".LIST OFF" >>"$temp_file_before" + echo ".QUAD J" >>"$temp_file_before" done # Append the latter part of the document that follows the end marker diff --git a/ar/.local/bin/fzffiles b/ar/.local/bin/fzffiles index e2b6618..b70a43b 100755 --- a/ar/.local/bin/fzffiles +++ b/ar/.local/bin/fzffiles @@ -11,7 +11,7 @@ cleanup() { trap cleanup HUP INT QUIT TERM EXIT UB_PID_FILE="$UEBERZUG_TMP_DIR/.$(uuidgen)" -ueberzugpp layer --no-stdin --silent --use-escape-codes --pid-file "$UB_PID_FILE" +ueberzugpp layer --no-stdin --silent --pid-file "$UB_PID_FILE" UB_PID=$(cat "$UB_PID_FILE") export SOCKET="$UEBERZUG_TMP_DIR/ueberzugpp-$UB_PID.socket" diff --git a/ar/.local/bin/statusbar/sb-music b/ar/.local/bin/statusbar/sb-music index de29ef8..4fc751d 100755 --- a/ar/.local/bin/statusbar/sb-music +++ b/ar/.local/bin/statusbar/sb-music @@ -145,16 +145,13 @@ case $BLOCK_BUTTON in 3) # right click { [ -n "$(mpc current)" ] && [ -n "$(mpc queued)" ]; } && notify-send "🎵 $(mpc current)" "⏭ $(mpc queued)" notify-send "🎵 Music module" "\- Shows mpd song playing and status -- 🎵 if playing -- ⏸ if paused -- 🔂 if single on -- 🔁 if repeat on -- 🔀 if random on - Left click opens ncmpcpp - Middle click pauses/unpause - Scroll changes track" ;; -4) mpc prev ;; # scroll up, previous -5) mpc next ;; # scroll down, next +4) mpc prev ;; +5) mpc next ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; +9) playerctl prev ;; +10) playerctl next ;; esac diff --git a/ar/.local/bin/vimwikitodo b/ar/.local/bin/vimwikitodo index 99758f4..dec8a91 100755 --- a/ar/.local/bin/vimwikitodo +++ b/ar/.local/bin/vimwikitodo @@ -2,7 +2,7 @@ nvim +'setlocal nonumber norelativenumber noruler signcolumn=no' \ +'set laststatus=0 showtabline=0' \ - +'silent lua vim.diagnostic.disable()' \ + +'silent lua vim.diagnostic.enable(false)' \ +'silent lua vim.api.nvim_clear_autocmds({ event = { "CursorHold", "CursorHoldI" }, buffer = 0 })' \ +'lua vim.defer_fn(function() local ok, lualine = pcall(require, "lualine"); if ok then lualine.hide() end end, 100)' \ ~/.local/share/vimwiki/todo.md |
