summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/crons4
-rw-r--r--ar/.config/fontconfig/fonts.conf6
-rw-r--r--ar/.config/tmux/tmux.conf2
-rwxr-xr-xar/.local/bin/dmenudelmusic2
-rwxr-xr-xar/.local/bin/emojiupdate2
-rwxr-xr-xar/.local/bin/setmonitors2
-rwxr-xr-xar/.local/bin/v2m24
7 files changed, 22 insertions, 20 deletions
diff --git a/ar/.config/crons b/ar/.config/crons
index 5d00696..1434714 100644
--- a/ar/.config/crons
+++ b/ar/.config/crons
@@ -3,9 +3,9 @@
*/15 * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; $HOME/.local/bin/cron/newsup
0 */3 * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; $HOME/.local/bin/cron/checkup
0 0 * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; NVIM_APPNAME=TheSiahxyz nvim --headless "+Lazy! sync" +qa
-0 0 * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; NVIM_APPNAME=TheSiahxyz nvim --headless "+MasonUpdate" +qa
+30 0 * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; timeout 600 env NVIM_APPNAME=TheSiahxyz nvim --headless -c "autocmd User MasonToolsUpdateCompleted quitall" -c "Lazy! load nvim-lspconfig" -c "MasonToolsUpdate"
0 * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; /usr/bin/nvim --headless "+Lazy! sync" +qa
-0 * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; /usr/bin/nvim --headless "+MasonUpdate" +qa
+30 * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; timeout 600 /usr/bin/nvim --headless -c "autocmd User MasonToolsUpdateCompleted quitall" -c "Lazy! load nvim-lspconfig" -c "MasonToolsUpdate"
@daily export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; /usr/bin/trash-empty 30
@daily export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; $HOME/.local/bin/cron/mediaup
@daily export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus; export DISPLAY=:0; . $HOME/.zprofile; $HOME/.local/bin/task/taskwarrior-tui/tasks-sync
diff --git a/ar/.config/fontconfig/fonts.conf b/ar/.config/fontconfig/fonts.conf
index 4979ed3..759d424 100644
--- a/ar/.config/fontconfig/fonts.conf
+++ b/ar/.config/fontconfig/fonts.conf
@@ -40,8 +40,7 @@
<family>Noto Sans Mono</family>
<family>Noto Sans Mono CJK KR</family>
<family>Hack Nerd Font Mono</family>
- <family>Font Awesome 6 Free</family>
- <family>Font Awesome 6 Brands</family>
+ <family>FontAwesome</family>
<family>Braille</family>
</prefer>
</alias>
@@ -85,6 +84,9 @@
<name>charset</name>
<charset>
<range><int>0xe000</int><int>0xf8ff</int></range>
+ <range><int>0x2300</int><int>0x23ff</int></range>
+ <range><int>0x2600</int><int>0x27bf</int></range>
+ <range><int>0x1f000</int><int>0x1faff</int></range>
</charset>
</minus>
</edit>
diff --git a/ar/.config/tmux/tmux.conf b/ar/.config/tmux/tmux.conf
index 157968a..0e28b82 100644
--- a/ar/.config/tmux/tmux.conf
+++ b/ar/.config/tmux/tmux.conf
@@ -39,9 +39,9 @@ set -g default-terminal "tmux-256color"
set -ga terminal-overrides ',xterm-256color:Tc'
set -ga terminal-overrides ',st-256color:Tc'
set -ga terminal-overrides ',tmux-256color:Tc'
+set -sa terminal-features ',tmux-256color:RGB'
set -sa terminal-features ',xterm-256color:RGB'
set -sa terminal-features ',st-256color:RGB'
-set -sa terminal-features ',tmux-256color:RGB'
# status
set -g status-interval 1
diff --git a/ar/.local/bin/dmenudelmusic b/ar/.local/bin/dmenudelmusic
index 9f5540c..c28130a 100755
--- a/ar/.local/bin/dmenudelmusic
+++ b/ar/.local/bin/dmenudelmusic
@@ -8,7 +8,7 @@ playlist_dir="${XDG_CONFIG_HOME:-${HOME}/.config}/mpd/playlists"
# Select the relative path. Sort the list so "first match" semantics in dmenu
# are deterministic — otherwise filesystem order is unstable and typing a
-# substring (e.g. "성시경") can return whichever file find walked first.
+# substring can return whichever file find walked first.
# `-not -path '*/.*'` skips hidden files (.music.txt, etc.); name filter limits to audio.
selected_relpath=$(cd "$music_dir" && find . -type f -not -path '*/.*' \( -name '*.mp3' -o -name '*.m4a' -o -name '*.opus' -o -name '*.flac' -o -name '*.wav' -o -name '*.webm' \) | sed 's|^\./||' | LC_ALL=C.UTF-8 sort | dmenu -i -l 20 -p "Select a file to delete:") || exit 1
[ -n "$selected_relpath" ] || exit 1
diff --git a/ar/.local/bin/emojiupdate b/ar/.local/bin/emojiupdate
index 666d7d2..59cad1c 100755
--- a/ar/.local/bin/emojiupdate
+++ b/ar/.local/bin/emojiupdate
@@ -29,7 +29,7 @@ awk '
{ print }
' "$input_file" >"$temp_file"
-# Extract + VS16 제거
+# Extract + strip VS16
awk -F'#' '
{
if (NF >= 2) {
diff --git a/ar/.local/bin/setmonitors b/ar/.local/bin/setmonitors
index 76dabb8..287d785 100755
--- a/ar/.local/bin/setmonitors
+++ b/ar/.local/bin/setmonitors
@@ -9,7 +9,7 @@ edp_cfg="--mode 1920x1080 --rotate normal --scale 1.0x1.0 --dpi 82"
hdmi_cfg="--mode 1920x1080 --rotate normal --scale 1.0x1.0 --dpi 82"
dp_cfg="--mode 2560x1600 --rotate normal --scale 1.0x1.0 --dpi 192"
-# EDID 미감지 시 (640x480에 갇힌 경우) 1920x1080 폴백 적용
+# When EDID is not detected (stuck at 640x480), apply a 1920x1080 fallback
if xrandr -q | grep " connected" | grep -q "640x480+"; then
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync 2>/dev/null
for output in $(xrandr -q | grep -w "connected" | cut -d ' ' -f 1); do
diff --git a/ar/.local/bin/v2m b/ar/.local/bin/v2m
index eda5d86..b2f0510 100755
--- a/ar/.local/bin/v2m
+++ b/ar/.local/bin/v2m
@@ -1,38 +1,38 @@
#!/bin/bash
-# 동영상에서 MP3 추출 스크립트
+# Extract MP3 audio from a video file
if [ $# -eq 0 ]; then
- echo "사용법: video2mp3 <입력파일> [출력파일]"
- echo "예시: video2mp3 video.mp4"
- echo "예시: video2mp3 video.mp4 audio.mp3"
+ echo "Usage: video2mp3 <input_file> [output_file]"
+ echo "Example: video2mp3 video.mp4"
+ echo "Example: video2mp3 video.mp4 audio.mp3"
exit 1
fi
INPUT="$1"
-# 파일 존재 확인
+# Check that the file exists
if [ ! -f "$INPUT" ]; then
- echo "오류: 파일을 찾을 수 없습니다: $INPUT"
+ echo "Error: file not found: $INPUT"
exit 1
fi
-# 출력 파일명 설정
+# Determine the output filename
if [ $# -eq 2 ]; then
OUTPUT="$2"
else
- # 입력 파일에서 확장자를 제거하고 .mp3 추가
+ # Strip the extension from the input file and append .mp3
OUTPUT="${INPUT%.*}.mp3"
fi
-echo "변환 중: $INPUT -> $OUTPUT"
+echo "Converting: $INPUT -> $OUTPUT"
-# ffmpeg로 mp3 추출 (고품질: 320kbps)
+# Extract mp3 with ffmpeg (high quality: 320kbps)
ffmpeg -i "$INPUT" -vn -acodec libmp3lame -b:a 320k "$OUTPUT"
if [ $? -eq 0 ]; then
- echo "✓ 완료: $OUTPUT"
+ echo "✓ Done: $OUTPUT"
else
- echo "✗ 오류 발생"
+ echo "✗ An error occurred"
exit 1
fi