summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hypr/hyprland.conf2
-rw-r--r--lf/lfrc26
2 files changed, 26 insertions, 2 deletions
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index af836be..af37cd4 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -202,7 +202,7 @@ plugin {
}
hyprscrolling {
- fullscreen_on_one_column = true
+ fullscreen_on_one_column = false
column_width = 0.5
explicit_column_widths = 0.25, 0.333, 0.5, 0.667, 0.75, 1.0
focus_fit_method = 1
diff --git a/lf/lfrc b/lf/lfrc
index bc18f79..cbe77a4 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -2,7 +2,7 @@ set ratios 1:2:3
set previewer ~/.config/lf/previewer
set cleaner ~/.config/lf/cleaner
# Basic Settings
-set sixel true
+#set sixel true
set preview true
set drawbox false
set icons true
@@ -30,6 +30,30 @@ cmd open ${{
esac
}}
+# Override paste command
+cmd paste ${{
+ while read -r line; do
+ set -- "$@" "$line"
+ done < ~/.local/share/lf/files
+ mode="$1"
+ shift
+ case "$mode" in
+ copy)
+ echo "lf-paste in ${PWD}: rsync -av --backup -- $@ ." >> ~/.cache/lf.log
+ rsync -av --backup --progress -- "$@" . |
+ stdbuf -i0 -o0 -e0 tr '\r' '\n' |
+ while IFS= read -r line; do
+ lf -remote "send $id echo $line"
+ done
+ ;;
+ move)
+ echo "lf-paste in ${PWD}: mv -n -- $@ ." >> ~/.cache/lf.log
+ mv -n -- "$@" .;;
+ esac
+ rm ~/.local/share/lf/files
+ lf -remote "send clear"
+}}
+
cmd execute ${{ exec "$f" }}
cmd vimv ${{ exec vimv }}