From 322ecae3349f70b06a3ecf052bd57249b708eb1d Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 19 Feb 2021 16:46:47 +0800 Subject: [PATCH 1/5] scrcpy / solving windows terminal Ctrl+Shift+C not working --- gui/todo/scrcpy-android-screen2pc.md | 9 +++++++++ win/WindowsTerminal/settings.json | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 gui/todo/scrcpy-android-screen2pc.md diff --git a/gui/todo/scrcpy-android-screen2pc.md b/gui/todo/scrcpy-android-screen2pc.md new file mode 100644 index 0000000..a2ff417 --- /dev/null +++ b/gui/todo/scrcpy-android-screen2pc.md @@ -0,0 +1,9 @@ + +# install scrcpy + +https://github.com/Genymobile/scrcpy + + +# install guiscrcpy + +https://guiscrcpy.srevinsaju.me/ diff --git a/win/WindowsTerminal/settings.json b/win/WindowsTerminal/settings.json index 3e783a0..ef32b65 100644 --- a/win/WindowsTerminal/settings.json +++ b/win/WindowsTerminal/settings.json @@ -112,8 +112,9 @@ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection - { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" }, - { "command": "paste", "keys": "ctrl+v" }, + // { "command": { "action": "copy", "singleLine": false }, "keys": "ctrl+c" }, + // { "command": "paste", "keys": "ctrl+v" }, + // AMD Radeon Software might use Ctrl+Shift+C causing hotkey not working on Windows Termainl // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+shift+f" }, From b296d88dc787bdc5aff5d17685d87a592a9ed252 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 24 Feb 2021 15:59:17 +0800 Subject: [PATCH 2/5] [misc] download db driver in CHINA --- devel/dbeaver.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 devel/dbeaver.md diff --git a/devel/dbeaver.md b/devel/dbeaver.md new file mode 100644 index 0000000..b046727 --- /dev/null +++ b/devel/dbeaver.md @@ -0,0 +1,9 @@ + +从 aliyun maven 仓库下载驱动: + +Window -> Preferences -> Connections -> Drviers -> Maven -> Add +``` +http://maven.aliyun.com/nexus/content/groups/public/ +``` +然后移到最上面 + From d6eabdef2b780bb4668e9f2598e495a1f8a33c39 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Feb 2021 10:34:15 +0800 Subject: [PATCH 3/5] [feature] jabba for JAVA version management --- cli/fish/config.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index de2fde5..7551867 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -55,6 +55,7 @@ if status is-interactive # === PATH and file sourcing append_paths ~/.local/bin ~/.yarn/bin ~/dotfiles/bin ~/dotfiles/devops/bin source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \ + ~/.jabba/jabba.fish \ ~/.profile.fish # === auto cd into last activated directory From 0d6ffc3e03426766c6b1f3ec376523296d268a29 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Feb 2021 10:34:40 +0800 Subject: [PATCH 4/5] [feature] rounded corner --- gui/picom.sh | 3 ++- gui/picom/picom.conf | 35 +++++++++++++++++++++++++++++++++++ gui/picom/picomdaemon | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/gui/picom.sh b/gui/picom.sh index d714ee6..d4d7fc2 100755 --- a/gui/picom.sh +++ b/gui/picom.sh @@ -25,7 +25,8 @@ esac # build and install picom #intorepo https://github.com/klesh/picom.git "$DIR/repos/picom" -intorepo https://github.com/yshui/picom.git "$DIR/repos/picom" +#intorepo https://github.com/yshui/picom.git "$DIR/repos/picom" +intorepo https://github.com/ibhagwan/picom.git "$DIR/repos/picom" meson --buildtype=release . build sudo ninja -C build install exitrepo diff --git a/gui/picom/picom.conf b/gui/picom/picom.conf index 1f510e1..094050b 100644 --- a/gui/picom/picom.conf +++ b/gui/picom/picom.conf @@ -1,4 +1,39 @@ ################################# +# Corners # +################################# +# requires: https://github.com/sdhand/compton +corner-radius = 7.0; +rounded-corners-exclude = [ + #"window_type = 'normal'", + "class_g = 'awesome'", + "class_g = 'URxvt'", + "class_g = 'XTerm'", + "class_g = 'kitty'", + "class_g = 'Alacritty'", + #"class_g = 'Polybar'", + "class_g = 'code-oss'", + "class_g = 'firefox'", + "class_g = 'Thunderbird'" +]; +round-borders = 3; +round-borders-exclude = [ + #"class_g = 'TelegramDesktop'", +]; + +# Specify a list of border width rules, in the format `PIXELS:PATTERN`, +# Note we don't make any guarantee about possible conflicts with the +# border_width set by the window manager. +# +# example: +# round-borders-rule = [ "2:class_g = 'URxvt'" ]; +# +round-borders-rule = [ + "3:class_g = 'XTerm'", + "3:class_g = 'URxvt'", + "10:class_g = 'Alacritty'", + "15:class_g = 'Signal'" +]; +################################# # Shadows # ################################# diff --git a/gui/picom/picomdaemon b/gui/picom/picomdaemon index 1401192..b4f1cea 100755 --- a/gui/picom/picomdaemon +++ b/gui/picom/picomdaemon @@ -11,7 +11,7 @@ stop() { start() { echo start picom -b --experimental-backends \ - --blur-method dual_kawase --blur-strength 6 \ + --blur-method dual_kawase --blur-strength 7 --blur-size 15 \ --no-fading-openclose sleep 1 ! pgrep -x picom >/dev/null && echo 'fallback' && picom -b --no-fading-openclose From 61464ccce574244aba6d09b48bc2ad4d2c0122e2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Feb 2021 10:54:11 +0800 Subject: [PATCH 5/5] [bugfix] corners decorated with white stuff --- gui/picom/picom.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/picom/picom.conf b/gui/picom/picom.conf index 094050b..2a1239f 100644 --- a/gui/picom/picom.conf +++ b/gui/picom/picom.conf @@ -176,7 +176,7 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ]; # Parameters for background blurring, see the *BLUR* section for more information. # blur-method = -# blur-size = 12 +# blur-size = 15 # # blur-deviation = false # @@ -424,6 +424,7 @@ log-file = "/tmp/picom.log" # wintypes: { + normal = { fade = false; shadow = false; } tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; dock = { shadow = false; } dnd = { shadow = false; }