diff options
-rw-r--r-- | .config/hypr/hyprland.conf | 10 | ||||
-rwxr-xr-x | .config/lf/cleaner | 4 | ||||
-rw-r--r-- | .config/lf/icons | 77 | ||||
-rw-r--r-- | .config/lf/lfrc | 25 | ||||
-rwxr-xr-x | .config/lf/scope | 13 | ||||
-rw-r--r-- | .config/waybar/config | 2 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 17 | ||||
-rw-r--r-- | dependencies.txt | 7 |
8 files changed, 17 insertions, 138 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 709dfc0..0a7efdd 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -14,7 +14,7 @@ exec-once = dunst exec-once = hypridle exec-once = gpg-agent --daemon exec-once = sing-box run -c /mnt/ssd/settings/config.json -exec-once = sleep 2 && waybar +exec-once = waybar env = QT_SCREEN_SCALE_FACTORS,1;1 env = XCURSOR_SIZE,24 @@ -119,10 +119,6 @@ gestures { workspace_swipe = false } -xwayland { - force_zero_scaling = true -} - $mainMod = SUPER # Sets "Windows" key as main modifier bind = $mainMod, Return, exec, $terminal @@ -198,3 +194,7 @@ workspace = 1, monitor:DP-2 workspace = 2, monitor:DP-2 workspace = 3, monitor:DP-3 workspace = 4, monitor:DP-3 + +ecosystem { + no_update_news = true +} diff --git a/.config/lf/cleaner b/.config/lf/cleaner deleted file mode 100755 index 1227249..0000000 --- a/.config/lf/cleaner +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -#rm ~/.cache/lf/* -f -exec kitty +kitten icat --clear --stdin no --silent --transfer-mode file </dev/null >/dev/tty - diff --git a/.config/lf/icons b/.config/lf/icons deleted file mode 100644 index aad068c..0000000 --- a/.config/lf/icons +++ /dev/null @@ -1,77 +0,0 @@ -di 📁 -fi 📃 -tw 🤝 -ow 📂 -ln ⛓ -or ❌ -ex 🎯 -*.txt ✍ -*.mom ✍ -*.me ✍ -*.ms ✍ -*.avif 🖼 -*.png 🖼 -*.webp 🖼 -*.ico 🖼 -*.jpg 📸 -*.jpe 📸 -*.jpeg 📸 -*.gif 🖼 -*.svg 🗺 -*.tif 🖼 -*.tiff 🖼 -*.xcf 🖌 -*.html 🌎 -*.xml 📰 -*.gpg 🔒 -*.css 🎨 -*.pdf 📚 -*.djvu 📚 -*.epub 📚 -*.csv 📓 -*.xlsx 📓 -*.tex 📜 -*.md 📘 -*.r 📊 -*.R 📊 -*.rmd 📊 -*.Rmd 📊 -*.m 📊 -*.mp3 🎵 -*.opus 🎵 -*.ogg 🎵 -*.m4a 🎵 -*.flac 🎼 -*.wav 🎼 -*.mkv 🎥 -*.mp4 🎥 -*.webm 🎥 -*.mpeg 🎥 -*.avi 🎥 -*.mov 🎥 -*.mpg 🎥 -*.wmv 🎥 -*.m4b 🎥 -*.flv 🎥 -*.zip 📦 -*.rar 📦 -*.7z 📦 -*.tar 📦 -*.z64 🎮 -*.v64 🎮 -*.n64 🎮 -*.gba 🎮 -*.nes 🎮 -*.gdi 🎮 -*.1 ℹ -*.nfo ℹ -*.info ℹ -*.log 📙 -*.iso 📀 -*.img 📀 -*.bib 🎓 -*.ged 👪 -*.part 💔 -*.torrent 🔽 -*.jar ♨ -*.java ♨ diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index 56ca258..0000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,25 +0,0 @@ -set ifs "\n" -set icons -set sixel true -set cleaner ~/.config/lf/cleaner -set previewer ~/.config/lf/scope - -cmd open ${{ - case $(file --mime-type "$(readlink -f $f)" -b) in - text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;; - video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; - audio/*|video/x-ms-asf) mpv --audio-display=no $f ;; - *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; - esac -}} - -cmd delete ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - printf "%s\n\t" "$fx" - printf "delete?[y/N]" - read ans - [ $ans = "y" ] && rm -rf -- $fx -}} - -map D delete diff --git a/.config/lf/scope b/.config/lf/scope deleted file mode 100755 index b79c4b6..0000000 --- a/.config/lf/scope +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -case "$(file -Lb --mime-type -- "$1")" in - image/*) - chafa -f sixel -s "$2x$3" --animate off --polite on "$1" - exit 1 - ;; - text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4-2))" -f "$1" ;; - audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;; - video/*) - CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)" - [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0 - chafa -f sixel -s "$2x$3" --animate off --polite on "$CACHE" -esac diff --git a/.config/waybar/config b/.config/waybar/config index acd3142..6e43e9f 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -6,7 +6,7 @@ "reload_style_on_change": true, "modules-left": ["hyprland/workspaces", "hyprland/window"], "modules-center": [], - "modules-right": ["custom/news", "custom/packages", "custom/memory", "custom/forecast","custom/mailbox","custom/nettraf","custom/microphone","custom/volume","custom/clock","custom/internet","tray"], + "modules-right": ["custom/packages", "custom/news", "custom/memory", "custom/forecast","custom/mailbox","custom/nettraf","custom/microphone","custom/volume","custom/clock","custom/internet","tray"], "hyprland/window": { "format": "{}", diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index b5ebdc8..fbf6d01 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -38,16 +38,15 @@ _comp_options+=(globdots) # Include hidden files. source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" -lfcd () { - tmp="$(mktemp -uq)" - trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT - lf -last-dir-path="$tmp" "$@" - if [ -f "$tmp" ]; then - dir="$(cat "$tmp")" - [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" - fi +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" } -bindkey -s '^o' '^ulfcd\n' +bindkey -s '^o' '^uy\n' unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then diff --git a/dependencies.txt b/dependencies.txt index 25e6d16..bb6f7b0 100644 --- a/dependencies.txt +++ b/dependencies.txt @@ -30,9 +30,9 @@ btop pulsemixer less -# lf deps -lf -ffmpegthumbnailer +# yazi deps +yazi +fzf mediainfo bat chafa @@ -47,7 +47,6 @@ slurp zsh zsh-autosuggestions # zsh fzf-tab dep -fzf mpv yt-dlp unzip |