home-environments: radio: Fix lf configuration to work properly on wayland :)

impermanence
Luis Guilherme Coelho 2024-03-23 03:20:49 -03:00
parent 600eb74830
commit 5d1d58b942
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
3 changed files with 18 additions and 13 deletions

View File

@ -14,8 +14,7 @@
#|C|# #:use-module (gnu packages c)
#:use-module (gnu packages calendar)
#:use-module (gnu packages curl)
#|D|# #:use-module (gnu packages disk)
#:use-module (gnu packages databases)
#|D|# #:use-module (gnu packages databases)
#|F|# #:use-module (gnu packages file)
#:use-module (gnu packages fonts)
#:use-module (gnu packages freedesktop)
@ -68,6 +67,7 @@
#|U|# #:use-module (radix utils)
#|Radix packages|#
#|D|# #:use-module (radix packages disk)
#|I|# #:use-module (radix packages image-viewers)
#|F|# #:use-module (radix packages fonts)
#|S|# #:use-module (radix packages seninha)
@ -103,11 +103,11 @@
#|gnupg |# gnupg pinentry
#|guile-xyz |# haunt
#|image |# grim slurp
#|image-viewers |# imv ueberzug++
#|image-viewers |# chafa imv
#|linux |# wireplumber
#|math |# libqalculate
#|password-utils|# keepassxc
#|pdf |# sioyek
#|pdf |# poppler sioyek
#|pulseaudio |# pamixer pavucontrol
#|scheme |# sicp
#|seninha |# fmutils
@ -118,7 +118,7 @@
#|tor-browsers |# mullvadbrowser
#|toys |# wayneko
#|vesion-control|# git
#|video |# ffmpeg mpv yt-dlp
#|video |# ffmpeg ffmpegthumbnailer mpv yt-dlp
#|wm |# fnott rivercarro swww waybar
#|xdisorg |# fuzzel wl-clipboard wlsunset
#|zig-xyz |# river))
@ -254,9 +254,6 @@
--mode 1920x1080 ~
--scale 0.711x0.711"))
#|Display images in lf using ueberzug|#
("lf" . "$HOME/.local/bin/lf/lfrun")
#|Listen to libre music on vern's radio|#
("radio" . "https://radio.vern.cc")

View File

@ -21,9 +21,9 @@ set scrolloff 10
# Basic Settings
set preview true
set shell dash
set sixel true
set shell /bin/sh
set previewer ~/.local/bin/lf/preview
set cleaner ~/.local/bin/lf/cleaner
set drawbox true
set info time
@ -50,8 +50,9 @@ cmd send ${{
$(for f in $fx; do readlink -f $f; done)
}}
ZERO="~/projects/code/scm/zero"
# Open lf config
cmd config $$EDITOR "~/projects/code/scm/radix/files/lf/lfrc"
cmd config $$EDITOR "$ZERO/home-environments/radio/files/.config/lf/lfrc"
# mkdir with :mkdir
cmd mkdir %mkdir -- "$@"
@ -71,7 +72,7 @@ cmd chmod %chmod "$@" && echo "Mode bits changed" & lf -remote reload
cmd yank-basename $basename -a -- $fx | head -c-1 | xclip --clipboard
# Upload selected files to 0x0 and yank it's path and link
cmd share %printf "$fx\n $(curl -F file="@$fx" http://0x0.st)" | xsel -b && echo "File shared"
cmd share %printf {for f in $fx; do echo "$f\n $(curl -F file=@$f http://0x0.st)" } | wl-copy && echo "File shared"
# Rotate file
cmd rotate-file %{{
@ -161,7 +162,7 @@ map b &setsid -f $BROWSER "$f"
# Basic functions
mao l cd "$f"
map c copy && echo "$fx" | xsel -b
map c copy && echo "$fx" | wl-copy
map d delete
map x cut
map <enter> open

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=kak
Exec=foot -e kak %f
Categories=Other;
NoDisplay=true
Terminal=false