summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/browsers/home.html32
-rw-r--r--.config/catgirl/libera1
-rw-r--r--.config/fontconfig/fonts.conf36
-rw-r--r--.config/mutt/accounts/1-gmx_rbo.muttrc2
-rw-r--r--.config/mutt/accounts/2-gmx_shop.muttrc2
-rw-r--r--.config/mutt/accounts/3-gmail_br.muttrc2
-rw-r--r--.config/mutt/accounts/4-gmail_oon.muttrc2
-rw-r--r--.config/nvim/lua/lsp/ccls.lua30
-rw-r--r--.config/tremc/settings.cfg2
-rw-r--r--.config/x11/xresources2
-rw-r--r--.config/zsh/alias.zsh10
-rwxr-xr-x.local/bin/linkview2
12 files changed, 61 insertions, 62 deletions
diff --git a/.config/browsers/home.html b/.config/browsers/home.html
index 0fc8f66..9054a29 100644
--- a/.config/browsers/home.html
+++ b/.config/browsers/home.html
@@ -12,30 +12,6 @@ body {
color: #ebdbb2;
background-color: #1d2021;
}
-.topred {
- background-color: #cc241d;
- padding-bottom: 1em;
-}
-.topgreen {
- background-color: #98971a;
- padding-bottom: 1em;
-}
-.topyellow {
- background-color: #d79921;
- padding-bottom: 1em;
-}
-.topblue {
- background-color: #458588;
- padding-bottom: 1em;
-}
-.topmagenta {
- background-color: #b16286;
- padding-bottom: 1em;
-}
-.topcyan {
- background-color: #689d6a;
- padding-bottom: 1em;
-}
.page_title {
background-color: #282828;
margin-left: 40%;
@@ -81,7 +57,7 @@ body {
background-color: #282828;
border: 2px solid black;
width: 25%;
- height: 28em;
+ height: 100%;
margin: 0em .5em;
}
.bookmark_links {
@@ -142,12 +118,6 @@ body {
<meta charset="UTF-8">
</head>
<body>
- <div class="topred"></div>
- <div class="topgreen"></div>
- <div class="topyellow"></div>
- <div class="topblue"></div>
- <div class="topmagenta"></div>
- <div class="topcyan"></div>
<div class="page_title"><h1>hey joe</h1></div>
<div class="bookmarks_div">
<div class="bookmark_set" id="joetown">
diff --git a/.config/catgirl/libera b/.config/catgirl/libera
index 582b783..34e3dca 100644
--- a/.config/catgirl/libera
+++ b/.config/catgirl/libera
@@ -4,5 +4,4 @@ cert = libera.pem
sasl-external
join = #linux,#freebsd,#archlinux,##chat,#c,#embedded,#neovim,#perl
timestamp = %H:%M
-hash = 0,15
quiet
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf
index cfb114c..083bf77 100644
--- a/.config/fontconfig/fonts.conf
+++ b/.config/fontconfig/fonts.conf
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
- <alias>
- <family>serif</family>
- <prefer>
- <family>Terminess Nerd Font</family>
- </prefer>
- </alias>
- <alias>
- <family>sans-serif</family>
- <prefer>
- <family>Terminess Nerd Font</family>
- </prefer>
- </alias>
- <alias>
- <family>monospace</family>
- <prefer>
- <family>Terminess Nerd Font</family>
- </prefer>
- </alias>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Terminess Nerd Font</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Terminess Nerd Font</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Terminess Nerd Font</family>
+ </prefer>
+ </alias>
</fontconfig>
diff --git a/.config/mutt/accounts/1-gmx_rbo.muttrc b/.config/mutt/accounts/1-gmx_rbo.muttrc
index 7c8f018..c9c7596 100644
--- a/.config/mutt/accounts/1-gmx_rbo.muttrc
+++ b/.config/mutt/accounts/1-gmx_rbo.muttrc
@@ -36,7 +36,7 @@ set spoolfile = +INBOX
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
-set record = ""
+set record = +Sent
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
diff --git a/.config/mutt/accounts/2-gmx_shop.muttrc b/.config/mutt/accounts/2-gmx_shop.muttrc
index 7000213..bfda76c 100644
--- a/.config/mutt/accounts/2-gmx_shop.muttrc
+++ b/.config/mutt/accounts/2-gmx_shop.muttrc
@@ -35,7 +35,7 @@ set spoolfile = +INBOX
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
-set record = ""
+set record = +Sent
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
diff --git a/.config/mutt/accounts/3-gmail_br.muttrc b/.config/mutt/accounts/3-gmail_br.muttrc
index 137881b..d114173 100644
--- a/.config/mutt/accounts/3-gmail_br.muttrc
+++ b/.config/mutt/accounts/3-gmail_br.muttrc
@@ -36,7 +36,7 @@ set spoolfile = "+INBOX"
macro index,pager gs "<change-folder>=[Gmail]/Sent Mail<enter>" "go to sent"
macro index,pager Ms ";<save-message>=[Gmail]/Sent Mail<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=[Gmail]/Sent Mail<enter>" "copy mail to sent"
-set record = ""
+set record = "+[Gmail]/Sent Mail"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=[Gmail]/Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=[Gmail]/Drafts<enter>" "copy mail to drafts"
diff --git a/.config/mutt/accounts/4-gmail_oon.muttrc b/.config/mutt/accounts/4-gmail_oon.muttrc
index f1267a5..c69f27e 100644
--- a/.config/mutt/accounts/4-gmail_oon.muttrc
+++ b/.config/mutt/accounts/4-gmail_oon.muttrc
@@ -36,7 +36,7 @@ set spoolfile = +INBOX
macro index,pager gs "<change-folder>=[Gmail]/Sent Mail<enter>" "go to sent"
macro index,pager Ms ";<save-message>=[Gmail]/Sent Mail<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=[Gmail]/Sent Mail<enter>" "copy mail to sent"
-set record = ""
+set record = "+[Gmail]/Sent Mail"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=[Gmail]/Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=[Gmail]/Drafts<enter>" "copy mail to drafts"
diff --git a/.config/nvim/lua/lsp/ccls.lua b/.config/nvim/lua/lsp/ccls.lua
new file mode 100644
index 0000000..431d547
--- /dev/null
+++ b/.config/nvim/lua/lsp/ccls.lua
@@ -0,0 +1,30 @@
+local function switch_source_header(client, bufnr)
+ local method_name = 'textDocument/switchSourceHeader'
+ local params = vim.lsp.util.make_text_document_params(bufnr)
+ client:request(method_name, params, function(err, result)
+ if err then
+ error(tostring(err))
+ end
+ if not result then
+ vim.notify('corresponding file cannot be determined')
+ return
+ end
+ vim.cmd.edit(vim.uri_to_fname(result))
+ end, bufnr)
+end
+
+vim.lsp.config('ccls', {
+ cmd = { 'ccls' },
+ filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
+ root_markers = { 'compile_commands.json', '.ccls', '.git' },
+ offset_encoding = 'utf-32',
+ -- ccls does not support sending a null root directory
+ workspace_required = true,
+ on_attach = function(client, bufnr)
+ vim.api.nvim_buf_create_user_command(bufnr, 'LspCclsSwitchSourceHeader', function()
+ switch_source_header(client, bufnr)
+ end, { desc = 'Switch between source/header' })
+ end,
+})
+
+vim.lsp.enable('ccls')
diff --git a/.config/tremc/settings.cfg b/.config/tremc/settings.cfg
index 8a31948..8234a8a 100644
--- a/.config/tremc/settings.cfg
+++ b/.config/tremc/settings.cfg
@@ -1,5 +1,5 @@
[Connection]
-host = ceres
+host = 127.0.0.1
port = 9091
path = /transmission/rpc
username =
diff --git a/.config/x11/xresources b/.config/x11/xresources
index 355b977..a1ea2f5 100644
--- a/.config/x11/xresources
+++ b/.config/x11/xresources
@@ -1,4 +1,4 @@
-Xft.dpi: 96
+Xft.dpi: 120
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 59a6e7d..d86baab 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -17,6 +17,7 @@ tree() {
eza -T $@ | $PAGER
}
alias hff='cd ~/dev/go/hardflip'
+alias kk='cd ~/dev/c/kirc'
alias \
e='nvim' \
vim='nvim' \
@@ -56,7 +57,7 @@ alias \
ytdl='yt-dlp --add-metadata' \
ytdlist='yt-dlp -F' \
ytdl1080="yt-dlp --add-metadata -f '[height<=1080]'" \
- irc='catgirl' \
+ irc='TERM=st-16color catgirl' \
free='freecolor' \
n='nnn' \
gt='gpg-tui' \
@@ -99,10 +100,9 @@ bssh() {
ssh $user@$host -t -- $*
fi
}
-assh() {
- user='admin'
- host='bastion'
- ssh $user@$host -- --osh $*
+j() {
+ job=$(jobs -l | sed 's/ suspended //' | fzf --reverse --prompt='job > ') || return
+ [ -n "$job" ] && fg %$(awk '{print $1}' <<< "$job" | tr -d '[]')
}
upsrc() {
doas git -C /usr/src pull --ff-only
diff --git a/.local/bin/linkview b/.local/bin/linkview
index 097d8be..7cb1ba4 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -415,7 +415,7 @@ sub fzf_prompt
my $list;
$list = join("\n", @keys);
- $answer = `printf "$list\n" | $menu '$url >'`;
+ $answer = `printf "$list\n" | $menu '$url > '`;
chomp $answer;
return $answer;
}