diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 4895355..09c53c6 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -9,7 +9,7 @@ enable_audio_bell no window_alert_on_bell no # 下划线位置(偏下) -modify_font underline_position 100 +modify_font underline_position 1 # Unicode PUA使用Nerd font,会覆盖来自其他字体的字形 symbol_map U+E000-U+F8FF Symbols Nerd Font @@ -58,6 +58,10 @@ map ctrl+g>ctrl+u kitten hints --type=url #### 用goldendict查询单词 map ctrl+g>ctrl+q kitten hints --type=word --program goldendict +#### 高亮指定文本 +map ctrl+g>ctrl+m create_marker +map ctrl+g>shift+m remove_marker + # 其他hints使用默认的快捷键ctrl+shift+p和ctrl+shift+e # }}} diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf index 54932c3..926bfa2 100644 --- a/.config/picom/picom.conf +++ b/.config/picom/picom.conf @@ -9,6 +9,7 @@ shadow-offset-y = -32 shadow-opacity = 0.48 shadow-exclude = [ + "class_g ~= 'com.github.johnfactotum.Foliate' && window_type = 'menu'", "class_g = 'firefox' && window_type = 'utility'", "class_g = 'firefox' && window_type = 'popup_menu'" ] @@ -18,6 +19,7 @@ shadow-exclude = [ ################################# fading = true +fade-delta = 4 ################################# # Corners # @@ -29,7 +31,6 @@ rounded-corners-exclude = [ "_NET_WM_WINDOW_TYPE@:32a = '_NET_WM_WINDOW_TYPE_NORMAL' && IS_FLOATING@:s != 'True' && IS_SINGLE@:s != 'True'", "QTILE_INTERNAL@:32c = 1", - "window_type = 'tooltip'", "class_g = 'kitty'", "class_g = 'mpv'", "class_g *= 'steam_app_'" @@ -42,6 +43,7 @@ rounded-corners-exclude = [ blur-method = "dual_kawase" blur-strength = 6 blur-background-exclude = [ + "class_g ~= 'com.github.johnfactotum.Foliate' && window_type = 'menu'", "class_g = 'firefox' && window_type = 'popup_menu'", "class_g = 'Peek'" ]; diff --git a/.config/pikaur.conf b/.config/pikaur.conf index 007b5b8..dd037ff 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -12,7 +12,7 @@ keepbuilddeps = no skipfailedbuild = no ignorearch = no gpgdir = -dynamicusers = root +dynamicusers = never [colors] version = 10 @@ -27,14 +27,20 @@ aursearchsorting = hottest displaylastupdated = no groupbyrepository = yes warnaboutpackageupdates = +warnaboutnondefaultprivilegeescalationtool = yes [misc] sudoloopinterval = 59 pacmanpath = pacman privilegeescalationtool = sudo +privilegeescalationtarget = pikaur +userid = 0 +preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY,CARGO_HOME,RUSTUP_HOME +cachepath = /home/rydesun/.cache +datapath = /home/rydesun/.local/share [network] -newsurl = https://www.archlinux.org/feeds/news/ +newsurl = https://archlinux.org/feeds/news/ socks5proxy = aurhttpproxy = aurhttpsproxy = diff --git a/.zprofile b/.zprofile index c779316..22f72a3 100644 --- a/.zprofile +++ b/.zprofile @@ -66,6 +66,8 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export SQLITE_HISTORY="$XDG_DATA_HOME"/sqlite_history # {{{ 图形环境 +export XDG_MENU_PREFIX=plasma- + # 鼠标主题 export XCURSOR_PATH="$XDG_DATA_HOME"/icons:/usr/share/icons diff --git a/.zshrc b/.zshrc index c549a90..e25136a 100644 --- a/.zshrc +++ b/.zshrc @@ -303,6 +303,13 @@ first-tab() { zle -N first-tab bindkey '^I' first-tab +add_sudo() { + BUFFER="sudo $BUFFER" + CURSOR=$(($CURSOR + 5)) +} +zle -N add_sudo +bindkey '^X^R' add_sudo + # 让 / = 作为分隔符 # 默认 WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' WORDCHARS='*?_-.[]~&;!#$%^(){}<>' @@ -339,7 +346,7 @@ alias l='ls -l' alias la='ls -A' alias ll='ls -Al' alias g='git' -alias x='xdg-open' +alias x='kde-open' alias e='nvim' alias f='ranger' d() {