Compare commits
5 Commits
c279e58c69
...
9c7adf7620
Author | SHA1 | Date | |
---|---|---|---|
9c7adf7620 | |||
8d4fdc5556 | |||
b36ab9ecf5 | |||
b30056ca44 | |||
6a727b61d5 |
@ -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"
|
||||
|
37
pkgs/atool-wrapped/default.nix
Normal file
37
pkgs/atool-wrapped/default.nix
Normal 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
16
pkgs/cofi/shell.nix
Normal 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
|
||||
];
|
||||
}
|
@ -6,4 +6,5 @@ in
|
||||
{
|
||||
google-fonts = callPackage ./google-fonts { };
|
||||
wm-helpers = callPackage ./wm-helpers { };
|
||||
atool = callPackage ./atool-wrapped { };
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user