Compare commits

..

30 Commits

Author SHA1 Message Date
977e27cdf8 vis: use <vis-prompt-show> instead of colon in key binding 2025-09-27 10:17:36 +02:00
e8bc08f0b2 vis: use lf instead of yazi, shorter keys for lf and lsp commands 2025-09-27 09:45:54 +02:00
4d979f2600 vis: add command fzf-files, use it in shell alias vf 2025-09-27 08:39:54 +02:00
a7c7862815 awesome: no gap and border on maximized windows 2025-09-27 08:03:47 +02:00
e6cb4df579 vis: update theme on C-l but only if file changed and theme changed dark<->light 2025-09-26 23:11:21 +02:00
1449ff5d5c vis: change light background (also for st) and embedded background 2025-09-26 10:47:16 +02:00
35046d1269 vis: fzf.sh allow multi select (puts to messages), skip register value if default register 2025-09-26 10:47:16 +02:00
26cbc9b667 vis: format go files on write 2025-09-26 10:47:16 +02:00
967e9750d9 vis: improve opening make-like file with pos, improve close prev/next window 2025-09-26 10:47:16 +02:00
0949fcfb49 vis: add go_ext grammar with embedded sql with go templating 2025-09-26 10:15:07 +02:00
28595bbd31 vis: fix shell escape and update lazyjj key 2025-09-24 23:55:50 +02:00
b1f3a79744 tmux/nvim: remove switch pane/window integration 2025-09-24 23:54:58 +02:00
1e7c5902ea vis: templ: add (implement) templ lexer 2025-09-24 23:46:47 +02:00
fddce86eca vis: implement fast jump 2025-09-22 21:38:26 +02:00
f5a0ee0dc9 lupan-set-theme: toggle st theme (note: needs st patched to handle USR1) 2025-09-21 19:35:11 +02:00
8fded47ae8 shell: improve tmux and edit aliases 2025-09-20 12:23:46 +02:00
b11ccf5b82 lazygit: new, vis as editor and use nerd fonts 2025-09-20 12:23:46 +02:00
b72f3935d5 xsession: move awesome to top 2025-09-20 12:23:46 +02:00
d0bc15f7a7 vis: change status bar in dark theme and background in light one 2025-09-20 12:23:46 +02:00
e213b465b3 tmux: change terminal for vis compat, pane name on title, more vi like keys in copy mode 2025-09-20 10:59:38 +02:00
c613624f39 awesome: better toggle maximize, add keys to focus nth window on active tag 2025-09-20 10:59:38 +02:00
d4f4c1ad1a awesome: new themes, use st and clock without date 2025-09-20 10:59:38 +02:00
94fc8c036c vis: fzf.sh: add key to select alternative directory, fix switching between search and find 2025-09-19 00:14:10 +02:00
84d26c68a5 vis: add script fzf.sh and use it with just two keys
fzf.sh is a wrapper around fzf with mode for fd, rg, git and jj which
allow to switch between them with keys
2025-09-18 09:14:44 +02:00
d03dda4979 vis: set dark or light theme and start and also add key for this action 2025-09-15 23:04:19 +02:00
5464d111d0 vis: add keys for shell and themes, change current dir keys 2025-09-14 10:13:43 +02:00
bd15a7b443 vis: add lupan-dark and lupan-light themes, based on default with my selection of colors 2025-09-14 10:13:43 +02:00
2024651e33 xsession: add st-abduco-tabbed; dk: change term to st and add key for st-abduco-tabbed 2025-09-12 21:32:36 +02:00
ff66a92104 dk: add key for theme toggle 2025-09-10 10:38:08 +02:00
7fef9a8760 vis: global marks, do not reopen already opened file, fzf search current file 2025-09-10 10:36:54 +02:00
7 changed files with 22 additions and 53 deletions

View File

@@ -16,7 +16,7 @@ theme.bg_minimize = "#454f54" -- hsl(200 10% 30%)
theme.bg_systray = theme.bg_normal theme.bg_systray = theme.bg_normal
theme.tasklist_bg_focus = "#1c3b4a" -- hsl(200 45% 20%) theme.tasklist_bg_focus = "#1c3b4a" -- hsl(200 45% 20%)
theme.fg_normal = "#8f9ca3" -- hsl(200 10% 60%) theme.fg_normal = "#73848c" -- hsl(200 10% 50%)
theme.fg_focus = "#abb5ba" -- hsl(200 10% 70%) theme.fg_focus = "#abb5ba" -- hsl(200 10% 70%)
theme.fg_urgent = theme.bg_focus theme.fg_urgent = theme.bg_focus
theme.fg_minimize = theme.fg_normal theme.fg_minimize = theme.fg_normal

View File

@@ -16,7 +16,7 @@ theme.bg_minimize = "#8596ad" -- hsl(214 20% 60%)
theme.bg_systray = theme.bg_normal theme.bg_systray = theme.bg_normal
theme.tasklist_bg_focus = "#a6c7f2" -- hsl(214 75% 80%) theme.tasklist_bg_focus = "#a6c7f2" -- hsl(214 75% 80%)
theme.fg_normal = "#8f9ca3" -- hsl(200 10% 60%) theme.fg_normal = "#a9bcd6" -- hsl(214 35% 75%)
theme.fg_focus = "#454b54" -- hsl(214 10% 30%) theme.fg_focus = "#454b54" -- hsl(214 10% 30%)
theme.fg_urgent = "#70675c" -- hsl(34 10% 40%) theme.fg_urgent = "#70675c" -- hsl(34 10% 40%)
theme.fg_minimize = "#70675c" -- hsl(34 10% 40%) theme.fg_minimize = "#70675c" -- hsl(34 10% 40%)

View File

@@ -16,17 +16,7 @@ tn() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
tmux new tmux new
else else
tmux new -A -s "$@" tmux new -s "$@"
fi
}
tni() {
DIR=$(zoxide query -l | vis-menu -p 'Dir:' -l 10)
if [ -n "$DIR" ]; then
NAME=$(echo | vis-menu -p 'Session name:' $(basename $DIR))
if [ -n "$DIR" ]; then
tmux new -A -s "$NAME" -c "$DIR"
fi
fi fi
} }
@@ -38,13 +28,6 @@ ta() {
fi fi
} }
tai() {
NAME=$(tmux ls | vis-menu -p 'Session:' -l 10 | cut -d: -f1)
if [ -n "$NAME" ]; then
tmux attach -t "$NAME"
fi
}
vf() { vf() {
vis "+fzf-files auto-files '$1'" vis "+fzf-files auto-files '$1'"
} }

View File

@@ -35,7 +35,5 @@ if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then
exec river exec river
elif which /usr/bin/sx > /dev/null; then elif which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession exec /usr/bin/sx ~/.xsession
elif which /usr/bin/startx > /dev/null; then
exec /usr/bin/startx
fi fi
fi fi

View File

@@ -0,0 +1,2 @@
/home/lupan/dotfiles/Makefile:23:22: (PREFIX): make -C dwm install PREFIX="${HOME}/.local"
/home/lupan/dotfiles/Makefile:41:15: (clock): install-lupan-clock:

View File

@@ -118,7 +118,7 @@ end)
local function search(cmd, action) local function search(cmd, action)
if action == nil then if action == nil then
action = function(out) action = function(out)
if (out:find('\n') or #out) == #out then if (out:find('\n') or #s) == #s then
open_file_pos(out, 'e') open_file_pos(out, 'e')
else else
vis:message(out) vis:message(out)
@@ -274,8 +274,6 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, ' s', '<vis-prompt-show>fzf-files auto-search<Enter>', 'fzf: search') vis:map(vis.modes.NORMAL, ' s', '<vis-prompt-show>fzf-files auto-search<Enter>', 'fzf: search')
vis:map(vis.modes.NORMAL, ' f', '<vis-prompt-show>fzf-files auto-files<Enter>', 'fzf: files') vis:map(vis.modes.NORMAL, ' f', '<vis-prompt-show>fzf-files auto-files<Enter>', 'fzf: files')
vis:map(vis.modes.NORMAL, ' S', '<vis-prompt-show>fzf-files search<Enter>', 'fzf: search with rg')
vis:map(vis.modes.NORMAL, ' F', '<vis-prompt-show>fzf-files files<Enter>', 'fzf: files with fd')
vis:map(vis.modes.NORMAL, ' /', function() vis:map(vis.modes.NORMAL, ' /', function()
search(fzf_reload(ripgrep .. ' --with-filename {q} ' .. escape_and_quoted(vis.win.file.path))) search(fzf_reload(ripgrep .. ' --with-filename {q} ' .. escape_and_quoted(vis.win.file.path)))
@@ -343,23 +341,16 @@ vis.events.subscribe(vis.events.INIT, function()
end end
end, 'lf file manager in current file directory') end, 'lf file manager in current file directory')
vis:map(vis.modes.NORMAL, ' m', add_global_mark, 'global marks: add') vis:map(vis.modes.NORMAL, ' ma', add_global_mark, 'global marks: add')
vis:map(vis.modes.NORMAL, ' M', function() vis:map(vis.modes.NORMAL, ' mj', function()
search('cat ~/.config/vis/global-marks.txt | fzf --tac') search('cat ~/.config/vis/global-marks.txt | fzf --tac')
end, 'global marks: jump') end, 'global marks: jump')
vis:map(vis.modes.NORMAL, ' em', function() vis:map(vis.modes.NORMAL, ' me', function()
vis:command('o ~/.config/vis/global-marks.txt') vis:command('o ~/.config/vis/global-marks.txt')
end, 'global marks: edit') end, 'global marks: edit')
vis:map(vis.modes.NORMAL, ' n', function()
vis:command('o ~/notes/notes.md')
end, 'add note')
vis:map(vis.modes.NORMAL, ' N', function()
search(fzf_reload(ripgrep .. ' --with-filename {q} ~/notes'))
end, 'search notes')
vis:map(vis.modes.NORMAL, ' td', function() vis:map(vis.modes.NORMAL, ' td', function()
vis:command('set theme lupan-dark') vis:command('set theme lupan-dark')

View File

@@ -2,9 +2,8 @@
THEME="$1" THEME="$1"
XSET=$(readlink -e ~/.config/xsettingsd/xsettingsd.conf)
if [ "$THEME" = "toggle" ]; then if [ "$THEME" = "toggle" ]; then
if grep Materia-dark "$XSET" > /dev/null; then if grep Materia-dark ~/.config/xsettingsd/xsettingsd.conf > /dev/null; then
THEME=light THEME=light
else else
THEME=dark THEME=dark
@@ -20,25 +19,22 @@ else
exit 1 exit 1
fi fi
XRES=$(readlink -e ~/.Xresources) if [ -f ~/.Xresources ]; then
if [ -n "$XRES" ]; then
if [ "$THEME" = dark ]; then if [ "$THEME" = dark ]; then
sed -i 's/^#undef THEME_DARK/#define THEME_DARK/' "$XRES" sed -i 's/^#undef THEME_DARK/#define THEME_DARK/' ~/.Xresources
elif [ "$THEME" = light ]; then elif [ "$THEME" = light ]; then
sed -i 's/^#define THEME_DARK/#undef THEME_DARK/' "$XRES" sed -i 's/^#define THEME_DARK/#undef THEME_DARK/' ~/.Xresources
fi fi
xrdb -merge "$XRES" xrdb -merge ~/.Xresources
killall -USR1 st killall -USR1 st
fi fi
# Alacritty # Alacritty
AYML=$(readlink -e ~/.config/alacritty/alacritty.yml) if [ -f ~/.config/alacritty/alacritty.yml ]; then
if [ -n "$AYML" ]; then sed -i "s/^colors: [*].*/colors: *$THEME/" ~/.config/alacritty/alacritty.yml
sed -i "s/^colors: [*].*/colors: *$THEME/" "$AYML"
fi fi
ATOML=$(readlink -e ~/.config/alacritty/alacritty.toml) if [ -f ~/.config/alacritty/alacritty.toml ]; then
if [ -f "$ATOML" ]; then sed -i "s#^import =.*#import = [\"~/.config/alacritty/$THEME.toml\"]#" ~/.config/alacritty/alacritty.toml
sed -i "s#^import =.*#import = [\"~/.config/alacritty/$THEME.toml\"]#" "$ATOML"
fi fi
if [ "$THEME" = dark ]; then if [ "$THEME" = dark ]; then
@@ -48,14 +44,13 @@ elif [ "$THEME" = light ]; then
fi fi
# GTK # GTK
if [ -n "$XSET" ]; then if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" "$XSET" sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" ~/.config/xsettingsd/xsettingsd.conf
pkill -HUP -x xsettingsd pkill -HUP -x xsettingsd
gsettings set org.gnome.desktop.interface gtk-theme "${GTK_THEME}" gsettings set org.gnome.desktop.interface gtk-theme "${GTK_THEME}"
fi fi
# waybar # waybar
WCSS=$(readlink -e ~/.config/waybar/style.css) if [ -f ~/.config/waybar/style.css ]; then
if [ -f "$WCSS" ]; then sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" ~/.config/waybar/style.css
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" "$WCSS"
fi fi