diff options
| -rw-r--r-- | ar/.config/mpd/playlists/entire.m3u | 1 | ||||
| -rw-r--r-- | ar/.config/mpd/playlists/kpop.m3u | 1 | ||||
| -rw-r--r-- | ar/.config/ncmpcpp/config | 6 | ||||
| -rwxr-xr-x | ar/.config/newsboat/fulltext.py | 5 | ||||
| -rw-r--r-- | ar/.config/vim/init.vim | 3 | ||||
| -rwxr-xr-x | ar/.local/bin/opout | 4 | ||||
| -rwxr-xr-x | ar/.local/bin/sysact | 12 | ||||
| -rw-r--r-- | global/Music/.music.txt | 1 | ||||
| -rw-r--r-- | global/Music/.music_titles.txt | 1 |
9 files changed, 15 insertions, 19 deletions
diff --git a/ar/.config/mpd/playlists/entire.m3u b/ar/.config/mpd/playlists/entire.m3u index a97d449..ae63151 100644 --- a/ar/.config/mpd/playlists/entire.m3u +++ b/ar/.config/mpd/playlists/entire.m3u @@ -625,7 +625,6 @@ Soovi/Make the Move/Make the Move (feat. pH-1).mp3 Stephen Bishop/Careless/On And On.mp3 Stephen Sanchez/Easy On My Eyes/Until I Found You.mp3 Stephen Sanchez/Until I Found You/Until I Found You (Em Beihold Version).mp3 -Studio EIM/MABINOGI HEROES 15th Anniversary Special Edition/Open Your Eyes.mp3 Sunfly Karaoke/Disco, Vol. 2/I Love to Love in the Style of Tina Charles.mp3 Sung Si Kyung/CURTAIN CALL OST/For A Long Time (오랫동안).mp3 Sung Si Kyung/First Time (Single)/First time (처음).mp3 diff --git a/ar/.config/mpd/playlists/kpop.m3u b/ar/.config/mpd/playlists/kpop.m3u index a671d8f..f3cd37b 100644 --- a/ar/.config/mpd/playlists/kpop.m3u +++ b/ar/.config/mpd/playlists/kpop.m3u @@ -247,7 +247,6 @@ Skinny Brown/Sing Alone/Sing Alone.mp3 Skinny Brown/Fix you/Fix you (1393).mp3 Sondia/My Mister, Pt. 2 (Original Television Soundtrack)/Grown Ups.mp3 Soovi/Make the Move/Make the Move (feat. pH-1).mp3 -Studio EIM/MABINOGI HEROES 15th Anniversary Special Edition/Open Your Eyes.mp3 Sung Si Kyung/CURTAIN CALL OST/For A Long Time (오랫동안).mp3 Sung Si Kyung/First Time/First Time (처음).mp3 Sung Si Kyung/First Time/Thank You (Thank You).mp3 diff --git a/ar/.config/ncmpcpp/config b/ar/.config/ncmpcpp/config index 5e90e43..cf2143c 100644 --- a/ar/.config/ncmpcpp/config +++ b/ar/.config/ncmpcpp/config @@ -421,11 +421,7 @@ media_library_albums_split_by_date = no # #cyclic_scrolling = no # -## Only `tags` (embedded lyrics) is kept here. The broken built-in `genius` -## scraper is removed on purpose; lyrics downloading is handled by -## ~/.config/ncmpcpp/genius-lyrics.py (run from execute_on_song_change). -## To restore ncmpcpp's own fetchers, re-add: genius, tekstowo, plyrics, ... -lyrics_fetchers = tags +#lyrics_fetchers = tags, tekstowo, plyrics, justsomelyrics, jahlyrics, zeneszoveg, internet # #follow_now_playing_lyrics = no # diff --git a/ar/.config/newsboat/fulltext.py b/ar/.config/newsboat/fulltext.py index 4f567e5..33896b1 100755 --- a/ar/.config/newsboat/fulltext.py +++ b/ar/.config/newsboat/fulltext.py @@ -90,8 +90,11 @@ def extract(url): with open(cp, "r", encoding="utf-8", errors="replace") as f: return f.read() try: + # Force UTF-8 decoding: some sites (e.g. CNBC) serve UTF-8 but declare + # no charset in the HTTP header or an early <meta>, so rdrview falls back + # to Latin-1/CP1252 and mangles multibyte chars (em-dash -> "â€""). out = subprocess.run( - ["rdrview", "-H", url], + ["rdrview", "-E", "UTF-8", "-H", url], capture_output=True, text=True, timeout=TIMEOUT, ) except (FileNotFoundError, subprocess.TimeoutExpired): diff --git a/ar/.config/vim/init.vim b/ar/.config/vim/init.vim index 66507d5..b488260 100644 --- a/ar/.config/vim/init.vim +++ b/ar/.config/vim/init.vim @@ -243,8 +243,7 @@ if !exists('g:airline_symbols') endif let g:airline_symbols.colnr = ' C:' let g:airline_symbols.linenr = ' L:' -let g:airline_symbols.maxlinenr = ' ' -let g:airline#extensions#whitespace#symbol = '!' +let g:airline_symbols.maxlinenr = '☰ ' " colorscheme if isdirectory(expand("${XDG_CONFIG_HOME:-$HOME/.config}/vim/plugged/catppuccin")) diff --git a/ar/.local/bin/opout b/ar/.local/bin/opout index 70bc2cb..1b84b19 100755 --- a/ar/.local/bin/opout +++ b/ar/.local/bin/opout @@ -9,7 +9,9 @@ basename="${1%.*}" case "${*}" in *.tex | *.sil | *.m[dse] | *.[rR]md | *.mom | *.[0-9]) target="$(getcomproot "$1" || echo "$1")" - setsid -f xdg-open "${target%.*}".pdf >/dev/null 2>&1 + target="${target##*/}" + target="$(find . -name "${target%.*}".pdf | head -n 1)" + setsid -f xdg-open "$target" >/dev/null 2>&1 ;; *.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;; *.sent) setsid -f sent "$1" >/dev/null 2>&1 ;; diff --git a/ar/.local/bin/sysact b/ar/.local/bin/sysact index c76fa0b..8e56979 100755 --- a/ar/.local/bin/sysact +++ b/ar/.local/bin/sysact @@ -8,13 +8,13 @@ case "$(readlink -f /sbin/init)" in esac lock() { - mpc pause - pauseallmpv - wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle - kill -38 "$(pidof dwmblocks)" + was_muted="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -o 'MUTED' && echo 1 || echo 0)" + mpc pause & + pauseallmpv & + wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 & slock - wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle - kill -38 "$(pidof dwmblocks)" + [ "$was_muted" -eq 0 ] && wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 + pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}" } wmpid() { # This function is needed if there are multiple instances of the window manager. diff --git a/global/Music/.music.txt b/global/Music/.music.txt index ff32e74..b999d71 100644 --- a/global/Music/.music.txt +++ b/global/Music/.music.txt @@ -851,7 +851,6 @@ youtube jF_GXtR3CPc youtube -00pymFtgyY youtube 93SsG6D78XI youtube 1gJKxxthNR0 -youtube mzq05JwIBbs youtube Ts2mpHh26WQ youtube slW7O5f7uTI youtube f0GCwaReGNM diff --git a/global/Music/.music_titles.txt b/global/Music/.music_titles.txt index ac8ccd8..758f999 100644 --- a/global/Music/.music_titles.txt +++ b/global/Music/.music_titles.txt @@ -851,7 +851,6 @@ jF_GXtR3CPc Sung Si Kyung - For A Long Time (오랫동안) -00pymFtgyY ChaZanBand - Eventually 93SsG6D78XI SUNG SI KYUNG - YOU ARE MY SPRING (너는 나의 봄이다) 1gJKxxthNR0 에스프레소 - 언제나 나의 곁에 있어주는 사람 있죠 -mzq05JwIBbs Studio EIM - Open Your Eyes Ts2mpHh26WQ Sung Si Kyung - Anytime anyhow slW7O5f7uTI Sung Si Kyung - First Time (처음) f0GCwaReGNM 보이비, Crush, 원슈타인, 지올팍, 샘김, GRAY, 개코, 최자, & 마미손 - 놀면 뭐해? |
