Compare commits

...

4 commits

Author SHA1 Message Date
8e7aaef291
jrnl: Update config version 2025-06-12 22:01:20 +02:00
53b8bd0175
jj: Update delta diff settings
Remove deprecated 'ui.diff.format' setting and replace with
'ui.diff-formatter'.

Use the time to also ONLY set up delta as the diff and show command
pager using scopes (since I was perusing the jj discussions anyway).

This has the advantage that normal jj paging is done with `-FRX` as far
as I understand -- which means after we close out of the pager the
content remains on screen (-X). This is not the case with delta. So now,
the contents of e.g. the last log command should always stay on screen.
2025-06-12 22:01:19 +02:00
03f85fd958
waybar: Add keepawake module
Shows if the pc will not automatically turn off screen or suspend.
Figures this out by checking for `swayidle` process, so that is
required. Turns on suspend again on click, and uses voidlinux `sv` user
service for it, so those have to be set up.
2025-06-12 22:01:18 +02:00
7447cb3354
nvim: Turn image preview setting into switch
Can be toggled with `]sp` ([P]review images _everywhere_), or with `[sp`
([P]review images _only at cursor_).
2025-06-12 22:01:18 +02:00
6 changed files with 48 additions and 11 deletions

View file

@ -1,8 +1,21 @@
{
"layer": "top",
"modules-left": ["river/tags", "custom/events", "custom/vidl", "river/window"],
"modules-center": ["clock", "custom/media"],
"modules-center": ["clock", "custom/media", "custom/keepawake"],
"modules-right": ["river/mode", "custom/wireguard", "custom/archupdates", "pulseaudio", "backlight", "network", "cpu", "memory", "temperature", "tray", "battery"],
"custom/keepawake": {
"format": "{icon}",
"format-alt": "{} {icon}",
"format-alt-click": "click-right",
"format-icons": {
"idle-disabled": "󰅶 ",
"idle-enabled": ""
},
"exec": "~/.config/waybar/modules/keepawake",
"on-click": "SVDIR=~/.local/state/service sv start swayidle",
"return-type": "json",
"interval": 5
},
"custom/archupdates": {
"format": "{icon}",
"format-alt": "{} {icon}",

View file

@ -0,0 +1,9 @@
#!/usr/bin/env sh
status="idle-disabled"
if pgrep -x swayidle >/dev/null; then
status="idle-enabled"
fi
printf "{\"text\": \"\", \"alt\": \"%s\", \"tooltip\": \"\", \"class\": \"\"}" \
"$status"

View file

@ -18,6 +18,10 @@ window#waybar.hidden {
opacity: 0.2;
}
.hidden {
opacity: 0;
}
#tags button {
font-size:17px;
font-weight:900;
@ -70,6 +74,7 @@ window#waybar.hidden {
#custom-wireguard,
#custom-events,
#custom-vidl,
#custom-keepawake,
#custom-media {
padding: 0 5px;
margin: 0 5px;

View file

@ -86,15 +86,21 @@ return {
vim.g.molten_image_provider = "image.nvim"
end
vim.keymap.set("n", "<localleader>pi", function()
for k, v in pairs(opts.integrations) do
if v["only_render_image_at_cursor"] ~= nil then
v["only_render_image_at_cursor"] = not v["only_render_image_at_cursor"]
local prev_img_everywhere = function(state)
for _, integ in pairs(opts.integrations) do
if integ["only_render_image_at_cursor"] ~= nil then
integ["only_render_image_at_cursor"] = not state
end
print(k, v)
end
require("image").setup(opts)
end, { desc = "toggle image rendering", silent = true })
end
vim.keymap.set("n", "]sp", function()
prev_img_everywhere(true)
end, { desc = "preview images everywhere", silent = true })
vim.keymap.set("n", "[sp", function()
prev_img_everywhere(false)
end, { desc = "preview images at cursor", silent = true })
end,
ft = { "markdown", "vimwiki", "quarto", "norg", "typst", "python" },
priority = 60,

View file

@ -13,10 +13,14 @@ private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')
[ui]
default-command = "log"
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
pager = "delta"
[ui.diff]
format = "git" # for the time being to use delta well
# use delta as formatter but _only_ for diff and show
# see: https://github.com/jj-vcs/jj/discussions/4690#discussioncomment-12388965
[[--scope]]
--when.commands = ["diff", "show"]
[--scope.ui]
pager = "delta"
diff-formatter = ":git"
[aliases]
# see: https://shaddy.dev/notes/jj-tug/, update most recent bookmark

View file

@ -16,4 +16,4 @@ linewrap: 79
tagsymbols: +
template: false
timeformat: '%F %r'
version: v4.1
version: v4.2