From 5d1d58b942f3dabdbf465e9e30641a887e00de65 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sat, 23 Mar 2024 03:20:49 -0300 Subject: [PATCH] home-environments: radio: Fix lf configuration to work properly on wayland :) --- home-environments/radio.scm | 13 +++++-------- home-environments/radio/files/.config/lf/lfrc | 11 ++++++----- .../files/.local/share/applications/kak.desktop | 7 +++++++ 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 home-environments/radio/files/.local/share/applications/kak.desktop diff --git a/home-environments/radio.scm b/home-environments/radio.scm index 854a61b..96a4494 100644 --- a/home-environments/radio.scm +++ b/home-environments/radio.scm @@ -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") diff --git a/home-environments/radio/files/.config/lf/lfrc b/home-environments/radio/files/.config/lf/lfrc index 6f160f2..b555baa 100644 --- a/home-environments/radio/files/.config/lf/lfrc +++ b/home-environments/radio/files/.config/lf/lfrc @@ -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 open diff --git a/home-environments/radio/files/.local/share/applications/kak.desktop b/home-environments/radio/files/.local/share/applications/kak.desktop new file mode 100644 index 0000000..b214229 --- /dev/null +++ b/home-environments/radio/files/.local/share/applications/kak.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=kak +Exec=foot -e kak %f +Categories=Other; +NoDisplay=true +Terminal=false