diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/bash/inputrc | 1 | ||||
| -rw-r--r-- | .config/bash/prompt | 12 | ||||
| -rw-r--r-- | .config/foot/foot.ini | 49 | ||||
| -rw-r--r-- | .config/kglobalshortcutsrc | 12 | ||||
| -rw-r--r-- | .config/kwinrulesrc | 3 | ||||
| -rw-r--r-- | .config/mimeapps.list | 2 | ||||
| -rw-r--r-- | .config/nvim/plugin/50-highlight.lua | 3 | ||||
| -rw-r--r-- | .config/tmux/tmux.conf | 2 |
8 files changed, 32 insertions, 52 deletions
diff --git a/.config/bash/inputrc b/.config/bash/inputrc index ac2df3b..e967cc3 100644 --- a/.config/bash/inputrc +++ b/.config/bash/inputrc @@ -83,6 +83,7 @@ $include ~/.config/bash/vi.inputrc # Macros "\ee": "ranger\r" # Alt+e ranger\n "\ew": "| wl-copy\r" # Alt+w | wl-copy\n +"\el": "| less\r" # Alt+l | less\n # vi-command ___________________________________________________________________ set keymap vi-command diff --git a/.config/bash/prompt b/.config/bash/prompt index 84cf84d..428fac7 100644 --- a/.config/bash/prompt +++ b/.config/bash/prompt @@ -35,7 +35,17 @@ _prompt_git() { printf '%s%s ' "$branch" "${diverge:+ $diverge}" } +_prompt_status() { + ((_LAST_STATUS)) || return + printf '%s' "${_PROMPT_COLORS[bold_red]}" + printf '%s%s' $'' "$_LAST_STATUS" + printf '%s' "${_PROMPT_COLORS[reset]}" +} + +# Save the exit status before other prompt function clobber it +PROMPT_COMMAND='_LAST_STATUS=$?' + # The quoted parts are expanded on each prompt, the unquoted parts immediately -PS1=${_PROMPT_COLORS[bold_green]}'[\u@\h'${_PROMPT_COLORS[bold_white]}' \W $(_prompt_git)$(_prompt_shlvl)$(_prompt_jobs)]\$'${_PROMPT_COLORS[reset]}' ' +PS1=${_PROMPT_COLORS[bold_green]}'[\u@\h'${_PROMPT_COLORS[bold_white]}' \W $(_prompt_git)$(_prompt_shlvl)$(_prompt_jobs)$(_prompt_status)]\$'${_PROMPT_COLORS[reset]}' ' # vim: ft=bash diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 1af1160..43da9e4 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -4,7 +4,6 @@ # Use `foot --check-config` to verify the configuration [main] -shell=/usr/bin/tmux new-session -A -s dev term=foot login-shell=no app-id=foot @@ -15,7 +14,6 @@ font=Hack Nerd Font Mono:style=Regular:size=9 initial-color-theme=dark initial-window-size-chars=130x40 initial-window-mode=windowed -include=~/.config/foot/local.ini [scrollback] lines=1000 @@ -28,43 +26,12 @@ fullscreen=F11 color-theme-toggle=F10 clipboard-paste=Alt+v -# Tokyo Night — https://github.com/folke/tokyonight.nvim -[colors-dark] -background=1a1b26 -foreground=c0caf5 -regular0=15161e -regular1=f7768e -regular2=9ece6a -regular3=e0af68 -regular4=7aa2f7 -regular5=bb9af7 -regular6=7dcfff -regular7=a9b1d6 -bright0=414868 -bright1=f7768e -bright2=9ece6a -bright3=e0af68 -bright4=7aa2f7 -bright5=bb9af7 -bright6=7dcfff -bright7=c0caf5 +# Tokyo Night — shipped themes (see /usr/share/foot/themes) +[main] +include=/usr/share/foot/themes/tokyonight-night +include=/usr/share/foot/themes/tokyonight-light +# tokyonight-light sets initial-color-theme=light; restore our dark default +initial-color-theme=dark -[colors-light] -background=e1e2e7 -foreground=3760bf -regular0=b4b5b9 -regular1=f52a65 -regular2=587539 -regular3=8c6c3e -regular4=2e7de9 -regular5=9854f1 -regular6=007197 -regular7=6172b0 -bright0=a1a6c5 -bright1=f52a65 -bright2=587539 -bright3=8c6c3e -bright4=2e7de9 -bright5=9854f1 -bright6=007197 -bright7=3760bf +# Keep this last so that it overrides previous settings +include=~/.config/foot/local.ini diff --git a/.config/kglobalshortcutsrc b/.config/kglobalshortcutsrc index f4d381e..d11ff79 100644 --- a/.config/kglobalshortcutsrc +++ b/.config/kglobalshortcutsrc @@ -271,10 +271,7 @@ toggle do not disturb=none,,Toggle do not disturb [services][firefox.desktop] _launch=Meta+Shift+B -[services][foot.desktop] -_launch=Meta+Shift+T - -[services][net.local.notes.desktop] +[services][notes.desktop] _launch=Meta+Shift+N [services][org.kde.dolphin.desktop] @@ -289,10 +286,6 @@ _launch=Search\tAlt+F2\tMeta [services][org.kde.plasma.emojier.desktop] _launch=Meta+X\tMeta+Ctrl+Alt+Shift+Space\tMeta+. -[services][org.kde.spectacle.desktop] -CurrentMonitorScreenShot= -OpenWithoutScreenshot= - [services][org.keepassxc.KeePassXC.desktop] _launch=Meta+K @@ -301,3 +294,6 @@ _launch=Meta+Shift+M [services][passmenu.desktop] _launch=Meta+Shift+K + +[services][tmux.desktop] +_launch=Meta+Shift+T diff --git a/.config/kwinrulesrc b/.config/kwinrulesrc index 41b8eb9..7bff81b 100644 --- a/.config/kwinrulesrc +++ b/.config/kwinrulesrc @@ -7,4 +7,5 @@ Description=Application settings for foot noborder=true noborderrule=2 wmclass=foot -wmclassmatch=1 +wmclasscomplete=true +wmclassmatch=2 diff --git a/.config/mimeapps.list b/.config/mimeapps.list index df7b236..3b44883 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -1,4 +1,4 @@ -; See https://wiki.archlinux.org/title/XDG_MIME_Applications#mimeapps.list +# See https://wiki.archlinux.org/title/XDG_MIME_Applications#mimeapps.list [Added Associations] application/json=nvim.desktop;firefox.desktop;micro.desktop;vim.desktop;okularApplication_txt.desktop; diff --git a/.config/nvim/plugin/50-highlight.lua b/.config/nvim/plugin/50-highlight.lua index 1daba82..bb08f1d 100644 --- a/.config/nvim/plugin/50-highlight.lua +++ b/.config/nvim/plugin/50-highlight.lua @@ -31,6 +31,9 @@ local function adjust_solarized_highlights() vim.api.nvim_set_hl(0, "TabLineSel", { fg = colors.yellow, bold = true, update = true }) -- Todo hl group vim.api.nvim_set_hl(0, "Todo", { bg = "Yellow", fg = "Black", bold = true }) + -- Fold lines being the same color as the cursor line (default) make unfocused windows unreadable + -- Their background is set to blend in, the folds are visible enough with their dotted lines + vim.api.nvim_set_hl(0, "Folded", { bg = normal_bg, underline = true, update = true }) end -- Adjust highlights to fit my personal tastes. diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 3585551..7e3dcc3 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -10,6 +10,8 @@ set-option -g status-keys vi # All mouse keys will be captured, use Shift+click to pass through set-option -g mouse on +set-option -g set-titles on +set-option -g set-titles-string "#S" set-option -g status-left-length 27 set-option -g status-left " #{p19:#{=/18/…:session_name}} ║" set-option -g status-left-style "reverse,bold" |
