mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 20:20: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, RETURN, exec, [workspace 4] $terminal
|
||||||
bind = $mainMod ctrl, RETURN, exec, $terminal
|
bind = $mainMod ctrl, RETURN, exec, $terminal
|
||||||
bind = $mainMod L_SHIFT, P, exec, $menu
|
bind = $mainMod L_SHIFT, P, exec, $menu
|
||||||
|
bind = $mainMod, e, exec, [float; size 40% 40%; workspace special:magic] $terminal yazi
|
||||||
|
|
||||||
|
|
||||||
# Workspace binded apps
|
# Workspace binded apps
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
windowrule = animation:disabled, class:^(feh)$
|
windowrule = animation:gnomed, class:^(feh)$, title:^(screenshot)$
|
||||||
windowrule = fullscreen, class:^(feh)$
|
windowrule = fullscreen, class:^(feh)$, title:^(screenshot)$
|
||||||
|
|||||||
@@ -31,30 +31,21 @@ ueberzug_offset = [ 0, 0, 0, 0 ]
|
|||||||
|
|
||||||
[opener]
|
[opener]
|
||||||
edit = [
|
edit = [
|
||||||
{ run = '${EDITOR:-vi} "$@"', desc = "$EDITOR", block = true, for = "unix" },
|
{ run = 'nvim "$@"', desc = "nvim", block = true, for = "unix" },
|
||||||
{ run = 'code %*', orphan = true, desc = "code", for = "windows" },
|
|
||||||
{ run = 'code -w %*', block = true, desc = "code (block)", for = "windows" },
|
|
||||||
]
|
]
|
||||||
open = [
|
open = [
|
||||||
{ run = 'xdg-open "$1"', desc = "Open", for = "linux" },
|
{ 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" },
|
|
||||||
]
|
]
|
||||||
reveal = [
|
reveal = [
|
||||||
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
|
{ 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" },
|
{ run = '''clear; exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" },
|
||||||
]
|
]
|
||||||
extract = [
|
extract = [
|
||||||
{ run = 'ya pub extract --list "$@"', desc = "Extract here", for = "unix" },
|
{ run = 'ya pub extract --list "$@"', desc = "Extract here", for = "unix" },
|
||||||
{ run = 'ya pub extract --list %*', desc = "Extract here", for = "windows" },
|
|
||||||
]
|
]
|
||||||
play = [
|
play = [
|
||||||
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
|
{ 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" },
|
{ 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"
|
grim -g "${x},${y} ${width}x${height}" "$tmp_path"
|
||||||
;;
|
;;
|
||||||
region)
|
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
|
sleep 0.5
|
||||||
feh_pid=$(pgrep feh)
|
feh_pid=$(pgrep feh)
|
||||||
grim -g "$(slurp)" "$tmp_path"
|
grim -g "$(slurp)" "$tmp_path"
|
||||||
@@ -83,7 +83,7 @@ region)
|
|||||||
kill -9 "$feh_pid"
|
kill -9 "$feh_pid"
|
||||||
;;
|
;;
|
||||||
color)
|
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
|
sleep 0.5
|
||||||
feh_pid=$(pgrep feh)
|
feh_pid=$(pgrep feh)
|
||||||
position=$(slurp -p)
|
position=$(slurp -p)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/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
|
if [[ -n $dir ]]; then
|
||||||
echo "You choose $dir"
|
echo "You choose $dir"
|
||||||
|
|||||||
Reference in New Issue
Block a user