Compare commits

...

7 Commits

Author SHA1 Message Date
3f62265560
xonotic: rebind weapons 2024-07-27 15:25:27 -04:00
b64d3cbe18
inputrc: added
vim mode for regular python repl 👍
2024-07-27 15:24:51 -04:00
085aa32678
[dwm] blue-ish color 2024-07-27 15:24:01 -04:00
74fa46bd60
mpvq: also allow links from argv 2024-07-27 15:23:31 -04:00
842951379a
clipedit.sh: use alacritty 2024-07-27 15:23:05 -04:00
93c2025d78
nvim: show invisible spaces/tabs 2024-07-27 15:22:39 -04:00
5b7adccb12
alacritty: more hints and visual bell animation 2024-07-27 15:20:33 -04:00
8 changed files with 60 additions and 12 deletions

View File

@ -5,8 +5,10 @@ opacity = 0.0
[font] [font]
normal = { family = "JetBrains Mono" } normal = { family = "JetBrains Mono" }
size = 10 size = 10
[colors] [colors]
[colors.primary]
background = "#000000"
[colors.normal] [colors.normal]
black = "#000000" black = "#000000"
red = "#949494" red = "#949494"
@ -30,5 +32,31 @@ white = "#eceff4"
[keyboard] [keyboard]
bindings = [ bindings = [
{ key = "Enter", mods = "Control|Shift", action = "CreateNewWindow" } { key = "Enter", mods = "Control|Shift", action = "CreateNewWindow" },
{ key = "l", mods = "Control|Shift", action = "ClearHistory" },
] ]
[bell]
animation = "EaseOutQuint"
duration = 150
color = "#000000"
# uRls
[[hints.enabled]]
action = "Copy"
hyperlinks = true
post_processing = true
persist = false
mouse.enabled = true
binding = { key = "R", mods = "Control|Shift" }
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩‘]+"
# git coMmits
[[hints.enabled]]
action = "Copy"
post_processing = true
persist = false
mouse.enabled = true
hyperlinks=true
binding = { key = "M", mods = "Control" }
regex = "[0-9a-f]{7,40}"

View File

@ -1,5 +1,8 @@
set tabstop=4 shiftwidth=4 noexpandtab ai nosmd ignorecase smartcase set tabstop=4 shiftwidth=4 noexpandtab ai nosmd ignorecase smartcase
" visible whitespace
set list listchars=tab:»\ ,trail:•,leadmultispace:\│\ \ \ ,extends:⇥,precedes:⇤
" Time neovim saves to swapfile in " Time neovim saves to swapfile in
" Also time neovim recognizes cursor inactivity " Also time neovim recognizes cursor inactivity
set updatetime=800 set updatetime=800

View File

@ -57,6 +57,8 @@ Group.link("@type.qualifier", groups["keyword.return"])
Group.new("NormalFloat", colors.noir_1, colors.noir_9, nil) Group.new("NormalFloat", colors.noir_1, colors.noir_9, nil)
Group.new("NonText", colors.noir_9, nil, nil)
-- swap undercurls and underlines -- swap undercurls and underlines
for _, v in ipairs({ "Error", "Info", "Hint", "Warn" }) do for _, v in ipairs({ "Error", "Info", "Hint", "Warn" }) do
local col_name = "diagnostic_" .. string.lower(v) local col_name = "diagnostic_" .. string.lower(v)

1
src/.inputrc Normal file
View File

@ -0,0 +1 @@
set editing-mode vi

View File

@ -3,8 +3,16 @@
TMPFILE="$(mktemp)" TMPFILE="$(mktemp)"
#xsel -b > "$TMPFILE" xsel -b > "$TMPFILE"
st -g 60x8+0+800 -c popup-bottom-center \
-e nvim -c "set binary noeol" -c "startinsert" "$TMPFILE" -c "highlight Normal ctermbg=016" newterm() {
cat "$TMPFILE" | xsel -ib alacritty msg create-window "$@" ||
rm "$TMPFILE" alacritty "$@"
}
newterm \
-o 'window.class = { instance = "popup-bottom-center", general="popup-bottom-center" }' \
-o 'window.opacity = 1.0' \
-o 'window.dimensions = { columns = 84, lines = 10 }' \
-o 'window.position = { x = 0, y = 1200 }' \
-e sh -c "xsel -b > '$TMPFILE'; nvim -c 'set binary noeol textwidth=80' '$TMPFILE' && cat '$TMPFILE' | xsel -ib && rm '$TMPFILE'"

View File

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
# Append link from clipboard to mpv playlist # Append link from clipboard/argument to mpv playlist
if [ -z "$2" ]; then
path="$(xsel -b)"
else
path="$2"
fi
path="$(xsel -b)"
echo "{ command: [ \"loadfile\", \"$path\", \"append-play\" ] }" | socat - $1 echo "{ command: [ \"loadfile\", \"$path\", \"append-play\" ] }" | socat - $1

View File

@ -35,8 +35,9 @@ bind 1 "weapon_group_1"
bind 2 "weapon_group_2" bind 2 "weapon_group_2"
// Machine gun // Machine gun
bind 3 "weapon_group_3" bind 3 "weapon_group_3"
bind 4 "reload"
// Hagar // Hagar
bind 4 "weapon_group_8" bind 5 "weapon_group_8"
// Vortex // Vortex
bind e "weapon_group_7" bind e "weapon_group_7"
// Electro // Electro
@ -44,7 +45,7 @@ bind f "weapon_group_5"
// Crylink // Crylink
bind q "weapon_group_6" bind q "weapon_group_6"
// Mortar // Mortar
bind MOUSE6 "weapon_group_4" bind r "weapon_group_4"
// Rocket launcher // Rocket launcher
bind MOUSE7 "weapon_group_9" bind MOUSE7 "weapon_group_9"

View File

@ -22,7 +22,7 @@ static const char dmenufont[] = "JetBrains Mono:size=15";
static const char col_gray1[] = "#000000"; static const char col_gray1[] = "#000000";
static const char col_gray2[] = "#202020"; static const char col_gray2[] = "#202020";
static const char col_gray3[] = "#505050"; static const char col_gray3[] = "#505050";
static const char col_gray4[] = "#bbbbbb"; static const char col_gray4[] = "#99aabb";
static const char col_gray5[] = "#eeeeee"; static const char col_gray5[] = "#eeeeee";
static const unsigned int baralpha = 0; static const unsigned int baralpha = 0;
static const unsigned int borderalpha = OPAQUE; static const unsigned int borderalpha = OPAQUE;