Compare commits

...

5 Commits

Author SHA1 Message Date
9c7adf7620
hyprland: add shortcut to screenshot full screen 2024-02-16 15:33:23 +01:00
8d4fdc5556
Make wrapper for each symlink
idk why i have to do this but the name of the executable seems to be
directly encoded into the produced binary
2024-02-15 20:02:26 +01:00
b36ab9ecf5
Add atool to system packages 2024-02-15 19:51:52 +01:00
b30056ca44
Add wrapped atool with every archiver 2024-02-15 19:48:52 +01:00
6a727b61d5
fix option 2024-02-15 16:26:41 +01:00
5 changed files with 59 additions and 2 deletions

View File

@ -231,6 +231,8 @@ in
# "$mod, S, togglespecialworkspace, magic"
# "$mod SHIFT, S, movetoworkspace, special:magic"
"$mod SHIFT, S, exec, ${grimblast} copy area"
"$mod CONTROL SHIFT, S, exec, ${grimblast} copy output"
# Scroll through existing workspaces with mod + scroll
"$mod, mouse_down, workspace, e+1"

View File

@ -0,0 +1,37 @@
{ lib,
atool,
makeBinaryWrapper,
stdenvNoCC,
lzip,
plzip,
lzop,
lzma,
zip,
unzip,
arj,
rpm,
cpio,
p7zip,
unrar,
lha,
unfree ? false }:
let
wrappedPath = lib.makeBinPath ([lzip plzip lzop lzma zip unzip arj rpm cpio p7zip] ++ lib.optionals unfree [unrar lha]);
in
stdenvNoCC.mkDerivation {
name = "atool-wrapped";
phases = [ "installPhase" ];
nativeBuildInputs = [ makeBinaryWrapper ];
src = ./.;
installPhase = ''
# symlinking them doesn't work for some reason so i have to build multiple
for i in atool acat adiff als apack arepack aunpack ; do
makeBinaryWrapper "${atool}/bin/$i" "$out/bin/$i" \
--inherit-argv0 --prefix PATH : "${wrappedPath}"
done
# i have no idea if this is the "right" way to do this
mkdir -p "$out/share"
ln -s "${atool}/share/man" "$out/share/man"
'';
}

16
pkgs/cofi/shell.nix Normal file
View File

@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> {} }:
let
rofi-dmenu-wrapped = pkgs.writeShellScript "rofi-dmenu" ''
exec "${pkgs.rofi-wayland}/bin/rofi" -dmenu "$@"
'';
in
pkgs.mkShell {
shellHook = ''
export COMMA_PICKER="${rofi-dmenu-wrapped}"
'';
nativeBuildInputs = with pkgs; [
rofi-wayland
libnotify
comma
];
}

View File

@ -6,4 +6,5 @@ in
{
google-fonts = callPackage ./google-fonts { };
wm-helpers = callPackage ./wm-helpers { };
atool = callPackage ./atool-wrapped { };
}

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, options, inputs, ...}@args:
{ config, lib, pkgs, options, inputs, outputs, ...}@args:
let
cfg = config.nixfiles.profile.base;
in
@ -17,7 +17,7 @@ in
# Enable system Nix configuration
nix.enable = lib.mkDefault true;
};
nixfiles.binfmt.enable = true;
nixfiles.binfmt.enable = lib.mkDefault true;
# locale settings
i18n = {
@ -84,6 +84,7 @@ in
# etc
neofetch
outputs.packages."${pkgs.system}".atool
];
programs.neovim.defaultEditor = lib.mkDefault true;