mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Ranger dnd optimization + qb filepicker
This commit is contained in:
parent
4e86fb971a
commit
49b0f04fda
4 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue