summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-08-11 12:24:11 +0100
committerubq323 <ubq323@ubq323.website>2024-08-11 12:24:11 +0100
commit2681099a1af7bbf1421dbad3e80ede1e7a5c4e61 (patch)
tree3163facc8338ea92955c754d17838ae8e55bf1ad
parent7bd1c144e0eac89812ce3ada28245d09ba406104 (diff)
misc
-rw-r--r--.aliases.bashrc7
-rw-r--r--.bashrc16
-rw-r--r--.config/foot/foot.ini1
-rw-r--r--.config/kak/kakrc22
-rw-r--r--.config/sway/config2
-rw-r--r--.snail.bashrc6
-rw-r--r--.ssh/config4
-rwxr-xr-xbin/status.sh5
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=<bold variant of regular font>
# font-italic=<italic variant of regular font>
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 <c> ':comment-line<ret>' -docstring 'comment line'
# map global user <x> '<a-|>wl-copy<ret>' -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<ret>} -docstring "LSP mode"
+# map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
+# map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
+# map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
+# map global object f '<a-semicolon>lsp-object Function Method<ret>' -docstring 'LSP function or method'
+# map global object t '<a-semicolon>lsp-object Class Interface Struct<ret>' -docstring 'LSP class interface or struct'
+# map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors and warnings'
+# map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -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"