mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-09-30 14:38:59 +02:00
random config & script changes
This commit is contained in:
parent
4187a0a57f
commit
ccac84678e
5 changed files with 14 additions and 8 deletions
|
@ -13,7 +13,7 @@ input {
|
||||||
general {
|
general {
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
gaps_out = 20
|
gaps_out = 20
|
||||||
border_size = 2.5
|
border_size = 2
|
||||||
col.active_border = rgba(<% opt.catppuccin.red %>ee) rgba(<% opt.catppuccin.green %>ee) 45deg
|
col.active_border = rgba(<% opt.catppuccin.red %>ee) rgba(<% opt.catppuccin.green %>ee) 45deg
|
||||||
col.inactive_border = rgba(<% opt.catppuccin.crust %>aa)
|
col.inactive_border = rgba(<% opt.catppuccin.crust %>aa)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ $env.config = {
|
||||||
# Run-in-Background function
|
# Run-in-Background function
|
||||||
def & [...argv] {
|
def & [...argv] {
|
||||||
# TODO: Use a plugin to track number of running jobs
|
# TODO: Use a plugin to track number of running jobs
|
||||||
systemd-run --user ...$argv
|
systemd-run --user --same-dir ...$argv
|
||||||
}
|
}
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
@ -48,4 +48,4 @@ def l [path: glob = "."] { ls $path | sort-by type }
|
||||||
def ll [path: glob = "."] { ls -la $path | sort-by type }
|
def ll [path: glob = "."] { ls -la $path | sort-by type }
|
||||||
def la [path: glob = "."] { ls -a $path | sort-by type }
|
def la [path: glob = "."] { ls -a $path | sort-by type }
|
||||||
alias nv = nvim
|
alias nv = nvim
|
||||||
alias nvide = neovide
|
alias nvide = & neovide "--no-fork"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
local opts = {}
|
local opts = {}
|
||||||
|
|
||||||
opts.mzteinit_entries = {
|
opts.mzteinit_entries = {
|
||||||
|
-- TODO: the `which` invocations here are a workaround in case the relevant binaries
|
||||||
|
-- are installed in a directory that mzteinit adds to $PATH, which it currently doesn't handle.
|
||||||
{ key = "z", label = "river", cmd = { cg.opt.system "which mzteriver" } },
|
{ key = "z", label = "river", cmd = { cg.opt.system "which mzteriver" } },
|
||||||
{ key = "h", label = "hyprland", cmd = { "Hyprland" } },
|
{ key = "h", label = "hyprland", cmd = { "Hyprland" } },
|
||||||
{ key = "s", label = "shell", cmd = { "nu" } },
|
{ key = "s", label = "shell", cmd = { cg.opt.system "which nu" } },
|
||||||
{ key = "l", label = "logout", cmd = { "!quit" } },
|
{ key = "l", label = "logout", cmd = { "!quit" } },
|
||||||
{ key = "p", label = "shutdown", cmd = { "systemctl", "poweroff" }, quit = true },
|
{ key = "p", label = "shutdown", cmd = { "systemctl", "poweroff" }, quit = true },
|
||||||
{ key = "r", label = "reboot", cmd = { "systemctl", "reboot" }, quit = true },
|
{ key = "r", label = "reboot", cmd = { "systemctl", "reboot" }, quit = true },
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715266358,
|
"lastModified": 1715787315,
|
||||||
"narHash": "sha256-doPgfj+7FFe9rfzWo1siAV2mVCasW+Bh8I1cToAXEE4=",
|
"narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f1010e0469db743d14519a1efd37e23f8513d714",
|
"rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -88,7 +88,9 @@ fn tryMain() !void {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (try env.populateEnvironment(&env_map.data)) {
|
if (try env.populateEnvironment(&env_map.data)) {
|
||||||
try env.populateSysdaemonEnvironment(&env_map.data);
|
env.populateSysdaemonEnvironment(&env_map.data) catch |e| {
|
||||||
|
std.log.err("failed to set sysdaemon environment: {}", .{e});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var srv: ?Server = null;
|
var srv: ?Server = null;
|
||||||
|
@ -137,6 +139,8 @@ fn tryMain() !void {
|
||||||
});
|
});
|
||||||
defer alloc.free(entries_config_path);
|
defer alloc.free(entries_config_path);
|
||||||
|
|
||||||
|
std.log.info("entries file: {s}", .{entries_config_path});
|
||||||
|
|
||||||
var entries_config_file = try std.fs.cwd().openFile(entries_config_path, .{});
|
var entries_config_file = try std.fs.cwd().openFile(entries_config_path, .{});
|
||||||
defer entries_config_file.close();
|
defer entries_config_file.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue