Various config tweaks
This commit is contained in:
parent
b18f5056b3
commit
901d74e8b2
13 changed files with 105 additions and 4 deletions
2
config/NetworkManager/wifi-powersave-off.conf
Normal file
2
config/NetworkManager/wifi-powersave-off.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[connection]
|
||||
wifi.powersave = 2
|
||||
4
config/fish/conf.d/gpg.fish
Normal file
4
config/fish/conf.d/gpg.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Tell gpg-agent about the current terminal on each interactive login
|
||||
if status is-interactive
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
|
||||
end
|
||||
|
|
@ -12,3 +12,8 @@ if test -f /etc/profile.d/lang.sh
|
|||
end
|
||||
|
||||
set -gx LANG en_US.UTF-8
|
||||
|
||||
# GPG: ensure pinentry-curses can find the terminal (only in interactive shells)
|
||||
if status is-interactive
|
||||
set -gx GPG_TTY (tty)
|
||||
end
|
||||
|
|
|
|||
2
config/gnupg/gpg-agent.conf
Normal file
2
config/gnupg/gpg-agent.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
allow-emacs-pinentry
|
||||
pinentry-program /usr/bin/pinentry-curses
|
||||
|
|
@ -11,6 +11,7 @@ config.font = wezterm.font_with_fallback {
|
|||
|
||||
config.font_size = 14
|
||||
config.enable_tab_bar = false
|
||||
config.audible_bell = "Disabled"
|
||||
|
||||
-- Wayland-specific settings
|
||||
config.enable_wayland = true
|
||||
|
|
|
|||
|
|
@ -6,4 +6,9 @@
|
|||
mkdir -p /run/user/$(id -u)
|
||||
chmod 700 /run/user/$(id -u)
|
||||
|
||||
# Start PipeWire audio stack
|
||||
pipewire &
|
||||
pipewire-pulse &
|
||||
wireplumber &
|
||||
|
||||
exec stumpwm
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[[open]]
|
||||
name = "Images"
|
||||
extensions = ["gif"]
|
||||
exec = "sxiv \"$1\""
|
||||
exec = "nsxiv \"$1\""
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ max_height = 1400
|
|||
|
||||
[opener]
|
||||
image = [
|
||||
{ run = 'sxiv "$@"', desc = "sxiv" },
|
||||
{ run = 'nsxiv "$@"', desc = "nsxiv" },
|
||||
]
|
||||
video = [
|
||||
{ run = 'mpv "$@"', desc = "mpv" },
|
||||
|
|
|
|||
40
config/zathura/zathurarc
Normal file
40
config/zathura/zathurarc
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Zathura config - OceanicNext theme
|
||||
|
||||
# --- Recolor (dark mode) ---
|
||||
set recolor true
|
||||
set recolor-lightcolor "#1B2B34" # bg
|
||||
set recolor-darkcolor "#CDD3DE" # fg
|
||||
set recolor-keephue true
|
||||
|
||||
# --- UI Colors ---
|
||||
set default-bg "#1B2B34" # bg
|
||||
set default-fg "#CDD3DE" # fg
|
||||
|
||||
set statusbar-bg "#0F1B22" # bg-alt
|
||||
set statusbar-fg "#CDD3DE" # fg
|
||||
|
||||
set inputbar-bg "#0F1B22" # bg-alt
|
||||
set inputbar-fg "#CDD3DE" # fg
|
||||
|
||||
set notification-bg "#0F1B22"
|
||||
set notification-fg "#CDD3DE"
|
||||
set notification-error-bg "#0F1B22"
|
||||
set notification-error-fg "#EC5F67" # urgent/red
|
||||
set notification-warning-bg "#0F1B22"
|
||||
set notification-warning-fg "#FAC863" # yellow
|
||||
|
||||
set highlight-color "#99C794" # accent/green (search highlight)
|
||||
set highlight-active-color "#5FB3B3" # teal (active match)
|
||||
|
||||
set completion-bg "#0F1B22"
|
||||
set completion-fg "#CDD3DE"
|
||||
set completion-highlight-bg "#2B3B44" # bg-sel
|
||||
set completion-highlight-fg "#99C794" # accent
|
||||
|
||||
set render-loading-bg "#1B2B34"
|
||||
set render-loading-fg "#CDD3DE"
|
||||
|
||||
# --- Behavior ---
|
||||
set window-title-home-tilde true
|
||||
set statusbar-home-tilde true
|
||||
set selection-clipboard clipboard
|
||||
|
|
@ -449,7 +449,7 @@ Setting this in the :init of evil doesn't work for some reason. It has to be ear
|
|||
|
||||
(use-package dired-open
|
||||
:config
|
||||
(setq dired-open-extensions '(("png" . "sxiv")
|
||||
(setq dired-open-extensions '(("png" . "nsxiv")
|
||||
("mkv" . "mpv")
|
||||
("avi" . "mpv"))))
|
||||
;; (eval-after-load 'evil
|
||||
|
|
|
|||
15
link.sh
15
link.sh
|
|
@ -35,6 +35,17 @@ backup_and_link "$DOTFILES/config/nyxt" "$HOME/.config/nyxt"
|
|||
backup_and_link "$DOTFILES/config/yazi" "$HOME/.config/yazi"
|
||||
|
||||
backup_and_link "$DOTFILES/config/rofi" "$HOME/.config/rofi"
|
||||
backup_and_link "$DOTFILES/config/zathura" "$HOME/.config/zathura"
|
||||
|
||||
# GPG: link individual files to preserve ~/.gnupg's required 700 permissions
|
||||
mkdir -p "$HOME/.gnupg"
|
||||
chmod 700 "$HOME/.gnupg"
|
||||
backup_and_link "$DOTFILES/config/gnupg/gpg-agent.conf" "$HOME/.gnupg/gpg-agent.conf"
|
||||
|
||||
# pinentry-smart: TUI-aware wrapper (curses normally, tty inside senpai/mutt/etc.)
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
backup_and_link "$DOTFILES/scripts/pinentry-smart" "$HOME/.local/bin/pinentry-smart"
|
||||
chmod +x "$DOTFILES/scripts/pinentry-smart"
|
||||
|
||||
# GTK themes
|
||||
backup_and_link "$DOTFILES/config/gtk-2.0/gtkrc" "$HOME/.gtkrc-2.0"
|
||||
|
|
@ -55,6 +66,10 @@ if [ "$EUID" -eq 0 ]; then
|
|||
backup_and_link "$DOTFILES/config/kanata/rc.kanata" "/etc/rc.d/rc.kanata"
|
||||
chmod +x /etc/rc.d/rc.kanata
|
||||
|
||||
# NetworkManager: disable wifi power saving (fixes MT7922 radio drops)
|
||||
mkdir -p /etc/NetworkManager/conf.d
|
||||
backup_and_link "$DOTFILES/config/NetworkManager/wifi-powersave-off.conf" "/etc/NetworkManager/conf.d/wifi-powersave-off.conf"
|
||||
|
||||
if ! grep -q "rc.kanata" /etc/rc.d/rc.local; then
|
||||
echo "" >> /etc/rc.d/rc.local
|
||||
echo "# Start kanata key remapper" >> /etc/rc.d/rc.local
|
||||
|
|
|
|||
27
scripts/pinentry-smart
Executable file
27
scripts/pinentry-smart
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
# pinentry-smart: use pinentry-curses normally, but fall back to pinentry-tty
|
||||
# when another TUI (e.g. senpai) already owns the terminal/ncurses context.
|
||||
#
|
||||
# Detection: walk up the process tree. If we find a known TUI app before
|
||||
# reaching a shell or login, assume the terminal is taken.
|
||||
|
||||
is_tui_parent() {
|
||||
local pid="$PPID"
|
||||
local tui_apps="senpai mutt neomutt irssi weechat ncmpcpp ranger vifm"
|
||||
for _ in $(seq 1 10); do
|
||||
[[ -z "$pid" || "$pid" -le 1 ]] && break
|
||||
local cmd
|
||||
cmd=$(ps -o comm= -p "$pid" 2>/dev/null)
|
||||
for app in $tui_apps; do
|
||||
[[ "$cmd" == "$app" ]] && return 0
|
||||
done
|
||||
pid=$(ps -o ppid= -p "$pid" 2>/dev/null | tr -d ' ')
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
if is_tui_parent; then
|
||||
exec /usr/bin/pinentry-tty "$@"
|
||||
else
|
||||
exec /usr/bin/pinentry-curses "$@"
|
||||
fi
|
||||
|
|
@ -124,7 +124,7 @@ stfl
|
|||
stow
|
||||
sutils
|
||||
sxhkd
|
||||
sxiv
|
||||
nsxiv
|
||||
symbola-font-ttf
|
||||
syncthing
|
||||
task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue