diff options
| -rw-r--r-- | hypr/hyprland.conf | 4 | ||||
| -rw-r--r-- | lf/lfrc | 26 |
2 files changed, 27 insertions, 3 deletions
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index e483049..c539b21 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -201,7 +201,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 @@ -235,7 +235,7 @@ windowrulev2 = float on, match:title ^(menu)$ windowrulev2 = move cursor -50% -50%, match:class ^(yabridge-host.exe.so)$, match:title ^(menu)$ windowrulev2 = workspace special:easyeffects silent, match: class ^(com\.github\.wwmm\.easyeffects)$ # Fix brave xray menus -windowrulev2 = xray 0, match:class ^(\s*), match:title ^(\s*)$ +windowrule = xray 0, match:class ^(\s*), match:title ^(\s*)$ # Center floating XWayland windows windowrule = center on, match:xwayland on, match:class negative:^(steam|REAPER)$ # Make Steam Big Picture Mode fullscreen @@ -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 }} |
