Ranger dnd optimization + qb filepicker
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let myCbxScript = ''
|
||||
# TODO fix this for wayland
|
||||
#!/bin/sh
|
||||
if [ "$#" -le "2" ]; then
|
||||
if [ "$1" = "copy" -o "$1" = "cut" ]; then
|
||||
@@ -14,10 +15,13 @@ in
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ranger
|
||||
xdragon
|
||||
ripdrag
|
||||
highlight
|
||||
(pkgs.writeScriptBin "cbx" myCbxScript)
|
||||
];
|
||||
xdg.mimeApps.associations.added = {
|
||||
"inode/directory" = "ranger.desktop";
|
||||
};
|
||||
home.file.".config/ranger/rc.conf".source = ./rc.conf;
|
||||
home.file.".config/ranger/rifle.conf".source = ./rifle.conf;
|
||||
home.file.".config/ranger/scope.sh" = {
|
||||
|
@@ -503,6 +503,8 @@ map ud uncut
|
||||
map da cut mode=add
|
||||
map dr cut mode=remove
|
||||
map dt cut mode=toggle
|
||||
map do shell -w ripdrag -x %s
|
||||
map dO shell -w ripdrag -x *
|
||||
|
||||
map yy chain copy; shell cbx copy %s
|
||||
map uy uncut
|
||||
|
Reference in New Issue
Block a user