Compare commits
No commits in common. "8e7aaef291e2df10fe05d8377a248763f2e4a4c8" and "b0ed357037bf80a6477aafec2daeb6e801ecb04e" have entirely different histories.
8e7aaef291
...
b0ed357037
6 changed files with 11 additions and 48 deletions
|
|
@ -1,21 +1,8 @@
|
||||||
{
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"modules-left": ["river/tags", "custom/events", "custom/vidl", "river/window"],
|
"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"],
|
"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": {
|
"custom/archupdates": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-alt": "{} {icon}",
|
"format-alt": "{} {icon}",
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
@ -18,10 +18,6 @@ window#waybar.hidden {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button {
|
#tags button {
|
||||||
font-size:17px;
|
font-size:17px;
|
||||||
font-weight:900;
|
font-weight:900;
|
||||||
|
|
@ -74,7 +70,6 @@ window#waybar.hidden {
|
||||||
#custom-wireguard,
|
#custom-wireguard,
|
||||||
#custom-events,
|
#custom-events,
|
||||||
#custom-vidl,
|
#custom-vidl,
|
||||||
#custom-keepawake,
|
|
||||||
#custom-media {
|
#custom-media {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
|
|
||||||
|
|
@ -86,21 +86,15 @@ return {
|
||||||
vim.g.molten_image_provider = "image.nvim"
|
vim.g.molten_image_provider = "image.nvim"
|
||||||
end
|
end
|
||||||
|
|
||||||
local prev_img_everywhere = function(state)
|
vim.keymap.set("n", "<localleader>pi", function()
|
||||||
for _, integ in pairs(opts.integrations) do
|
for k, v in pairs(opts.integrations) do
|
||||||
if integ["only_render_image_at_cursor"] ~= nil then
|
if v["only_render_image_at_cursor"] ~= nil then
|
||||||
integ["only_render_image_at_cursor"] = not state
|
v["only_render_image_at_cursor"] = not v["only_render_image_at_cursor"]
|
||||||
end
|
end
|
||||||
|
print(k, v)
|
||||||
end
|
end
|
||||||
require("image").setup(opts)
|
require("image").setup(opts)
|
||||||
end
|
end, { desc = "toggle image rendering", silent = true })
|
||||||
|
|
||||||
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,
|
end,
|
||||||
ft = { "markdown", "vimwiki", "quarto", "norg", "typst", "python" },
|
ft = { "markdown", "vimwiki", "quarto", "norg", "typst", "python" },
|
||||||
priority = 60,
|
priority = 60,
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,10 @@ private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')
|
||||||
[ui]
|
[ui]
|
||||||
default-command = "log"
|
default-command = "log"
|
||||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
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"
|
pager = "delta"
|
||||||
diff-formatter = ":git"
|
|
||||||
|
[ui.diff]
|
||||||
|
format = "git" # for the time being to use delta well
|
||||||
|
|
||||||
[aliases]
|
[aliases]
|
||||||
# see: https://shaddy.dev/notes/jj-tug/, update most recent bookmark
|
# see: https://shaddy.dev/notes/jj-tug/, update most recent bookmark
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ linewrap: 79
|
||||||
tagsymbols: +
|
tagsymbols: +
|
||||||
template: false
|
template: false
|
||||||
timeformat: '%F %r'
|
timeformat: '%F %r'
|
||||||
version: v4.2
|
version: v4.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue