mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-05-18 15:04:19 +02:00
update a bunch of configs
This commit is contained in:
parent
93baba1e7c
commit
4151abe4f3
|
@ -3,11 +3,41 @@
|
|||
<action>
|
||||
<icon><% opt.term.icon_name %></icon>
|
||||
<name>Open <% opt.term.name %> Here</name>
|
||||
<unique-id>1644418824525892-1</unique-id>
|
||||
<command><% opt.term.workdir_command %> %f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
|
||||
<startup-notify/>
|
||||
|
||||
<directories/>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>Rsync To...</name>
|
||||
<icon>edit-copy</icon>
|
||||
<command><% opt.commands.zenity %> --entry --text "Rsync Command" --entry-text "rsync -vaP %F " | xargs alacritty --hold --command</command>
|
||||
<description>Open a Dialog on an Rsync destination for the selected files</description>
|
||||
<patterns>*</patterns>
|
||||
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>rm -rf</name>
|
||||
<icon>user-trash-full</icon>
|
||||
<command><% opt.commands.zenity %> --text "Delete these files?\n\n%F" && rm -rf %F</command>
|
||||
<description>force delete stuff</description>
|
||||
<patterns>*</patterns>
|
||||
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
<directories/>
|
||||
</action>
|
||||
</actions>
|
||||
|
|
|
@ -30,7 +30,7 @@ warning = <% opt.temperatures.high %>
|
|||
[[block]]
|
||||
block = "music"
|
||||
interface_name_exclude = [".*kdeconnect.*", "mpd"]
|
||||
format = " $icon {$combo.rot-str(20, 0.1)|} $prev| $play| $next|"
|
||||
format = " $icon {$combo.str(max_w:20, rot_interval:0.1)|} $prev| $play| $next|"
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
|
|
|
@ -18,6 +18,9 @@ opts.commands = {
|
|||
email = "claws-mail",
|
||||
calculator = "qalculate-gtk",
|
||||
file_manager = "thunar",
|
||||
|
||||
-- zenity-compatible dialoger
|
||||
zenity = "yad",
|
||||
}
|
||||
|
||||
-- Device temperature levels. Used for status bar.
|
||||
|
|
14
justfile
14
justfile
|
@ -18,12 +18,12 @@ install-scripts target=(`echo $HOME` + "/.local"):
|
|||
`pwd`/scripts/{start-joshuto,withjava,startriver} \
|
||||
{{target}}/bin
|
||||
|
||||
cd scripts/randomwallpaper && zig build -Drelease-fast -p {{target}}
|
||||
cd scripts/vinput && zig build -Drelease-fast -p {{target}}
|
||||
cd scripts/playtwitch && zig build -Drelease-fast -p {{target}}
|
||||
cd scripts/openbrowser && zig build -Drelease-fast -p {{target}}
|
||||
cd scripts/prompt && gyro build -Drelease-fast -p {{target}}
|
||||
cd scripts/mzteinit && gyro build -Drelease-fast -p {{target}}
|
||||
cd scripts/randomwallpaper && zig build -Doptimize=ReleaseFast -p {{target}}
|
||||
cd scripts/vinput && zig build -Doptimize=ReleaseFast -p {{target}}
|
||||
cd scripts/playtwitch && zig build -Doptimize=ReleaseFast -p {{target}}
|
||||
cd scripts/openbrowser && zig build -Doptimize=ReleaseFast -p {{target}}
|
||||
cd scripts/prompt && gyro build -Doptimize=ReleaseFast -p {{target}}
|
||||
cd scripts/mzteinit && gyro build -Doptimize=ReleaseFast -p {{target}}
|
||||
|
||||
install-lsps-paru:
|
||||
#!/bin/sh
|
||||
|
@ -39,7 +39,7 @@ install-lsps-paru:
|
|||
|
||||
|
||||
install-mzte-nv:
|
||||
cd mzte-nv && zig build -Drelease-fast -p ~/.local
|
||||
cd mzte-nv && zig build -Doptimize=ReleaseFast -p ~/.local
|
||||
|
||||
setup-nvim-config: install-mzte-nv
|
||||
rm -rf ~/.config/nvim
|
||||
|
|
|
@ -1,14 +1,20 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn build(b: *std.build.Builder) !void {
|
||||
if (@import("builtin").os.tag == .windows)
|
||||
@compileError("no lol");
|
||||
// Standard release options allow the person running `zig build` to select
|
||||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
||||
const mode = b.standardReleaseOptions();
|
||||
const target = b.standardTargetOptions(.{});
|
||||
|
||||
const lib = b.addSharedLibrary("mzte-nv", "src/main.zig", .unversioned);
|
||||
lib.setBuildMode(mode);
|
||||
if (target.os_tag orelse @import("builtin").os.tag == .windows)
|
||||
// windows is an error in many ways
|
||||
return error.Windows;
|
||||
|
||||
const mode = b.standardOptimizeOption(.{});
|
||||
|
||||
const lib = b.addSharedLibrary(.{
|
||||
.name = "mzte-nv",
|
||||
.root_source_file = .{ .path = "src/main.zig" },
|
||||
.target = target,
|
||||
.optimize = mode,
|
||||
});
|
||||
|
||||
lib.linkLibC();
|
||||
lib.linkSystemLibrary("luajit");
|
||||
|
@ -19,8 +25,12 @@ pub fn build(b: *std.build.Builder) !void {
|
|||
b.getInstallStep().dependOn(&(try InstallStep.init(b, lib)).step);
|
||||
|
||||
// this is the install step for the lua config compiler binary
|
||||
const compiler = b.addExecutable("mzte-nv-compile", "src/compiler.zig");
|
||||
compiler.setBuildMode(mode);
|
||||
const compiler = b.addExecutable(.{
|
||||
.name = "mzte-nv-compile",
|
||||
.root_source_file = .{ .path = "src/compiler.zig" },
|
||||
.target = target,
|
||||
.optimize = mode,
|
||||
});
|
||||
|
||||
compiler.linkLibC();
|
||||
compiler.linkSystemLibrary("luajit");
|
||||
|
|
|
@ -4,5 +4,10 @@ vim.filetype.add {
|
|||
local trimmed = path:gsub(".cgt$", "")
|
||||
return vim.filetype.match { filename = trimmed, bufnr = bufnr }
|
||||
end,
|
||||
|
||||
-- nvim defaults to scheme
|
||||
rkt = "racket",
|
||||
rktd = "racket",
|
||||
rktl = "racket",
|
||||
},
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ lspc.html.setup { capabilities = caps }
|
|||
lspc.jsonls.setup { capabilities = caps }
|
||||
lspc.ocamllsp.setup { capabilities = caps }
|
||||
lspc.prosemd_lsp.setup { capabilities = caps }
|
||||
lspc.racket_langserver.setup { capabilities = caps }
|
||||
lspc.rust_analyzer.setup {
|
||||
capabilities = caps,
|
||||
settings = {
|
||||
|
|
|
@ -59,3 +59,16 @@ ls.add_snippets("json", {
|
|||
)
|
||||
),
|
||||
})
|
||||
|
||||
local racket_snippets = {
|
||||
s("lamb", {
|
||||
t [[(λ ]],
|
||||
i(1, "(args)"),
|
||||
t " ",
|
||||
i(2, "body..."),
|
||||
t ")",
|
||||
}),
|
||||
}
|
||||
|
||||
ls.add_snippets("scheme", racket_snippets)
|
||||
ls.add_snippets("racket", racket_snippets)
|
||||
|
|
22
mzte-nv/conf/lua/pluginconf/web_devicons.lua
Normal file
22
mzte-nv/conf/lua/pluginconf/web_devicons.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
local wdi = require "nvim-web-devicons"
|
||||
|
||||
local racket_icon = {
|
||||
icon = "λ",
|
||||
color = "#9f1d20",
|
||||
cterm_color = 88,
|
||||
name = "Racket",
|
||||
}
|
||||
|
||||
wdi.setup {
|
||||
override = {
|
||||
rkt = racket_icon,
|
||||
rktl = racket_icon,
|
||||
rktd = racket_icon,
|
||||
scm = {
|
||||
icon = "λ",
|
||||
color = "#3e5ba9",
|
||||
cterm_color = 61,
|
||||
name = "Scheme",
|
||||
},
|
||||
},
|
||||
}
|
|
@ -79,11 +79,14 @@ require("packer").startup(function(use)
|
|||
config = pconf "treesitter",
|
||||
}
|
||||
|
||||
use "kyazdani42/nvim-web-devicons"
|
||||
use {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
config = pconf "web_devicons",
|
||||
}
|
||||
|
||||
use {
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
requires = "kyazdani42/nvim-web-devicons",
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
requires = "nvim-tree/nvim-web-devicons",
|
||||
config = pconf "nvimtree",
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue