From 78400e4a6a6b1c9b338bfcb4bae500d56aeacec1 Mon Sep 17 00:00:00 2001 From: js0ny Date: Wed, 16 Apr 2025 20:33:09 +0100 Subject: [PATCH] Minor fixes --- platforms/linux/fcitx5/config | 2 +- platforms/linux/hypr/hyprland.conf | 6 +++--- platforms/linux/hypr/hyprland/light.conf | 1 + platforms/linux/rofi/light.rasi | 1 + tools/browser/surfingkeys.js | 2 +- tools/fish/conf.d/alias.fish | 3 +-- tools/fish/conf.d/colorscheme.fish | 6 +++--- tools/nvim/lua/plugins/mod/fzf.lua | 2 +- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/platforms/linux/fcitx5/config b/platforms/linux/fcitx5/config index 147898e..9060657 100644 --- a/platforms/linux/fcitx5/config +++ b/platforms/linux/fcitx5/config @@ -43,7 +43,7 @@ ModifierOnlyKeyTimeout=250 0=Tab [Hotkey/TogglePreedit] -0=Control+Alt+P +# 0=Control+Alt+P [Behavior] # 默认状态为激活 diff --git a/platforms/linux/hypr/hyprland.conf b/platforms/linux/hypr/hyprland.conf index 6f6cbda..b2814e5 100644 --- a/platforms/linux/hypr/hyprland.conf +++ b/platforms/linux/hypr/hyprland.conf @@ -118,7 +118,7 @@ general { gaps_in = 0 gaps_out = 0 - border_size = 3 + border_size = 5 # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors col.active_border = $lavender $pink 45deg @@ -140,8 +140,8 @@ decoration { rounding = 0 # Change transparency of focused and unfocused windows - active_opacity = 0.9 - inactive_opacity = 0.6 + active_opacity = 1 + inactive_opacity = 0.9 shadow { enabled = true diff --git a/platforms/linux/hypr/hyprland/light.conf b/platforms/linux/hypr/hyprland/light.conf index ea029c4..c7ea435 100644 --- a/platforms/linux/hypr/hyprland/light.conf +++ b/platforms/linux/hypr/hyprland/light.conf @@ -81,3 +81,4 @@ exec = gsettings set org.gnome.desktop.interface gtk-theme "BreezeLight" # for exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-light" # for GTK4 apps exec = kwriteconfig5 --group "General" --key "ColorScheme" "BreezeLight" exec = ln -sf ~/.config/waybar/light.css ~/.config/waybar/current.css +exec = ln -sf ~/.config/rofi/light.rasi ~/.config/rofi/current.rasi diff --git a/platforms/linux/rofi/light.rasi b/platforms/linux/rofi/light.rasi index 9c7b0eb..a546588 100644 --- a/platforms/linux/rofi/light.rasi +++ b/platforms/linux/rofi/light.rasi @@ -25,5 +25,6 @@ base: #eff1f5; mantle: #e6e9ef; crust: #dce0e8; + accent: @lavender; } diff --git a/tools/browser/surfingkeys.js b/tools/browser/surfingkeys.js index f000a4f..b10cbfa 100644 --- a/tools/browser/surfingkeys.js +++ b/tools/browser/surfingkeys.js @@ -345,7 +345,7 @@ unmap("yma") unmap("ymc") unmap("ymv") -map("ym", "yank link as markdown", function () { +mapkey("ym", "yank link as markdown", function () { const url = new URL(window.location.href); const title = document.title; Clipboard.write(`[${title}](${url.origin + url.pathname})`); diff --git a/tools/fish/conf.d/alias.fish b/tools/fish/conf.d/alias.fish index 3a3dd15..bef090b 100644 --- a/tools/fish/conf.d/alias.fish +++ b/tools/fish/conf.d/alias.fish @@ -60,8 +60,7 @@ abbr --add ipy ipython abbr --add g lazygit - -abbr --add doomrc "emacsclient -t ~/.config/doom/" +abbr --add aic "aichat -s" # lsd - modern ls if command -v lsd > /dev/null diff --git a/tools/fish/conf.d/colorscheme.fish b/tools/fish/conf.d/colorscheme.fish index 26a79b7..8598659 100644 --- a/tools/fish/conf.d/colorscheme.fish +++ b/tools/fish/conf.d/colorscheme.fish @@ -2,13 +2,13 @@ switch (uname) case "Linux" set SYSTEM_COLOR_SCHEME (gsettings get org.gnome.desktop.interface color-scheme) if test $SYSTEM_COLOR_SCHEME = "'prefer-dark'" - set -g fish_config_theme "Catppuccin Mocha" + fish_config theme choose "Catppuccin Mocha" else - set -g fish_config_theme "Catppuccin Latte" + fish_config theme choose "Catppuccin Latte" end case "Darwin" set SYSTEM_COLOR_SCHEME defaults read -g AppleInterfaceStyle echo "[TODO] Check if dark mode is enabled in macOS" case '*' - set -g fish_config_theme "Catppuccin Mocha" + fish_config theme choose "Catppuccin Mocha" end diff --git a/tools/nvim/lua/plugins/mod/fzf.lua b/tools/nvim/lua/plugins/mod/fzf.lua index 45507c1..63a970c 100644 --- a/tools/nvim/lua/plugins/mod/fzf.lua +++ b/tools/nvim/lua/plugins/mod/fzf.lua @@ -23,7 +23,7 @@ return { { "cs", "FzfLua treesitter", desc = "Search symbols" }, { "cS", "FzfLua grep_string", desc = "Search current symbol" }, { "bB", "FzfLua buffers", desc = "List Buffers" }, - { "fl", ":FzfLua filetypes", desc = "Set Filetype/Lang to ..." }, + { "fl", "FzfLua filetypes", desc = "Set Filetype/Lang to ..." }, { "R", "FzfLua resume", desc = "Resume FzfLua" }, }, opts = {},