5 files changed,
21 insertions(+),
17 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-09-07 13:48:54 +0300
Authored at:
2026-09-06 20:49:09 +0300
Parent:
daa4972
M
config/fish/functions/prompt_vcs.fish
··· 2 2 set -l dir $PWD 3 3 set -l depth 0 4 4 5 - while test "$dir" != / # -a $depth -lt 20 5 + while test "$dir" != / -a $depth -lt 20 6 6 if test -d "$dir/.jj" 7 7 _prompt_vcs_jj 8 8 return ··· 15 15 end 16 16 17 17 function _prompt_vcs_seg -a label 18 - printf '%s%s%s' (set_color normal) (set_color blue) $label (set_color normal) (set_color normal) 18 + printf '%s%s%s' (set_color blue) $label (set_color normal) 19 19 end 20 20 21 21 function _prompt_vcs_jj 22 22 command -sq jj; or return 23 23 set -l head (jj log --no-graph -r @ -T 'change_id.shortest()' 2>/dev/null) 24 - test -n "$head"; and _prompt_vcs_seg "jj: $head" 24 + test -n "$head"; and printf '%s%s%s%s' (set_color normal) (set_color white) 'jj: ' (set_color blue) $head (set_color normal) 25 25 end 26 26 27 27 function _prompt_vcs_git -a root ··· 36 36 read -l head < "$head_file" 37 37 38 38 set -l m (string match -r '^ref: refs/heads/(.*)' -- $head) 39 - if test -n "$m[2]" 40 - _prompt_vcs_seg $m[2] 41 - else 42 - _prompt_vcs_seg (string sub -l 7 -- $head) 43 - end 39 + _prompt_vcs_seg (test -n "$m[2]"; and echo $m[2]; or string sub -l 7 -- $head) 44 40 end
M
config/niri/config.kdl
··· 136 136 match app-id="Code" 137 137 match app-id="Zed" 138 138 match app-id="discord" 139 + match app-id="vesktop" 139 140 open-maximized true 140 141 } 141 142 ··· 182 183 Mod+Shift+w { spawn "helium-browser"; } 183 184 184 185 // func keys {{{ 185 - XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; } 186 - XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; } 187 - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } 188 - XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } 189 - XF86AudioNext { spawn "playerctl" "next"; } 190 - XF86AudioPlay { spawn "playerctl" "play-pause"; } 191 - XF86AudioPrev { spawn "playerctl" "previous"; } 186 + XF86AudioRaiseVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-up"; } 187 + XF86AudioLowerVolume allow-when-locked=true { spawn "noctalia" "msg" "volume-down"; } 188 + XF86AudioMute allow-when-locked=true { spawn "noctalia" "msg" "volume-mute"; } 189 + XF86AudioMicMute allow-when-locked=true { spawn "noctalia" "msg" "mic-mute"; } 190 + XF86AudioNext { spawn "noctalia" "msg" "media" "next"; } 191 + XF86AudioPlay { spawn "noctalia" "msg" "media" "toggle"; } 192 + XF86AudioPrev { spawn "noctalia" "msg" "media" "previous"; } 192 193 // brighthness 193 - XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; } 194 - XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "+5%"; } 194 + XF86MonBrightnessDown allow-when-locked=true { spawn "noctalia" "msg" "brightness-down"; } 195 + XF86MonBrightnessUp allow-when-locked=true { spawn "noctalia" "msg" "brightness-up"; } 195 196 // screen shots 196 197 Print { screenshot; } 197 198 Alt+Print { screenshot-window; }
M
config/nvim/plugin/snacks.lua
··· 7 7 Config.map("n", "<leader>b", wrap("picker", "buffers")) 8 8 Config.map("n", "<leader>d", wrap("picker", "diagnostics")) 9 9 Config.map("n", "<leader>f", wrap("picker", "smart")) 10 +Config.map("n", "<leader>sd", wrap("picker", "git_diff")) 10 11 Config.map("n", "<leader>sg", wrap("picker", "grep", { args = { "-i" } })) 11 12 Config.map("n", "<leader>sh", wrap("picker", "help")) 12 13 Config.map("n", "<leader>sr", wrap("picker", "recent"))