From 2681099a1af7bbf1421dbad3e80ede1e7a5c4e61 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 11 Aug 2024 12:24:11 +0100 Subject: misc --- .aliases.bashrc | 7 +++++++ .bashrc | 16 +++++++++++++++- .config/foot/foot.ini | 1 + .config/kak/kakrc | 22 ++++++++++++++-------- .config/sway/config | 2 +- .snail.bashrc | 6 ++++++ .ssh/config | 4 ++-- bin/status.sh | 5 +++-- 8 files changed, 49 insertions(+), 14 deletions(-) diff --git a/.aliases.bashrc b/.aliases.bashrc index 3b59573..1184f9c 100644 --- a/.aliases.bashrc +++ b/.aliases.bashrc @@ -25,3 +25,10 @@ alias mp='mpv --vid=no --audio-pitch-correction=no' alias lh='locate "/home/rebecca/*"' alias lih='locate -i "/home/rebecca/*"' + +alias enjerv="_enjerv; cd /home/rebecca/jerv/files" + +gb () { grep "$1" ~/.bash_history; } +alias k='rlwrap ~/src/k/k ~/src/k/repl.k' + +gw () { grep "$@" /usr/share/dict/words; } diff --git a/.bashrc b/.bashrc index 245b45e..59beecc 100644 --- a/.bashrc +++ b/.bashrc @@ -5,7 +5,19 @@ # prompt PROMPT_DIRTRIM=0 -PS1='\[\e[90m\][\u@\h \W]\$\[\e[0m\] ' + +prompt_color() { + case "$1" in + snail) c=8 ;; + ubq323.website) c=92 ;; + joe) c=125 ;; + woman) c=136 ;; + *) c=72 ;; + esac + + PS1='\[\e[38;5;'"$c"'m\][\u@\h \W]\$\[\e[0m\] ' +} +prompt_color "$(uname -n)" # history shopt -s histappend @@ -43,6 +55,7 @@ export LUA_CPATH_5_3="$HOME/.local/lib/lua/5.3/?.so;;" export LUA_CPATH_5_1="$HOME/.local/lib/lua/5.1/?.so;;" export MANPATH="$HOME/.local/share/man:" + add_path () { case ":$PATH:" in *:"$1":*) @@ -55,6 +68,7 @@ add_path () { add_path ~/.local/bin add_path ~/.luarocks/bin add_path ~/bin +add_path ~/perl5/bin lb=~/."$(uname -n)".bashrc [ -f "$lb" ] && . "$lb" diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 5fd49c8..569063d 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -10,6 +10,7 @@ #font=Iosevka Fixed:size=8 font=CommitMono:size=14 +# font=APL333:size=13 # font=monospace:size=8 # font-bold= # font-italic= diff --git a/.config/kak/kakrc b/.config/kak/kakrc index ff90671..732833a 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -6,14 +6,6 @@ set -add global ui_options terminal_status_on_top=true set global indentwidth 0 set global tabstop 4 -# hook global WinSetOption filetype=python %{ -# set window indentwidth 4 -# hook -once -always window WinSetOption filetype=.* %{ -# set window indentwidth 0 -# } -# } - - map global user ':comment-line' -docstring 'comment line' # map global user 'wl-copy' -docstring 'wl-copy' add-highlighter global/longline column 70 ,rgb:333333 @@ -28,3 +20,17 @@ evaluate-commands %sh{ alias global Wq write-quit alias global W write + + +# eval %sh{kak-lsp --kakoune -s $kak_session} # Not needed if you load it with plug.kak. +# hook global WinSetOption filetype=(c) %{ +# lsp-enable-window +# } +# map global user l %{:enter-user-mode lsp} -docstring "LSP mode" +# map global insert ':try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks tab> }' -docstring 'Select next snippet placeholder' +# map global object a 'lsp-object' -docstring 'LSP any symbol' +# map global object 'lsp-object' -docstring 'LSP any symbol' +# map global object f 'lsp-object Function Method' -docstring 'LSP function or method' +# map global object t 'lsp-object Class Interface Struct' -docstring 'LSP class interface or struct' +# map global object d 'lsp-diagnostic-object --include-warnings' -docstring 'LSP errors and warnings' +# map global object D 'lsp-diagnostic-object' -docstring 'LSP errors' diff --git a/.config/sway/config b/.config/sway/config index ab009e7..b07a1c9 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -34,7 +34,7 @@ output HDMI_A-1 { exec pipewire exec wireplumber exec pipewire-pulse -exec wlsunset -T 6500 -t 3200 -L -2 -l 53 +exec wlsunset -L -2 -l 53 bindsym $mod+Return exec exec $term bindsym $mod+Shift+q kill diff --git a/.snail.bashrc b/.snail.bashrc index 0b367d6..7e8a9ae 100644 --- a/.snail.bashrc +++ b/.snail.bashrc @@ -28,3 +28,9 @@ gopr() { . ~/bin/rws gowork +enshed () { + shed + workin . +} + +eval `luarocks path` diff --git a/.ssh/config b/.ssh/config index f0e345a..83bc6d6 100644 --- a/.ssh/config +++ b/.ssh/config @@ -11,13 +11,13 @@ Host gnomr Port 2222 -Host re +Host raven HostName mondecitronne.com User ubq323 IdentityFile ~/.ssh/id_rsa Port 7822 -Host re2 +Host raven2 HostName alt.mondecitronne.com User ubq323 IdentityFile ~/.ssh/id_rsa diff --git a/bin/status.sh b/bin/status.sh index a618f5b..7b7f24f 100755 --- a/bin/status.sh +++ b/bin/status.sh @@ -41,9 +41,10 @@ while true; do color="#ffff00" fi fi - block_color "$bat_status $bat_level%" "$color" + block_color "bat $bat_level%" "$color" - date="$(date +'%G-W%V-%u %a %Y-%m-%d %H:%M:%S')" + # date="$(date +'%G-W%V-%u %a %Y-%m-%d %H:%M:%S')" + date="$(date +'%a %Y-%m-%d (W%V) %H:%M')" block_basic "$date" -- cgit v1.2.3