From 54d192d8896dc56ef59576b62ad3f654ee3a7e81 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks <rudis@sitosis.com> Date: Wed, 26 Mar 2025 17:06:12 -0500 Subject: [PATCH] yash and sway tweaks --- sway/config.d/03-keybindings | 2 +- sway/config.d/04-windowcfg | 7 ++----- yash/_yashrc | 1 - yash/fzy-hist.sh | 15 --------------- 4 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 yash/fzy-hist.sh diff --git a/sway/config.d/03-keybindings b/sway/config.d/03-keybindings index 8f14f92..2933b99 100644 --- a/sway/config.d/03-keybindings +++ b/sway/config.d/03-keybindings @@ -51,4 +51,4 @@ bindsym $mod+c exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d" bindsym $mod+a exec /home/rudism/skynet/scripts/choose-audio -select bindsym $mod+v exec /home/rudism/skynet/scripts/change-resolution -bindsym $mod+t layout tabbed +bindsym $mod+Shift+f floating toggle diff --git a/sway/config.d/04-windowcfg b/sway/config.d/04-windowcfg index 44d69fe..08b7dd9 100644 --- a/sway/config.d/04-windowcfg +++ b/sway/config.d/04-windowcfg @@ -1,10 +1,7 @@ for_window [app_id="org.speedcrunch.speedcrunch"] floating enable, sticky enable -for_window [title="Picture in picture"] floating enable, sticky enable +for_window [app_id="mpv"] floating enable, sticky enable for_window [instance="bitwarden"] floating enable, sticky enable -for_window [instance="Conky"] floating enable, sticky enable -for_window [app_id="Waydroid"] floating enable -for_window [app_id="waydroid.*"] floating enable -for_window [app_id="net.lutris.Lutris"] inhibit_idle open for_window [app_id=".*"] inhibit_idle fullscreen for_window [class="."] inhibit_idle fullscreen +for_window [app_id="net.lutris.Lutris"] inhibit_idle open diff --git a/yash/_yashrc b/yash/_yashrc index a03495d..2e2555f 100644 --- a/yash/_yashrc +++ b/yash/_yashrc @@ -17,7 +17,6 @@ FCEDIT=hx # yash extension scripts . ~/skynet/yash/polyglot.sh . ~/skynet/yash/z.sh -. ~/skynet/yash/fzy-hist.sh # environment setup export PURE_GIT_PULL=0 diff --git a/yash/fzy-hist.sh b/yash/fzy-hist.sh deleted file mode 100644 index 04fea4c..0000000 --- a/yash/fzy-hist.sh +++ /dev/null @@ -1,15 +0,0 @@ -h() { - input="$*" - SED_ARG='s/^[[:digit:]]*[[:space:]]*//' - - cmd="history | sed '\$d' | sort --reverse --numeric-sort | fzy " - if [ -n "$input" ]; then - cmd="$cmd -q\"\$input\" " - fi - cmd="$cmd | sed \"\$SED_ARG\" | tr -d '\n'" - if command -v wl-copy>/dev/null; then - cmd="$cmd | wl-copy 2>/dev/null" - fi - - eval "$cmd" -}