mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +02:00
Update .config/hypr/hyprland/binds/open_apps.conf
Update .config/hypr/hyprland/rules/feh.conf Update .config/yazi/yazi.toml Update .local/bin/screenshots.sh Update .local/bin/start_coding.sh
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)$
|
||||
|
||||
@@ -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" },
|
||||
]
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user