1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 19:20:27 +01:00

98 Commits

Author SHA1 Message Date
c656dbbeb3 Support regular tmux 256 colour option 2026-01-27 14:31:32 +01:00
6c496fd2c0 stylua config for neovim config files 2026-01-26 17:07:07 +01:00
23c8c64f48 Lua file config 2026-01-26 17:02:08 +01:00
ec8317ddcd Explicit formatters; cleanup 2026-01-26 16:56:24 +01:00
ce732c7e75 Don't set options, those break layzvim apparently 2026-01-26 16:22:00 +01:00
8dd78f67ee Only open planning doc, and the new markdown version at that 2026-01-26 16:15:21 +01:00
fc926d42cb Cycle through useful checkbox states 2026-01-26 16:15:07 +01:00
19b4fcbc5f I'll use the cycle more anyway 2026-01-26 14:06:11 +01:00
cb0a57be0b Toggle markdown checkboxes, headings etc 2026-01-26 12:01:46 +01:00
75ab018b30 Automatic abbreviation expansion for some headings 2026-01-24 21:57:21 +01:00
6ff9e356c3 Detect when file was updated outside of neovim 2026-01-24 20:14:27 +01:00
443e7c3652 Abbreviation shortcuts for date, time, uuid 2026-01-24 20:14:12 +01:00
cf93d46371 Other bash/shell linter 2026-01-23 18:52:34 +01:00
d8740ddd85 Can I be more clear? 2026-01-22 13:51:58 +01:00
0ed9b0d077 More languages 2026-01-22 13:02:28 +01:00
57c4983148 Changed terminfo so italics etc work in nvim 2026-01-21 17:51:44 +01:00
da63f892c0 Removed 'todo' again, it's not handled by Treesitter 2026-01-21 17:44:04 +01:00
96d4cc6deb Use neovim if available 2026-01-21 14:40:13 +01:00
59f1dbec66 Ported todo file syntax highlighting from vim 2026-01-21 14:12:08 +01:00
e5b2f83f7b Better Markdown support 2026-01-21 12:15:28 +01:00
105d3273fb Treesitter has changed their API 2026-01-21 11:44:10 +01:00
292c44448f Fast finder, alternative for fzf/ripgrep 2026-01-21 11:12:06 +01:00
f9afaad121 Codeblock syntax highlighting 2026-01-21 11:11:34 +01:00
7c5962f7f3 bebop colorscheme with nice colours 2026-01-21 11:10:49 +01:00
99152ac85c Do not conceal quotes, code block openings etc 2026-01-21 11:10:31 +01:00
c3a8f16c53 If eza is installed, use it for pretty file/dir listings 2026-01-19 22:51:02 +01:00
624391f1cc Ignore Obsidian nvim plugin 2026-01-19 22:25:28 +01:00
7c2322d10a Added SUSE font, pretty geeky, nice UI font 2026-01-19 22:23:31 +01:00
8d58ebd8aa luarocks config/install 2026-01-19 11:50:27 +01:00
0ee41c2751 Simplified treesitter plugin to fix import errors 2026-01-19 11:50:00 +01:00
bd46317803 Moved settings to their 'correct lazyvim' places 2026-01-19 11:17:31 +01:00
935fedd711 Better formatting and comment 2026-01-18 22:22:07 +01:00
846398a1d3 Correctly load the colorscheme 2026-01-18 22:20:35 +01:00
d10cbc5336 Ignore lock files for LazyVim 2026-01-18 22:17:22 +01:00
264b8bdb31 Word 2026-01-18 22:15:43 +01:00
Michiel Scholten
165803b3f3 Merge pull request 'neovim' (#3) from neovim into master
Reviewed-on: https://codeberg.org/diginaut/dotfiles/pulls/3
2026-01-18 22:15:31 +01:00
21f8592198 Install neovim config dir 2026-01-18 19:42:57 +01:00
7e9ca8785f Load lazy plugins, don't fail on colorscheme 2026-01-17 22:19:06 +01:00
42a0af7cb3 Some tweaking 2026-01-17 15:32:45 +01:00
300b177d0d First attempt at my own neovim setup, with inspiration from jcorbin 2026-01-16 16:55:21 +01:00
9e943476ad Toggle tablet mode in KDE Plasma 2026-01-11 11:50:17 +01:00
f419adf243 2026! 2026-01-05 09:27:33 +01:00
09a7d645e6 Tell what venv has been enabled 2026-01-04 16:18:22 +01:00
c27a9e6ae3 If a VIRTUAL_ENV is already active, use that 2026-01-04 14:02:49 +01:00
cfd4a1d8e1 Less likely to conflict with another env var 2026-01-02 13:36:59 +01:00
569a58ed3c Use specific Python version if requested 2026-01-02 13:25:54 +01:00
ba6dbcd66c direnv notice 2025-12-30 22:22:15 +01:00
cffb3bf714 Merge branch 'master' of codeberg.org:diginaut/dotfiles 2025-12-30 22:19:50 +01:00
55d4f43141 Symlink the direnv configuration file 2025-12-30 22:15:44 +01:00
fa2ff5074c uv direnv support 2025-12-30 22:08:26 +01:00
b2324c0e9c Update README with repository migration notice
Added a warning about moving the repository to Codeberg and clarified that it is not mirrored.
2025-12-23 16:42:53 +01:00
fe4c5bd146 20251207: nice colours, based on Argonaut but black bg 2025-12-10 18:15:41 +01:00
5fd30be988 Removed old mercural install stuff; fix for fish 2025-12-09 14:00:05 +01:00
1ec7d0a3da Overlays config for efficiency 2025-12-09 13:59:33 +01:00
bbf4df0206 Use unique tmpdir 2025-11-18 10:30:46 +01:00
48f981edce 20251008: marksman Markdown organising 2025-10-13 21:02:54 +02:00
a39cd6de00 Word, a bad one 2025-10-12 22:19:48 +02:00
680bf0196b Italics are neat 2025-09-29 15:04:23 +02:00
796ffd9e34 Toggle casing 2025-09-29 14:56:19 +02:00
38751d075b Modified Argonaut theme with black background 2025-09-25 20:20:23 +02:00
034cbcfa90 New font, based on IBM Plex Mono 2025-09-22 20:29:50 +02:00
4da67fcef8 Zed editor/IDE configs 2025-09-21 21:07:57 +02:00
03ccf57b6e Starship prompt has a TOML config file, not yaml 2025-09-19 11:44:13 +02:00
c2c06a46e4 Typofix 2025-09-18 22:19:31 +02:00
331fc82c1a Words 2025-09-06 11:49:13 +02:00
5ad43aa897 20250425: use vimdiff with merge conflicts; default git branch is 'main' 2025-05-13 13:39:24 +02:00
0f04e1831a Discord updating 2025-04-23 20:41:49 +02:00
b129c79a37 Merge branch 'master' of github.com:aquatix/dotfiles 2025-04-21 12:04:54 +02:00
8f0eac7701 20250107: Pratchett! 2025-04-21 12:04:35 +02:00
938119d6ea Merge branch 'master' of github.com:aquatix/dotfiles 2025-04-02 17:20:57 +02:00
c394e8be26 20250214: Argonaut terminal theme from Gogh 2025-04-02 17:20:53 +02:00
75666f9add Automatically install starship config when wanted 2025-04-01 16:13:08 +02:00
cd550ea3fe direnv is used by the fish configuration 2025-04-01 16:12:54 +02:00
7837b80d3b Merge branch 'master' of github.com:aquatix/dotfiles 2025-03-20 13:25:37 +01:00
3c9b12b400 20250304: word 2025-03-20 13:25:14 +01:00
37e92734d7 Words 2025-03-16 18:53:06 +01:00
436a28f702 More dependencies/good stuff 2025-02-11 18:04:53 +01:00
739ab149c5 Local binaries, like uv 2025-02-11 18:04:01 +01:00
c0ba50cf35 Packages 2025-02-10 17:06:31 +01:00
640ba449fb YouCompleteMe legacy branches for older vim versions 2025-01-26 13:55:48 +01:00
df063d1f1a 2025 2025-01-06 15:27:28 +01:00
a969661555 20241208: words 2025-01-05 22:10:05 +01:00
06e3fbc42b Good word 2024-10-19 22:55:37 +02:00
b2046f2df3 Do not conceal quotes and such 2024-09-03 14:00:12 +02:00
0306806186 Words 2024-07-21 12:33:47 +02:00
c231bd9f81 20240414: activate direnv 2024-06-12 09:09:54 +02:00
07a53a3ae0 Merge branch 'master' of github.com:aquatix/dotfiles 2024-05-31 09:22:12 +02:00
e08247d55c 20240405: word 2024-05-31 09:21:51 +02:00
78dd4a936d Source rust cargo env when available 2024-05-29 11:26:01 +02:00
b5d7771bc6 20240507: word 2024-05-29 11:24:40 +02:00
286796856a Load wiki too 2024-05-29 11:24:05 +02:00
0d2830f9e4 Some history, and starship configuration 2024-05-01 14:14:04 +02:00
7c0921a9cd 2024 2023-12-23 22:57:54 +01:00
d72ebcdc5d Better (less) spacing when no additional info is shown 2023-12-15 12:34:38 +01:00
f9c2ebfcbd Better (less) spacing when no additional info is shown 2023-12-15 12:33:15 +01:00
6a2ad74549 Merge branch 'master' of github.com:aquatix/dotfiles 2023-12-08 08:48:07 +01:00
90037e0486 20231009: for slow servers 2023-12-08 08:46:26 +01:00
c6b97e2595 curl sh command to install/update starship 2023-12-06 13:11:08 +01:00
37 changed files with 640 additions and 88 deletions

View File

@@ -218,3 +218,7 @@ export NVM_DIR="${HOME}/.nvm"
export QT_AUTO_SCREEN_SCALE_FACTOR=1 export QT_AUTO_SCREEN_SCALE_FACTOR=1
[ -f ~/.fzf.bash ] && source ~/.fzf.bash [ -f ~/.fzf.bash ] && source ~/.fzf.bash
[ -f ~/.cargo/env ] && . "$HOME/.cargo/env"
[ -f ~/.local/bin/env ] && . "$HOME/.local/bin/env"

28
.config/direnv/direnvrc Normal file
View File

@@ -0,0 +1,28 @@
layout_uv() {
if [[ -z "$VIRTUAL_ENV" && -d ".venv" ]]; then
# No explicit VIRTUAL_ENV was exported (enabled), and a .venv dir exists, use that
VIRTUAL_ENV="$(pwd)/.venv"
fi
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
log_status "No virtual environment exists. Executing \`uv venv\` to create one."
if [[ -z $PYTHON_WANTED ]]; then
# No Python version specified, just create a virtualenv
uv venv
else
# Specific Python version requested, use that; will download if needed
uv venv --python $PYTHON_WANTED
fi
VIRTUAL_ENV="$(pwd)/.venv"
fi
if [ -d ".venv/bin" ]; then
PATH_add .venv/bin
elif [ -d ".venv/Scripts" ]; then
PATH_add .venv/Scripts
fi
export UV_ACTIVE=1 # or VENV_ACTIVE=1
export VIRTUAL_ENV
log_status "Using venv at $VIRTUAL_ENV"
}

View File

@@ -0,0 +1,2 @@
# https://www.reddit.com/r/linux_gaming/comments/1ohgzch/if_you_have_kde_65_you_def_want_to_into_enabling/
KWIN_USE_OVERLAYS=1

View File

@@ -69,6 +69,15 @@ alias la 'ls -A'
alias l 'ls -CF' alias l 'ls -CF'
alias lll 'ls --color=always -alF | less -R' alias lll 'ls --color=always -alF | less -R'
# Replace ls with eza, if installed
if type -q eza
alias ll='eza -al --color=always --group-directories-first --icons' # preferred listing
alias ls='eza -a --color=always --group-directories-first --icons' # all files and dirs
alias la='eza -l --color=always --group-directories-first --icons' # long format
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
end
alias exa 'exa --icons --header --group-directories-first' alias exa 'exa --icons --header --group-directories-first'
alias exatree 'exa --icons --header --group-directories-first --long --tree' alias exatree 'exa --icons --header --group-directories-first --long --tree'
@@ -83,7 +92,7 @@ alias gst "git status"
alias ga "git add -A" alias ga "git add -A"
alias gl "git log" alias gl "git log"
alias gls "git shortlog --summary" alias gls "git shortlog --summary"
alias gld "git log --follow -p -- " # Shows history with diffs for the filename provided alias gld "git log --follow -p -- " # Shows history with diffs for the filename provided
alias gr "git reflog" alias gr "git reflog"
alias gt 'git tag|less' alias gt 'git tag|less'
#alias gad 'git log --pretty='"'"'%at'"'"' | while read d; do date -d "@$d"; done | awk '"'"'{print $1}'"'"' | sort | uniq -c' #alias gad 'git log --pretty='"'"'%at'"'"' | while read d; do date -d "@$d"; done | awk '"'"'{print $1}'"'"' | sort | uniq -c'
@@ -132,7 +141,7 @@ alias pypitest_up 'python3 -m build; python3 -m twine upload --repository testpy
alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4' alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4'
alias weather 'ansiweather' alias weather ansiweather
alias wttr 'curl -s wttr.in/Beverwijk | head -17' alias wttr 'curl -s wttr.in/Beverwijk | head -17'
# https://www.reddit.com/r/vim/comments/7axmsb/i_cant_believe_how_good_fzf_is/?st=jgm7kba5&sh=590aa1e0 # https://www.reddit.com/r/vim/comments/7axmsb/i_cant_believe_how_good_fzf_is/?st=jgm7kba5&sh=590aa1e0
@@ -148,7 +157,7 @@ function imready
# e.g.: longrunning.sh; imready # e.g.: longrunning.sh; imready
set laststatus $status set laststatus $status
if test $status = 0 if test $status = 0
set result "success" set result success
else else
set result "failed with result $laststatus" set result "failed with result $laststatus"
end end
@@ -167,4 +176,8 @@ function jl
end end
# Initialise starship theme # Initialise starship theme
# curl -sS https://starship.rs/install.sh|sh
starship init fish | source starship init fish | source
# https://direnv.net/
direnv hook fish | source

View File

@@ -0,0 +1,9 @@
-- indent_type = "Spaces"
-- indent_width = 4
-- call_parentheses = "Always"
-- column_width = 120
vim.bo.tabstop = 4
vim.bo.softtabstop = 4
vim.bo.shiftwidth = 4
vim.bo.expandtab = true

1
.config/nvim/init.lua Normal file
View File

@@ -0,0 +1 @@
require("config.lazy")

View File

@@ -0,0 +1,37 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
vim.filetype.add({ extension = { todo = "todo" } })
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "bebop" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

View File

@@ -0,0 +1,38 @@
-- Default options: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
vim.g.mapleader = ","
vim.g.maplocalleader = ","
vim.opt.number = true
vim.opt.relativenumber = false -- relative line numbers
vim.opt.tabstop = 4 -- tab width in spaces
vim.bo.tabstop = 4 -- tab width in spaces
vim.opt.shiftwidth = 4 -- indent width
vim.bo.shiftwidth = 4 -- indent width
vim.opt.expandtab = true -- spaces instead of tabs
vim.opt.smartindent = true -- smart indentation
vim.opt.termguicolors = true -- true color support
vim.opt.clipboard = "unnamedplus" -- system clipboard
-- vim.opt.smoothscroll = true
vim.opt.conceallevel = 0 -- please don't hide stuff from me
vim.opt.wrap = true -- Enable line wrap
vim.opt.spelllang = { "en", "nl" }
-- Replace 'dayh' with a formatted day header
vim.cmd("iab <expr> dayh strftime('== %Y%m%d %A ======')")
-- Replace 'timeh' with a formatted date/time header
vim.cmd("iab <expr> timeh strftime('## %Y%m%d %a %H:%M:%S')")
-- vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
-- vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
-- Enable autoread and set up checking triggers
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = "*",
})
-- Colorscheme is set in its plugin file

View File

@@ -0,0 +1,3 @@
return {
'norcalli/nvim-colorizer.lua'
};

View File

@@ -0,0 +1,14 @@
return {
-- { "folke/tokyonight.nvim" },
-- { "rebelot/kanagawa.nvim" },
-- { "Shatur/neovim-ayu" },
{ "ATTron/bebop.nvim" },
-- Configure LazyVim to load our favourite colorscheme
{
"LazyVim/LazyVim",
opts = {
colorscheme = "bebop",
},
},
}

View File

@@ -0,0 +1,12 @@
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
sh = { "shfmt" },
bash = { "shfmt" },
lua = { "stylua" },
fish = { "fish_indent" },
},
},
}

View File

@@ -0,0 +1,5 @@
return {
"vhyrro/luarocks.nvim",
priority = 1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config.
config = true,
}

View File

@@ -0,0 +1,5 @@
return {
"yousefhadder/markdown-plus.nvim",
ft = "markdown",
opts = {},
}

View File

@@ -0,0 +1,23 @@
return {
"roodolv/markdown-toggle.nvim",
config = function()
require("markdown-toggle").setup({
-- cycle through checkboxes
cycle_box_table = true,
-- doing, done, wut, important, forwarded
box_table = { "/", "x", "?", "!", ">" },
keymaps = {
toggle = {
["<C-q>"] = "quote",
["<C-l>"] = "list",
["<Leader><C-l>"] = "list_cycle",
["<C-n>"] = "olist",
["<M-x>"] = "checkbox_cycle",
["<Leader><M-x>"] = "checkbox",
["<C-h>"] = "heading",
["<Leader><C-h>"] = "heading_toggle",
},
},
})
end,
}

View File

@@ -0,0 +1,16 @@
return {
"linux-cultist/venv-selector.nvim",
dependencies = {
"neovim/nvim-lspconfig",
"nvim-telescope/telescope.nvim",
},
ft = "python", -- Load when opening Python files
opts = {
search = {}, -- if you add your own searches, they go here.
options = {} -- if you add plugin options, they go here.
},
event = 'VeryLazy', -- Optional: needed only if you want to type `:VenvSelect` without a keymapping
keys = {
{ "<leader>V", "<cmd>VenvSelect<cr>" }, -- Open picker on keymap
},
}

View File

@@ -0,0 +1,7 @@
return {
"folke/snacks.nvim",
opts = {
scroll = { enabled = false },
-- other stuff
},
}

View File

@@ -0,0 +1,8 @@
return {
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
keys = {
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live Grep" },
},
}

View File

@@ -0,0 +1,57 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false, -- Keep false to ensure loading for Neo-tree
build = ":TSUpdate",
config = function()
local treesitter = require("nvim-treesitter")
treesitter.setup()
treesitter.install({
"java",
"c",
"lua",
"vim",
"vimdoc",
"query",
-- "elixir",
-- "heex",
"markdown",
"markdown_inline",
"bash",
"javascript",
"typescript",
"html",
"toml",
"yaml",
})
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"java",
"c",
"lua",
"vim",
"vimdoc",
"query",
-- "elixir",
-- "heex",
"markdown",
"markdown_inline",
"bash",
"javascript",
"typescript",
"html",
"toml",
"yaml",
},
callback = function()
-- syntax highlighting, provided by Neovim
vim.treesitter.start()
-- folds, provided by Neovim (I don't like folds)
-- vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
-- vim.wo.foldmethod = 'expr'
-- indentation, provided by nvim-treesitter
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})
end,
}

5
.config/nvim/stylua.toml Normal file
View File

@@ -0,0 +1,5 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
[sort_requires]
enabled = true

View File

@@ -0,0 +1 @@
../../../.vim/syntax/todo.vim

View File

@@ -79,24 +79,24 @@ truncation_symbol = "…/"
# "Important 󰈙 " = " 󰈙 " # "Important 󰈙 " = " 󰈙 "
[c] [c]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[docker_context] [docker_context]
symbol = " " symbol = ""
style = "bg:#06969A" style = "bg:#06969A"
format = '[ $symbol $context ]($style) $path' format = '[ $symbol $context ]($style) $path'
[elixir] [elixir]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[elm] [elm]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[git_branch] [git_branch]
symbol = "" symbol = ""
@@ -124,53 +124,53 @@ format = '[$all_status$ahead_behind]($style)'
# format = '[](bg:#fb7d4b fg:#FCA17D)[$all_status$ahead_behind]($style)[](bg:#FCA17D fg:#fb7d4b)' # format = '[](bg:#fb7d4b fg:#FCA17D)[$all_status$ahead_behind]($style)[](bg:#FCA17D fg:#fb7d4b)'
[golang] [golang]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[gradle] [gradle]
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[haskell] [haskell]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[java] [java]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[julia] [julia]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[nodejs] [nodejs]
symbol = "" symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[nim] [nim]
symbol = "󰆥 " symbol = "󰆥"
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[python] [python]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($virtualenv) ]($style)' format = '[ $symbol( $virtualenv) ]($style)'
[rust] [rust]
symbol = "" symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[scala] [scala]
symbol = " " symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol( $version) ]($style)'
[cmd_duration] [cmd_duration]
min_time = 2000 min_time = 2000

25
.config/zed/settings.json Normal file
View File

@@ -0,0 +1,25 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"vim_mode": true,
"icon_theme": "Material Icon Theme",
"base_keymap": "JetBrains",
"ui_font_size": 16,
"buffer_font_size": 15,
"terminal": {
"font_family": "MonaspiceNe Nerd Font Mono",
"font_size": 15,
"line_height": "standard"
},
"theme": {
"mode": "dark",
"light": "One Light",
"dark": "Zedokai Darker"
}
}

View File

@@ -74,3 +74,11 @@
directory = /mnt/chromeos/PlayFiles/Documents/phren directory = /mnt/chromeos/PlayFiles/Documents/phren
directory = /mnt/chromeos/PlayFiles/Documents/divaultphren directory = /mnt/chromeos/PlayFiles/Documents/divaultphren
directory = /mnt/chromeos/PlayFiles/Documents/mydocs directory = /mnt/chromeos/PlayFiles/Documents/mydocs
#[http]
# postBuffer = 1048576000
# lowSpeedLimit = 0
# lowSpeedTime = 999999
[init]
defaultBranch = main
[merge]
tool = vimdiff

6
.gitignore vendored
View File

@@ -1,3 +1,9 @@
# Neovim
.config/nvim/lazy-lock.json
.config/nvim/lazyvim.json
# Contains some personal stuff
.config/nvim/lua/plugins/obsidian.lua
# Vim # Vim
.vim/bundle .vim/bundle
*.spl *.spl

View File

@@ -0,0 +1,95 @@
[Background]
Color=0,0,0
[BackgroundFaint]
Color=0,0,1
[BackgroundIntense]
Color=68,68,69
[Color0]
Color=35,35,35
[Color0Faint]
Color=35,35,35
[Color0Intense]
Color=68,68,68
[Color1]
Color=255,0,15
[Color1Faint]
Color=255,0,15
[Color1Intense]
Color=255,39,64
[Color2]
Color=140,225,11
[Color2Faint]
Color=140,225,11
[Color2Intense]
Color=171,225,91
[Color3]
Color=255,185,0
[Color3Faint]
Color=255,185,0
[Color3Intense]
Color=255,210,66
[Color4]
Color=0,141,248
[Color4Faint]
Color=0,141,248
[Color4Intense]
Color=0,146,255
[Color5]
Color=109,67,166
[Color5Faint]
Color=109,67,166
[Color5Intense]
Color=154,95,235
[Color6]
Color=0,216,235
[Color6Faint]
Color=0,216,235
[Color6Intense]
Color=103,255,240
[Color7]
Color=255,255,255
[Color7Faint]
Color=255,255,255
[Color7Intense]
Color=255,255,255
[Foreground]
Color=255,250,244
[ForegroundFaint]
Color=255,250,244
[ForegroundIntense]
Color=255,250,244
[General]
Description=Diginaut
#Opacity=0.93
Wallpaper=

View File

@@ -0,0 +1,25 @@
[Palette]
Name=Diginaut
Background=#000000
Foreground=#FFFAF4
Cursor=#FFFAF4
Color0=#232323
Color1=#FF000F
Color2=#8CE10B
Color3=#FFB900
Color4=#008DF8
Color5=#6D43A6
Color6=#00D8EB
Color7=#FFFFFF
Color8=#444444
Color9=#FF2740
Color10=#ABE15B
Color11=#FFD242
Color12=#0092FF
Color13=#9A5FEB
Color14=#67FFF0
Color15=#FFFFFF
# This file was generated from https://github.com/Gogh-Co/Gogh/tree/master/themes/Argonaut.yml
# Modified by aquatix/diginaut

View File

@@ -2,9 +2,9 @@
set -g bell-action any set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value. # Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal tmux-256color-italic set -g default-terminal "tmux-256color"
#set -g terminal-overrides ',tmux-256color-italic:Tc' #set -g terminal-overrides ',tmux-256color-italic:Tc'
set -ga terminal-overrides ',*256col*:Tc' set -ga terminal-overrides ',*256col*:Tc:RGB'
# Keep your finger on ctrl, or don't # Keep your finger on ctrl, or don't
bind-key ^D detach-client bind-key ^D detach-client

View File

@@ -15,3 +15,9 @@ backend
dammIT dammIT
isso isso
diginaut diginaut
Pratchett
jailbreaking
plugin
Readeck
enshittification
Garmin

View File

@@ -243,3 +243,15 @@ etensgeluiden
gebarbecuede gebarbecuede
WTF WTF
syncthing syncthing
Madurodam
fietsrit
multifactorauthenticatie
SSO-gebruikers
hacktop
computerwerk
labwerk
PowerPoint
Kubuntu
Ichthus
Castor
JungleTrain

View File

@@ -51,16 +51,16 @@ highlight scratchThis ctermfg=Grey guifg=#666666
" Task statuses " Task statuses
syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote
syntax match todoNote "\v^ .*$" nextgroup=todoNote syntax match todoNote "\v^ .*$" nextgroup=todoNote
highlight todoNote ctermfg=Grey guifg=#666666 highlight todoNote ctermfg=Grey guifg=#666666 cterm=italic
syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite
highlight todoStatusDone ctermfg=green guifg=#00ff00 highlight todoStatusDone ctermfg=green guifg=#00ff00
syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00 highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00 cterm=italic
syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf cterm=italic
syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite
highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff
@@ -70,7 +70,7 @@ highlight todoStatusTodo ctermfg=red guifg=#ff0000
syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite
syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f highlight todoStatusImportant ctermfg=167 guifg=#d75f5f cterm=italic
syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite
highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff

36
.vimrc
View File

@@ -293,7 +293,8 @@ map <F9> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<
Plug 'Yggdroot/indentLine' Plug 'Yggdroot/indentLine'
let g:indentLine_char = '┊' let g:indentLine_char = '┊'
"let g:indentLine_setConceal = 0 "let g:indentLine_setConceal = 0
let g:indentLine_conceallevel = 1 "let g:indentLine_conceallevel = 1
let g:indentLine_conceallevel = 0
" Do not conceal LaTeX symbols " Do not conceal LaTeX symbols
let g:tex_conceal="" let g:tex_conceal=""
@@ -326,9 +327,13 @@ if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not
" sudo apt-get install python-dev " sudo apt-get install python-dev
" cd ~/.vim/bundle/YouCompleteMe " cd ~/.vim/bundle/YouCompleteMe
" ./install.py # For C-style languages: ./install.py --clang-completer " ./install.py # For C-style languages: ./install.py --clang-completer
if has('patch-8.1.2269') if has('patch-9.1.0016')
" Latest YCM needs at least this version of vim " Latest YCM needs at least this version of vim
Plug 'ycm-core/YouCompleteMe' Plug 'ycm-core/YouCompleteMe'
elseif has('8.2.3995')
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim-8.2' }
elseif has('8.1.2269')
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim-8.1' }
else else
" Version compatible with the vim in Debian 10 buster " Version compatible with the vim in Debian 10 buster
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' } " Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
@@ -444,6 +449,9 @@ let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
Plug 'lervag/wiki.vim' Plug 'lervag/wiki.vim'
" Config below, after plug#end() " Config below, after plug#end()
" marksman LSP integration (ALE) for advanced Markdown organising
Plug 'artempyanykh/marksman'
if $USER != 'root' if $USER != 'root'
" notational velocity with fzf: quickly search and open notes " notational velocity with fzf: quickly search and open notes
@@ -581,6 +589,21 @@ fun! TrimWhitespace()
endfun endfun
command! TrimWhitespace call TrimWhitespace() command! TrimWhitespace call TrimWhitespace()
" Visually select text then press ~ to convert the text to UPPER CASE, then to lower case, then to Title Case.
" Keep pressing ~ until you get the case you want.
" https://vim.fandom.com/wiki/Switching_case_of_characters
function! TwiddleCase(str)
if a:str ==# toupper(a:str)
let result = tolower(a:str)
elseif a:str ==# tolower(a:str)
let result = substitute(a:str,'\(\<\w\+\>\)', '\u\1', 'g')
else
let result = toupper(a:str)
endif
return result
endfunction
vnoremap ~ y:call setreg('', TwiddleCase(@"), getregtype(''))<CR>gv""Pgv
" enable words completion " enable words completion
set dictionary+=/usr/share/dict/words set dictionary+=/usr/share/dict/words
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k " use ctrl-n ctrl-n instead of ctrl-x ctrl-k
@@ -610,7 +633,7 @@ set hidden
set cryptmethod=blowfish2 set cryptmethod=blowfish2
" Ensure 256 colour support if the terminal supports it " Ensure 256 colour support if the terminal supports it
if has("gui_running") || &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic" if has("gui_running") || &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color" || &term == "tmux-256color-italic"
set background=dark set background=dark
let g:enable_bold_font = 1 let g:enable_bold_font = 1
@@ -651,6 +674,13 @@ iab <expr> dayh strftime("== %Y%m%d %A ======")
" Replace 'timeh' with a formatted date/time header " Replace 'timeh' with a formatted date/time header
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S") iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
iabbrev <expr> ,d strftime('%Y-%m-%d')
iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')
inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()
" vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
" vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
" vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
" Fly through buffers instead of cycling " Fly through buffers instead of cycling
" nnoremap <leader>l :ls<cr>:b<space> " nnoremap <leader>l :ls<cr>:b<space>

View File

@@ -1,7 +1,7 @@
dotfiles dotfiles
======== ========
After having my homedirs in subversion for years, moved this collection to Git in 2014 and standardised over all my machines. After having my homedirs in subversion for years, moved this collection to Git [in 2014](https://github.com/aquatix/dotfiles/commit/18c02056381e7c44dd220f6cd54182ce3f040104) and standardised over all my machines (servers, desktops, laptops, phones, tablets).
To install: To install:
@@ -15,7 +15,8 @@ sh install.sh # follow the instructions and install the files in the homedir
Extra's: Extra's:
[virtualfish](https://virtualfish.readthedocs.io/en/latest/install.html) for virtualenv(wrapper) integration in `fish` shell. - [virtualfish](https://virtualfish.readthedocs.io/en/latest/install.html) for virtualenv(wrapper) integration in `fish` shell.
- *N.B.:* virtualfish might be on its way out, with `uv` and `direnv` configurations
## Dependency on `fzf` and ripgrep `rg` ## Dependency on `fzf` and ripgrep `rg`
@@ -27,6 +28,33 @@ Both the shell configuration and vim make use of `fzf`. [fzf is a general-purpos
If your distribution does not provide a package, [get yours from the releases page](https://github.com/BurntSushi/ripgrep/releases) (there's a .deb for 64-bit systems). If your distribution does not provide a package, [get yours from the releases page](https://github.com/BurntSushi/ripgrep/releases) (there's a .deb for 64-bit systems).
## starship prompt
By default, the included fish shell configuration installs and uses the bobthefish prompt, but I have been using the [starship](https://starship.rs/) prompt [since November 2023](https://github.com/aquatix/dotfiles/commit/3836faaaf1e1207ee122eb3b72aa3cab27b4f1f7) and [configuration is included](https://github.com/aquatix/dotfiles/blob/master/.config/starship.toml).
To use, [install starship](https://starship.rs/#quick-install) and link the configuration to activate the configured prompt:
```bash
cd ~/.config
ln -s ../.dot/dotfiles/.config/starship.toml
```
## All dependencies
To have the full experience, install all of these:
```bash
sudo apt install git curl vim-nox fzf ripgrep exuberant-ctags fish grc tmux htop direnv
# needed for building vim plugins:
sudo apt install cmake build-essential
# also, this classic:
sudo apt install mc
```
and maybe install a nice colour theme for your terminal from https://gogh-co.github.io/Gogh/ - I use argonaut with a black background myself.
## vim config ## vim config
The [.vimrc](https://github.com/aquatix/dotfiles/blob/master/.vimrc) has a lot going on. [Find out more about my tweaks](https://dammit.nl/tag/vim.html) and use `:Maps` in vim itself to see key mappings The [.vimrc](https://github.com/aquatix/dotfiles/blob/master/.vimrc) has a lot going on. [Find out more about my tweaks](https://dammit.nl/tag/vim.html) and use `:Maps` in vim itself to see key mappings

View File

@@ -50,6 +50,16 @@ JetBrainsMonoNerdFontMono-SemiBoldItalic.ttf
JetBrainsMonoNerdFontMono-SemiBold.ttf JetBrainsMonoNerdFontMono-SemiBold.ttf
JetBrainsMonoNerdFontMono-ThinItalic.ttf JetBrainsMonoNerdFontMono-ThinItalic.ttf
JetBrainsMonoNerdFontMono-Thin.ttf JetBrainsMonoNerdFontMono-Thin.ttf
LilexNerdFont-BoldItalic.ttf
LilexNerdFont-Bold.ttf
LilexNerdFont-ExtraLightItalic.ttf
LilexNerdFont-ExtraLight.ttf
LilexNerdFont-Italic.ttf
LilexNerdFont-MediumItalic.ttf
LilexNerdFont-Medium.ttf
LilexNerdFont-Regular.ttf
LilexNerdFont-ThinItalic.ttf
LilexNerdFont-Thin.ttf
MonaspiceNeNerdFontMono-BoldItalic.otf MonaspiceNeNerdFontMono-BoldItalic.otf
MonaspiceNeNerdFontMono-Bold.otf MonaspiceNeNerdFontMono-Bold.otf
MonaspiceNeNerdFontMono-Italic.otf MonaspiceNeNerdFontMono-Italic.otf
@@ -110,6 +120,9 @@ Rubik-MediumItalic.ttf
Rubik-Medium.ttf Rubik-Medium.ttf
Rubik-Regular.ttf' Rubik-Regular.ttf'
FONTS_SUSE=$'SUSE-Italic-VariableFont_wght.ttf
SUSE-VariableFont_wght.ttf'
# https://github.com/eosrei/emojione-color-font/ # https://github.com/eosrei/emojione-color-font/
# FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf' # FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
@@ -165,7 +178,7 @@ if [ -e ~/.dot_is_server ]; then
while read -r FONT; do while read -r FONT; do
echo "Copied font: $FONT" echo "Copied font: $FONT"
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR" cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
done <<< "$FONTS_CODING" done <<<"$FONTS_CODING"
else else
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting" echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
fi fi
@@ -180,7 +193,7 @@ if [ -e ~/.dot_is_server ]; then
while read -r FONT; do while read -r FONT; do
echo "Copied font: $FONT" echo "Copied font: $FONT"
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR" cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
done <<< "$FONTS_JETBRAINS" done <<<"$FONTS_JETBRAINS"
else else
echo "$SOURCE_DIR or $DEST_DIR not found, aborting" echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
fi fi
@@ -195,7 +208,7 @@ if [ -e ~/.dot_is_server ]; then
while read -r FONT; do while read -r FONT; do
echo "Copied font: $FONT" echo "Copied font: $FONT"
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR" cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
done <<< "$FONTS_OVERPASS" done <<<"$FONTS_OVERPASS"
else else
echo "$SOURCE_DIR or $DEST_DIR not found, aborting" echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
fi fi
@@ -210,7 +223,7 @@ if [ -e ~/.dot_is_server ]; then
while read -r FONT; do while read -r FONT; do
echo "Copied font: $FONT" echo "Copied font: $FONT"
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR" cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
done <<< "$FONTS_GO" done <<<"$FONTS_GO"
else else
echo "$SOURCE_DIR or $DEST_DIR not found, aborting" echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
fi fi
@@ -227,22 +240,25 @@ else
while read -r FONT; do while read -r FONT; do
FONT_FILE=$(basename "${SOURCE_DIR}/${FONT}") FONT_FILE=$(basename "${SOURCE_DIR}/${FONT}")
install_font "$SOURCE_DIR/$FONT_FILE" "$DEST_DIR/$FONT_FILE" install_font "$SOURCE_DIR/$FONT_FILE" "$DEST_DIR/$FONT_FILE"
done <<< "$FONTS_CODING" done <<<"$FONTS_CODING"
while read -r FONT; do while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_JETBRAINS" done <<<"$FONTS_JETBRAINS"
while read -r FONT; do while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_FUTURA" done <<<"$FONTS_FUTURA"
while read -r FONT; do while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_OVERPASS" done <<<"$FONTS_OVERPASS"
while read -r FONT; do while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_GO" done <<<"$FONTS_GO"
while read -r FONT; do while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<< "$FONTS_RUBIK" done <<<"$FONTS_RUBIK"
while read -r FONT; do
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
done <<<"$FONTS_SUSE"
# while read -r FONT; do # while read -r FONT; do
# install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT" # install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
# done <<< "$FONTS_VARIOUS" # done <<< "$FONTS_VARIOUS"
@@ -259,7 +275,7 @@ else
echo "Deleting symlink $DEST_DIR/$FONT" echo "Deleting symlink $DEST_DIR/$FONT"
rm "$DEST_DIR/$FONT" rm "$DEST_DIR/$FONT"
fi fi
done <<< "$FONTS_DELETE" done <<<"$FONTS_DELETE"
# Just to be sure, clear and refresh your font cache and restart Firefox # Just to be sure, clear and refresh your font cache and restart Firefox
fc-cache -f -v fc-cache -f -v
echo echo

21
bin/plasma_toggle_tablet_mode Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env python3
import subprocess
import gi
gi.require_version('Gio', '2.0')
from gi.repository import Gio, GLib
KDE_VERSION = 6
OBJECT_PATH = '/kwinrc'
INTERFACE_NAME = 'org.kde.kconfig.notify'
SIGNAL_NAME = 'ConfigChanged'
current_mode: str = subprocess.check_output([f"kreadconfig{KDE_VERSION}", "--file", "kwinrc", "--group", "Input", "--key", "TabletMode", "--default", "auto"]).decode(encoding='utf-8').strip()
if current_mode == "on":
subprocess.check_call([f"kwriteconfig{KDE_VERSION}", "--file", "kwinrc", "--group", "Input", "--key", "TabletMode", "off"])
else:
subprocess.check_call([f"kwriteconfig{KDE_VERSION}", "--file", "kwinrc", "--group", "Input", "--key", "TabletMode", "on"])
connection = Gio.bus_get_sync(Gio.BusType.SESSION, None)
Gio.DBusConnection.emit_signal(connection, None, OBJECT_PATH, INTERFACE_NAME, SIGNAL_NAME, GLib.Variant.new_tuple(GLib.Variant('a{saay}', {'Input': [b'TabletMode']})))

10
bin/update_discord Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Use a uniquely named, temporary directory to download to
TMPDIR=$(mktemp -d)
wget "https://discord.com/api/download?platform=linux&format=deb" -O "${TMPDIR}/discord.deb"
sudo dpkg -i "${TMPDIR}/discord.deb"
# Clean up
rm "${TMPDIR}/discord.deb"

View File

@@ -3,5 +3,11 @@ cd ~/divaultplan
git pull git pull
cd ~/divaultphren cd ~/divaultphren
git pull git pull
cd ~/divaultwiki
git pull
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md #vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
vim -c "set nofoldenable" ~/divaultplan/planning_2023.todo ~/divaultphren/index.md if ! command -v nvim >/dev/null 2>&1; then
vim -c "set nofoldenable" ~/divaultplan/planning_2026.md
else
nvim -c "set nofoldenable" ~/divaultplan/planning_2026.md
fi

View File

@@ -1,29 +1,6 @@
#!/bin/bash #!/bin/bash
# inspired by rrix' dotfiles # inspired by rrix' dotfiles
install_hg()
{
# Mercurial extensions
touch "${HOME}/.dot_has_hg"
HGDIR="${HOME}/workspace/application_addons/mercurial"
mkdir -p $HGDIR
cd $HGDIR || exit
for REPO in Mekk/mercurial_keyring sjl/hg-prompt durin42/hg-git yujiewu/hgflow
do
REPODIR="${REPO##*/}"
echo $REPODIR
if [ ! -d "$HGDIR/$REPODIR" ]; then
hg clone http://bitbucket.org/$REPO
#echo http://bitbucket.org/$REPO
else
cd $HGDIR/$REPODIR || exit
#echo $HGDIR/$REPODIR
hg pull -u
fi
done
}
install_fish() install_fish()
{ {
touch ~/.dot/.dot_has_fish touch ~/.dot/.dot_has_fish
@@ -85,8 +62,11 @@ DATETIME=$(date +%Y%m%d_%H%M)
# Go home # Go home
cd || exit cd || exit
# We need this config (sub)dir to exist for the symlink
mkdir -p .config/direnv
# Symlink all the things # Symlink all the things
for TARGET in .bash_aliases .bashrc bin .gitconfig .gitignore_global .gitmodules .hgauthors.txt .hgignore .hgrc .ideavimrc .ignore .screenrc .terminfo .tmux.conf .vim .vimrc install.sh for TARGET in .bash_aliases .bashrc bin .gitconfig .gitignore_global .gitmodules .hgauthors.txt .hgignore .hgrc .ideavimrc .ignore .screenrc .terminfo .tmux.conf .vim .vimrc install.sh .config/direnv/direnvrc .config/nvim
do do
make_link $DIR $TARGET make_link $DIR $TARGET
done done
@@ -102,21 +82,8 @@ if [ ! -d "${HOME}/.vim/autoload/plug.vim" ]; then
vim vim
fi fi
#if [ -e ~/.dot_has_hg ]; then
# install_hg
#elif [ ! -e ~/.dot_no_hg ]; then
# echo
# echo "Do you wish to install mercurial stuff?"
# select yn in "Yes" "No"; do
# case $yn in
# Yes ) install_hg; break;;
# No ) touch ~/.dot_no_hg; break;;
# esac
# done
#fi
if [ -e ~/.dot/.dot_has_fish ]; then if [ -e ~/.dot/.dot_has_fish ]; then
install_hg install_fish
elif [ ! -e ~/.dot/.dot_no_fish ]; then elif [ ! -e ~/.dot/.dot_no_fish ]; then
echo echo
echo "Do you wish to install fish shell configuration?" echo "Do you wish to install fish shell configuration?"
@@ -128,6 +95,15 @@ elif [ ! -e ~/.dot/.dot_no_fish ]; then
done done
fi fi
echo
echo "Do you wish to install the starship prompt?"
select yn in "Yes" "No"; do
case $yn in
Yes ) make_link $DIR ".config/starship.toml"; curl -sS https://starship.rs/install.sh | sh; break;;
No ) break;;
esac
done
if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then
echo echo
echo "Is this machine a server?" echo "Is this machine a server?"