diff --git a/private_dot_config/hypr/hyprland/binds/open_apps.conf b/private_dot_config/hypr/hyprland/binds/open_apps.conf index fb30de6..67e791d 100644 --- a/private_dot_config/hypr/hyprland/binds/open_apps.conf +++ b/private_dot_config/hypr/hyprland/binds/open_apps.conf @@ -3,6 +3,7 @@ bind = $mainMod, RETURN, exec, [workspace 4] $terminal bind = $mainMod ctrl, RETURN, exec, $terminal bind = $mainMod L_SHIFT, P, exec, $menu +bind = $mainMod, e, exec, [float; size 40% 40%; workspace special:magic] $terminal yazi # Workspace binded apps diff --git a/private_dot_config/hypr/hyprland/rules/feh.conf b/private_dot_config/hypr/hyprland/rules/feh.conf index 29bbbca..23221cc 100644 --- a/private_dot_config/hypr/hyprland/rules/feh.conf +++ b/private_dot_config/hypr/hyprland/rules/feh.conf @@ -1,2 +1,2 @@ -windowrule = animation:disabled, class:^(feh)$ -windowrule = fullscreen, class:^(feh)$ +windowrule = animation:gnomed, class:^(feh)$, title:^(screenshot)$ +windowrule = fullscreen, class:^(feh)$, title:^(screenshot)$ diff --git a/private_dot_config/yazi/yazi.toml b/private_dot_config/yazi/yazi.toml index c54c9d8..b75a713 100644 --- a/private_dot_config/yazi/yazi.toml +++ b/private_dot_config/yazi/yazi.toml @@ -31,30 +31,21 @@ ueberzug_offset = [ 0, 0, 0, 0 ] [opener] edit = [ - { run = '${EDITOR:-vi} "$@"', desc = "$EDITOR", block = true, for = "unix" }, - { run = 'code %*', orphan = true, desc = "code", for = "windows" }, - { run = 'code -w %*', block = true, desc = "code (block)", for = "windows" }, + { run = 'nvim "$@"', desc = "nvim", block = true, for = "unix" }, ] open = [ - { run = 'xdg-open "$1"', desc = "Open", for = "linux" }, - { run = 'open "$@"', desc = "Open", for = "macos" }, - { run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" }, - { run = 'termux-open "$1"', desc = "Open", for = "android" }, + { run = 'xdg-open "$1"', desc = "Open", for = "linux" }, + ] reveal = [ { run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" }, - { run = 'open -R "$1"', desc = "Reveal", for = "macos" }, - { run = 'explorer /select,"%1"', orphan = true, desc = "Reveal", for = "windows" }, - { run = 'termux-open "$(dirname "$1")"', desc = "Reveal", for = "android" }, { run = '''clear; exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" }, ] extract = [ { run = 'ya pub extract --list "$@"', desc = "Extract here", for = "unix" }, - { run = 'ya pub extract --list %*', desc = "Extract here", for = "windows" }, ] play = [ { run = 'mpv --force-window "$@"', orphan = true, for = "unix" }, - { run = 'mpv --force-window %*', orphan = true, for = "windows" }, { run = '''mediainfo "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show media info", for = "unix" }, ] diff --git a/private_dot_local/bin/executable_screenshots.sh b/private_dot_local/bin/executable_screenshots.sh index ac39565..b482ded 100644 --- a/private_dot_local/bin/executable_screenshots.sh +++ b/private_dot_local/bin/executable_screenshots.sh @@ -75,7 +75,7 @@ window) grim -g "${x},${y} ${width}x${height}" "$tmp_path" ;; region) - grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$tmp_path" && feh --fullscreen "$tmp_path" & + grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$tmp_path" && feh --title screenshot --fullscreen "$tmp_path" & sleep 0.5 feh_pid=$(pgrep feh) grim -g "$(slurp)" "$tmp_path" @@ -83,7 +83,7 @@ region) kill -9 "$feh_pid" ;; color) - grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$tmp_path" && feh --fullscreen "$tmp_path" & + grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$tmp_path" && feh --title screenshot --fullscreen "$tmp_path" & sleep 0.5 feh_pid=$(pgrep feh) position=$(slurp -p) diff --git a/private_dot_local/bin/executable_start_coding.sh b/private_dot_local/bin/executable_start_coding.sh index 8b0c837..dd4b89f 100644 --- a/private_dot_local/bin/executable_start_coding.sh +++ b/private_dot_local/bin/executable_start_coding.sh @@ -1,6 +1,7 @@ #!/bin/bash -dir=$(find ~/Dokumenty/kodowanie/ -maxdepth 2 -type d ! -path '.*' | fzf) +dir=$(find ~/Dokumenty/kodowanie/ -maxdepth 2 -type d ! -name '.*' | fzf) +export EDITOR="nvim" if [[ -n $dir ]]; then echo "You choose $dir"