random config & script changes

This commit is contained in:
LordMZTE 2024-05-17 23:30:21 +02:00
parent 4187a0a57f
commit ccac84678e
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
5 changed files with 14 additions and 8 deletions

View file

@ -13,7 +13,7 @@ input {
general {
gaps_in = 5
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.inactive_border = rgba(<% opt.catppuccin.crust %>aa)

View file

@ -40,7 +40,7 @@ $env.config = {
# Run-in-Background function
def & [...argv] {
# TODO: Use a plugin to track number of running jobs
systemd-run --user ...$argv
systemd-run --user --same-dir ...$argv
}
# 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 la [path: glob = "."] { ls -a $path | sort-by type }
alias nv = nvim
alias nvide = neovide
alias nvide = & neovide "--no-fork"

View file

@ -1,9 +1,11 @@
local opts = {}
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 = "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 = "p", label = "shutdown", cmd = { "systemctl", "poweroff" }, quit = true },
{ key = "r", label = "reboot", cmd = { "systemctl", "reboot" }, quit = true },

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1715266358,
"narHash": "sha256-doPgfj+7FFe9rfzWo1siAV2mVCasW+Bh8I1cToAXEE4=",
"lastModified": 1715787315,
"narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f1010e0469db743d14519a1efd37e23f8513d714",
"rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5",
"type": "github"
},
"original": {

View file

@ -88,7 +88,9 @@ fn tryMain() !void {
}
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;
@ -137,6 +139,8 @@ fn tryMain() !void {
});
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, .{});
defer entries_config_file.close();