diff --git a/desktop/.config/waybar/config b/desktop/.config/waybar/config index 8627414..8b3dcf2 100644 --- a/desktop/.config/waybar/config +++ b/desktop/.config/waybar/config @@ -1,21 +1,8 @@ { "layer": "top", "modules-left": ["river/tags", "custom/events", "custom/vidl", "river/window"], - "modules-center": ["clock", "custom/media", "custom/keepawake"], + "modules-center": ["clock", "custom/media"], "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}", diff --git a/desktop/.config/waybar/modules/keepawake b/desktop/.config/waybar/modules/keepawake deleted file mode 100755 index 6196eaa..0000000 --- a/desktop/.config/waybar/modules/keepawake +++ /dev/null @@ -1,9 +0,0 @@ -#!/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" diff --git a/desktop/.config/waybar/style.css b/desktop/.config/waybar/style.css index 3430e80..5d210fe 100644 --- a/desktop/.config/waybar/style.css +++ b/desktop/.config/waybar/style.css @@ -18,10 +18,6 @@ window#waybar.hidden { opacity: 0.2; } -.hidden { - opacity: 0; -} - #tags button { font-size:17px; font-weight:900; @@ -74,7 +70,6 @@ window#waybar.hidden { #custom-wireguard, #custom-events, #custom-vidl, -#custom-keepawake, #custom-media { padding: 0 5px; margin: 0 5px; diff --git a/nvim/.config/nvim/lua/plugins/data_analysis.lua b/nvim/.config/nvim/lua/plugins/data_analysis.lua index 071ae15..96e8823 100644 --- a/nvim/.config/nvim/lua/plugins/data_analysis.lua +++ b/nvim/.config/nvim/lua/plugins/data_analysis.lua @@ -86,21 +86,15 @@ return { vim.g.molten_image_provider = "image.nvim" end - 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 + vim.keymap.set("n", "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"] end + print(k, v) end require("image").setup(opts) - 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, { desc = "toggle image rendering", silent = true }) end, ft = { "markdown", "vimwiki", "quarto", "norg", "typst", "python" }, priority = 60, diff --git a/vcs/jj/config/jj/config.toml b/vcs/jj/config/jj/config.toml index 05f0890..134f553 100644 --- a/vcs/jj/config/jj/config.toml +++ b/vcs/jj/config/jj/config.toml @@ -13,14 +13,10 @@ private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*') [ui] default-command = "log" diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"] - -# 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" + +[ui.diff] +format = "git" # for the time being to use delta well [aliases] # see: https://shaddy.dev/notes/jj-tug/, update most recent bookmark diff --git a/writing/jrnl/config/jrnl/jrnl.yaml b/writing/jrnl/config/jrnl/jrnl.yaml index 20dc11c..90d19c9 100644 --- a/writing/jrnl/config/jrnl/jrnl.yaml +++ b/writing/jrnl/config/jrnl/jrnl.yaml @@ -16,4 +16,4 @@ linewrap: 79 tagsymbols: + template: false timeformat: '%F %r' -version: v4.2 +version: v4.1