dmenu, dwm, new alias and manpages fix

This commit is contained in:
Maddie H 2023-07-20 12:02:37 +01:00
parent 235566c928
commit a22d49d481
Signed by: maddie
GPG Key ID: C296DE8C9053683F
6 changed files with 27 additions and 13 deletions

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1689281837, "lastModified": 1689825754,
"narHash": "sha256-msgwgot2/hxXzlpYltIZ7boAqBkN8XejNOhBJ07q3FY=", "narHash": "sha256-u3W3WGO3BA63nb+CeNLBajbJ/sl8tDXBHKxxeTOCxfo=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "c806a73609e77f0c446fdad5d3ea6ca3b7ae6e5f", "rev": "531c3de7eccf95155828e0cd9f18c25e7f937777",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -27,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1689362769, "lastModified": 1689802112,
"narHash": "sha256-5V7Z7T9019pGsFnYH6va5h6Wveq8FKmXa/xLfj0DhNI=", "narHash": "sha256-Se7oHV/L0dHTQ4xp8MvYafaVdkSzF04Hx5NeloUYHtM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c1cdce3d89741d402d8fd2c93e3d2643ff85b053", "rev": "0cb3ac57fca6b52c42e4c0f560185540ae1dfb6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -42,11 +42,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1689352711, "lastModified": 1689752456,
"narHash": "sha256-xWYFt8vWnstDIVsZ26y9mf6h3714lVmXd6l+hTQz6tw=", "narHash": "sha256-VOChdECcEI8ixz8QY+YC4JaNEFwQd1V8bA0G4B28Ki0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2047c642ce0f75307e8a0f2ec94715218c481184", "rev": "7f256d7da238cb627ef189d56ed590739f42f13b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -25,6 +25,7 @@
# System shortcuts # System shortcuts
heif-convert-dir = "for file in *.heic; do heif-convert -q 100 $file \${file/%.heic/.jpg}; done"; heif-convert-dir = "for file in *.heic; do heif-convert -q 100 $file \${file/%.heic/.jpg}; done";
unfuck-wifi = "doas systemctl restart wpa_supplicant.service"; unfuck-wifi = "doas systemctl restart wpa_supplicant.service";
search = "f=$(fzf) && cd \"$f\" 2>/dev/null || xdg-open \"$f\" >/dev/null 2>&1";
cdt = "cd $(mktemp -d)"; cdt = "cd $(mktemp -d)";
sx = "startx ~/.config/x11/xinitrc"; sx = "startx ~/.config/x11/xinitrc";
sdn = "doas shutdown -h now"; sdn = "doas shutdown -h now";

3
maddie/nixos/dmenu/dmenu-code Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
st -e 'zsh' -c 'cd ~/Documents/Code/"$(exa -lh --icons ~/Documents/Code | tail -n +2 | dmenu -l 30 | sed "s|.* ||")"; zsh'

2
maddie/nixos/dmenu/dmenu-man Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
man -t $(man -k . | dmenu -l 30 | awk '{print $1}') | ps2pdf - - | zathura -

View File

@ -6,8 +6,8 @@
domain = "git.spyhoodle.me"; domain = "git.spyhoodle.me";
owner = "maddie"; owner = "maddie";
repo = "dwm"; repo = "dwm";
rev = "dca69fedae1e29d946ece4c8325907732015f83f"; rev = "a06076bfb9324af6c4122d9cc5b0904778013350";
sha256 = "sha256-OezFDY2Gxu+qqT3hdGb+g+YyqV+8R8gSN3ux5+QvL4o="; sha256 = "sha256-KGqbff/i9fG0B/gMrdnwevRElL6r8lbYCloWp/NPx+0=";
}; };
}); });
st = prev.st.overrideAttrs (oldAttrs: { st = prev.st.overrideAttrs (oldAttrs: {
@ -25,8 +25,8 @@
domain = "git.spyhoodle.me"; domain = "git.spyhoodle.me";
owner = "maddie"; owner = "maddie";
repo = "dmenu"; repo = "dmenu";
rev = "82156146b3f3ab720ac752a953b952d638e1f935"; rev = "1b12798a3762807697227e9e40be29408df59ee9";
sha256 = "sha256-L6aqP7wmegl6Jv4ytMw/j1FwH5lXv8QjWOY5mHotkxI="; sha256 = "sha256-wnVNqNCUpJTqHXfst9DiBaq/gzVwhlq07VM9CixczRc=";
}; };
}); });
slstatus = prev.slstatus.overrideAttrs (oldAttrs: { slstatus = prev.slstatus.overrideAttrs (oldAttrs: {

8
systems/mdesktop/man.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, ... }:
{
documentation.man = {
enable = true;
generateCaches = true;
};
}