From 2cc47607df0f0e26fc08ce6c46cda3400e91c522 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Mar 2021 11:54:17 +0800 Subject: [PATCH 1/5] [feature] auto set window title --- cli/tmux/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/tmux/tmux.conf b/cli/tmux/tmux.conf index 18b1754..9e6bf25 100644 --- a/cli/tmux/tmux.conf +++ b/cli/tmux/tmux.conf @@ -9,6 +9,8 @@ set -g pane-base-index 1 set-option -g mouse on #set-option -g mouse-select-pane on set-option -g display-time 4000 +set-option -g set-titles on +set-option -g set-titles-string "#S / #W" ############################ From 59f75acb083dc548d2a36936ee639e5449caa6f0 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Mar 2021 11:54:29 +0800 Subject: [PATCH 2/5] [bugfix] error when running inside idea --- cli/fish/functions/fish_right_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/fish/functions/fish_right_prompt.fish b/cli/fish/functions/fish_right_prompt.fish index e4b467e..7048fea 100644 --- a/cli/fish/functions/fish_right_prompt.fish +++ b/cli/fish/functions/fish_right_prompt.fish @@ -9,7 +9,7 @@ function fish_right_prompt test -z $CMD_DURATION -o \( $CMD_DURATION -lt 3000 \) && return test -z $WINDOWID && return set active_window (xdotool getactivewindow 2>/dev/null) - test $active_window -eq $WINDOWID && return + test "$active_window" -eq "$WINDOWID" && return set message (history --max=1) [$duration] notify-send (test "$s" -ne 0 && echo '--icon=dialog-warning') $message end From dffca1979f9e10bae7e61283d228eda8c21adee8 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Mar 2021 11:54:46 +0800 Subject: [PATCH 3/5] [feature] launch idea on dwm --- bin/idea | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/idea diff --git a/bin/idea b/bin/idea new file mode 100755 index 0000000..886682f --- /dev/null +++ b/bin/idea @@ -0,0 +1,5 @@ +#!/bin/sh + +wmname LG3D +/home/klesh/Programs/idea-IC-203.7717.32/bin/idea.sh + From 74c750d8cc26141cf2e13699c76d7c9430c1648f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 27 Mar 2021 11:02:45 +0800 Subject: [PATCH 4/5] [bugfix] dbeaver interface flicking --- bin/dbe | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/dbe diff --git a/bin/dbe b/bin/dbe new file mode 100755 index 0000000..d46fa93 --- /dev/null +++ b/bin/dbe @@ -0,0 +1,6 @@ +#!/bin/sh + +export GTK_IM_MODULE="ibus" +export QT_IM_MODULE="ibus" +export XMODIFIERS="@im=ibus" +dbeaver From 908858a96eede41c4df79e54c4a1b16cdef8de32 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 27 Mar 2021 22:28:28 +0800 Subject: [PATCH 5/5] [feature] download youtube video script --- bin/download-yt-video.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 bin/download-yt-video.sh diff --git a/bin/download-yt-video.sh b/bin/download-yt-video.sh new file mode 100755 index 0000000..e492819 --- /dev/null +++ b/bin/download-yt-video.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection: The ultimate collection of scripts for YouTube-DL +# https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection +# https://github.com/TheFrenchGhosty +# +# + #--datebefore "$(date \ + #--date="30 days ago" +%Y%m%d)" \ + #--batch-file "Source - Unique.txt" 2>&1 | tee output.log + #--no-continue \ + #--no-overwrites \ + +youtube-dlc \ + --format "(bestvideo[vcodec^=av01][height>=4320][fps>30]/bestvideo[vcodec^=vp9.2][height>=4320][fps>30]/bestvideo[vcodec^=vp9][height>=4320][fps>30]/bestvideo[vcodec^=avc1][height>=4320][fps>30]/bestvideo[height>=4320][fps>30]/bestvideo[vcodec^=av01][height>=4320]/bestvideo[vcodec^=vp9.2][height>=4320]/bestvideo[vcodec^=vp9][height>=4320]/bestvideo[vcodec^=avc1][height>=4320]/bestvideo[height>=4320]/bestvideo[vcodec^=av01][height>=2880][fps>30]/bestvideo[vcodec^=vp9.2][height>=2880][fps>30]/bestvideo[vcodec^=vp9][height>=2880][fps>30]/bestvideo[vcodec^=avc1][height>=2880][fps>30]/bestvideo[height>=2880][fps>30]/bestvideo[vcodec^=av01][height>=2880]/bestvideo[vcodec^=vp9.2][height>=2880]/bestvideo[vcodec^=vp9][height>=2880]/bestvideo[vcodec^=avc1][height>=2880]/bestvideo[height>=2880]/bestvideo[vcodec^=av01][height>=2160][fps>30]/bestvideo[vcodec^=vp9.2][height>=2160][fps>30]/bestvideo[vcodec^=vp9][height>=2160][fps>30]/bestvideo[vcodec^=avc1][height>=2160][fps>30]/bestvideo[height>=2160][fps>30]/bestvideo[vcodec^=av01][height>=2160]/bestvideo[vcodec^=vp9.2][height>=2160]/bestvideo[vcodec^=vp9][height>=2160]/bestvideo[vcodec^=avc1][height>=2160]/bestvideo[height>=2160]/bestvideo[vcodec^=av01][height>=1440][fps>30]/bestvideo[vcodec^=vp9.2][height>=1440][fps>30]/bestvideo[vcodec^=vp9][height>=1440][fps>30]/bestvideo[vcodec^=avc1][height>=1440][fps>30]/bestvideo[height>=1440][fps>30]/bestvideo[vcodec^=av01][height>=1440]/bestvideo[vcodec^=vp9.2][height>=1440]/bestvideo[vcodec^=vp9][height>=1440]/bestvideo[vcodec^=avc1][height>=1440]/bestvideo[height>=1440]/bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec^=vp9.2][height>=1080][fps>30]/bestvideo[vcodec^=vp9][height>=1080][fps>30]/bestvideo[vcodec^=avc1][height>=1080][fps>30]/bestvideo[height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec^=vp9.2][height>=1080]/bestvideo[vcodec^=vp9][height>=1080]/bestvideo[vcodec^=avc1][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec^=vp9.2][height>=720][fps>30]/bestvideo[vcodec^=vp9][height>=720][fps>30]/bestvideo[vcodec^=avc1][height>=720][fps>30]/bestvideo[height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec^=vp9.2][height>=720]/bestvideo[vcodec^=vp9][height>=720]/bestvideo[vcodec^=avc1][height>=720]/bestvideo[height>=720]/bestvideo[vcodec^=av01][height>=480][fps>30]/bestvideo[vcodec^=vp9.2][height>=480][fps>30]/bestvideo[vcodec^=vp9][height>=480][fps>30]/bestvideo[vcodec^=avc1][height>=480][fps>30]/bestvideo[height>=480][fps>30]/bestvideo[vcodec^=av01][height>=480]/bestvideo[vcodec^=vp9.2][height>=480]/bestvideo[vcodec^=vp9][height>=480]/bestvideo[vcodec^=avc1][height>=480]/bestvideo[height>=480]/bestvideo[vcodec^=av01][height>=360][fps>30]/bestvideo[vcodec^=vp9.2][height>=360][fps>30]/bestvideo[vcodec^=vp9][height>=360][fps>30]/bestvideo[vcodec^=avc1][height>=360][fps>30]/bestvideo[height>=360][fps>30]/bestvideo[vcodec^=av01][height>=360]/bestvideo[vcodec^=vp9.2][height>=360]/bestvideo[vcodec^=vp9][height>=360]/bestvideo[vcodec^=avc1][height>=360]/bestvideo[height>=360]/bestvideo[vcodec^=avc1][height>=240][fps>30]/bestvideo[vcodec^=av01][height>=240][fps>30]/bestvideo[vcodec^=vp9.2][height>=240][fps>30]/bestvideo[vcodec^=vp9][height>=240][fps>30]/bestvideo[height>=240][fps>30]/bestvideo[vcodec^=avc1][height>=240]/bestvideo[vcodec^=av01][height>=240]/bestvideo[vcodec^=vp9.2][height>=240]/bestvideo[vcodec^=vp9][height>=240]/bestvideo[height>=240]/bestvideo[vcodec^=avc1][height>=144][fps>30]/bestvideo[vcodec^=av01][height>=144][fps>30]/bestvideo[vcodec^=vp9.2][height>=144][fps>30]/bestvideo[vcodec^=vp9][height>=144][fps>30]/bestvideo[height>=144][fps>30]/bestvideo[vcodec^=avc1][height>=144]/bestvideo[vcodec^=av01][height>=144]/bestvideo[vcodec^=vp9.2][height>=144]/bestvideo[vcodec^=vp9][height>=144]/bestvideo[height>=144]/bestvideo)+(bestaudio[acodec^=opus]/bestaudio)/best" \ + --verbose \ + --force-ipv4 \ + --sleep-interval 5 \ + --max-sleep-interval 30 \ + --ignore-errors \ + --download-archive archive.log \ + --add-metadata \ + --write-description \ + --write-info-json \ + --write-annotations \ + --write-thumbnail \ + --embed-thumbnail \ + --all-subs \ + --embed-subs \ + --match-filter "!is_live & !live" \ + --output "%(title)s - %(uploader)s - %(upload_date)s/%(title)s - %(uploader)s - %(upload_date)s [%(id)s].%(ext)s" \ + --merge-output-format "mkv" \ + "$@" 2>/tmp/download-yt-playlist-error.log