From 8b458b07073e11b740ca2a651d5dab57852bbdaa Mon Sep 17 00:00:00 2001 From: lew Date: Tue, 11 Nov 2025 12:14:47 +0000 Subject: [PATCH] Update .tmux.conf Update .config/fish/fish_variables Update .config/nvim/lazy-lock.json Update .config/user-dirs.dirs Update .config/systemd/user/mako-dnd-off.service Update .config/systemd/user/mako-dnd-on.service Update .local/bin/low-battery-warn --- dot_tmux.conf | 34 ++++++++----------- .../fish/private_fish_variables | 1 + private_dot_config/nvim/lazy-lock.json | 1 + private_dot_config/private_user-dirs.dirs | 4 +-- .../systemd/user/mako-dnd-off.service | 1 + .../systemd/user/mako-dnd-on.service | 1 + .../bin/executable_low-battery-warn | 4 +-- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/dot_tmux.conf b/dot_tmux.conf index 172cc00..d2b8135 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -1,21 +1,3 @@ -unbind C-b # unbind default prefix -unbind Left # unbind default pane moves -unbind Right # " -unbind Up # " -unbind Down # " -unbind - -unbind \; -bind-key ` send-prefix # bind backtick as prefix -bind-key - split-window # split -bind-key \; split-window -h # horizontal split -bind-key r source-file ~/.tmux.conf \; display-message "reloaded tmux config" -bind-key c command-prompt -p "window name:" "new-window; rename-window '%%'" -bind-key C-f display-popup -E "tmux-sessionizer" -bind-key C-q command-prompt -p find-session 'switch-client -t %%' -bind-key Left previous-window # window back -bind-key Right next-window # window forward -bind-key Up switch-client -p # session back -bind-key Down switch-client -n # session forward is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?\.?(view|n?vim?x?)(-wrapped)?(diff)?$'" bind-key -n M-Left if-shell "$is_vim" 'send-keys M-Left' 'select-pane -L' bind-key -n M-Right if-shell "$is_vim" 'send-keys M-Right' 'select-pane -R' @@ -29,8 +11,22 @@ bind-key -n M-S-Left if-shell "$is_vim" 'send-keys M-S-Left' 'swap-pane - bind-key -n M-S-Right if-shell "$is_vim" 'send-keys M-S-Right' 'swap-pane -s "{right-of}"' bind-key -n M-S-Up if-shell "$is_vim" 'send-keys M-S-Up' 'swap-pane -s "{up-of}"' bind-key -n M-S-Down if-shell "$is_vim" 'send-keys M-S-Down' 'swap-pane -s "{down-of}"' + +unbind C-b # unbind default prefix +bind-key ` send-prefix # bind backtick as prefix +bind-key - split-window # split +bind-key \; split-window -h # horizontal split +bind-key r source-file ~/.tmux.conf \; display-message "reloaded tmux config" +bind-key c command-prompt -p "window name:" "new-window; rename-window '%%'" +bind-key C-f display-popup -E "tmux-sessionizer" +bind-key C-q command-prompt -p find-session 'switch-client -t %%' +bind-key Left previous-window # window back +bind-key Right next-window # window forward +bind-key Up switch-client -p # session back +bind-key Down switch-client -n # session forward bind-key -n M-z resize-pane -Z # pane zoom bind-key -n M-w confirm-before -p "are you sure you want to kill #P?" kill-pane + set-option -g prefix ` # " set-option -g default-terminal "$TERM" # 256-colors set-option -ag terminal-overrides ",$TERM:Tc" # " @@ -44,7 +40,7 @@ set-option -g exit-unattached off # don't exit tmux when all set-option -g detach-on-destroy off # don't detach clients when a session is destroyed set-option -g renumber-windows on # renumber windows when one is closed set-option -g base-index 1 # start window numbering at 1 -set-w -g pane-base-index 1 # start pane numbering at 1 +set-window -g pane-base-index 1 # start pane numbering at 1 set-option -g allow-rename off # don't rename windows automatically set-option -g mouse off # mouse control set-option -g status-style bg=default # status styling diff --git a/private_dot_config/fish/private_fish_variables b/private_dot_config/fish/private_fish_variables index e867db0..4ebb21c 100644 --- a/private_dot_config/fish/private_fish_variables +++ b/private_dot_config/fish/private_fish_variables @@ -45,3 +45,4 @@ SETUVAR fish_pager_color_selected_background:\x2dr SETUVAR fish_pager_color_selected_completion:\x1d SETUVAR fish_pager_color_selected_description:\x1d SETUVAR fish_pager_color_selected_prefix:\x1d +SETUVAR fish_user_paths:/home/lew/go/bin\x1e/home/lew/\x2elocal/share/mise/shims diff --git a/private_dot_config/nvim/lazy-lock.json b/private_dot_config/nvim/lazy-lock.json index 33526a1..031e504 100644 --- a/private_dot_config/nvim/lazy-lock.json +++ b/private_dot_config/nvim/lazy-lock.json @@ -2,6 +2,7 @@ "blink-copilot": { "branch": "main", "commit": "7ad8209b2f880a2840c94cdcd80ab4dc511d4f39" }, "blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" }, "codecompanion.nvim": { "branch": "main", "commit": "79c6908a091f19c447141459a481e8ce05e49151" }, + "comment-box.nvim": { "branch": "main", "commit": "06bb771690bc9df0763d14769b779062d8f12bc5" }, "conform.nvim": { "branch": "master", "commit": "02736cf359a3235c6d7d601a2f6bdc909e557513" }, "eyeliner.nvim": { "branch": "main", "commit": "8f197eb30cecdf4c2cc9988a5eecc6bc34c0c7d6" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, diff --git a/private_dot_config/private_user-dirs.dirs b/private_dot_config/private_user-dirs.dirs index 6c35fc2..8e23326 100644 --- a/private_dot_config/private_user-dirs.dirs +++ b/private_dot_config/private_user-dirs.dirs @@ -5,8 +5,8 @@ # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. # -XDG_DESKTOP_DIR="$HOME/Desktop" -XDG_DOWNLOAD_DIR="$HOME/Download" +XDG_DESKTOP_DIR="$HOME/" +XDG_DOWNLOAD_DIR="$HOME/" XDG_TEMPLATES_DIR="$HOME/dcim/templates" XDG_PUBLICSHARE_DIR="$HOME/dcim/public" XDG_DOCUMENTS_DIR="$HOME/dcim/documents" diff --git a/private_dot_config/systemd/user/mako-dnd-off.service b/private_dot_config/systemd/user/mako-dnd-off.service index 2ba2409..6c067a2 100644 --- a/private_dot_config/systemd/user/mako-dnd-off.service +++ b/private_dot_config/systemd/user/mako-dnd-off.service @@ -4,3 +4,4 @@ Description=Enable Mako do-not-disturb [Service] Type=oneshot ExecStart=/usr/bin/makoctl mode -r do-not-disturb +ExecStartPost=notify-send "dnd disabled" "club time over" diff --git a/private_dot_config/systemd/user/mako-dnd-on.service b/private_dot_config/systemd/user/mako-dnd-on.service index c4d9053..b83b179 100644 --- a/private_dot_config/systemd/user/mako-dnd-on.service +++ b/private_dot_config/systemd/user/mako-dnd-on.service @@ -4,3 +4,4 @@ Description=Enable Mako do-not-disturb [Service] Type=oneshot ExecStart=/usr/bin/makoctl mode -a do-not-disturb +ExecStartPost=notify-send "dnd enabled" "club time started" diff --git a/private_dot_local/bin/executable_low-battery-warn b/private_dot_local/bin/executable_low-battery-warn index 9a896a4..8a28780 100644 --- a/private_dot_local/bin/executable_low-battery-warn +++ b/private_dot_local/bin/executable_low-battery-warn @@ -1,7 +1,7 @@ #!/usr/bin/env bash -THRESHOLD=10 -EXPIRY_MS=2*60*1000 # 2 minutes +THRESHOLD=80 +EXPIRY_MS=120000 # 2 minutes # Find the battery device (first one found) BATTERY=$(upower -e | grep battery | head -n1)