From ba39b200d0c50e40c09b8ec55058b54e9b3e3535 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 25 Nov 2022 22:10:28 +0100 Subject: [PATCH] Fix broken window criteria matchin --- .config/i3/layers/config.post-main-10-misc | 6 +++--- .config/i3/layers/config.pre-main-00-vars | 2 +- .local/bin/dmenubible | 2 +- .local/bin/dmenugtranslate | 2 +- .local/bin/randverse | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.config/i3/layers/config.post-main-10-misc b/.config/i3/layers/config.post-main-10-misc index a22eae4..a134639 100644 --- a/.config/i3/layers/config.post-main-10-misc +++ b/.config/i3/layers/config.post-main-10-misc @@ -1,6 +1,6 @@ # Float the following windows for_window [class="Tor Browser"] floating enable -for_window [class="Alacritty"][instance="calculator"] floating enable +for_window [class="Alacritty"][title="calculator"] floating enable # Start screenshot capture bindsym $mod+Ctrl+s exec "$screenshot_cmd" @@ -13,11 +13,11 @@ bindsym $mod+Ctrl+Return exec "$file_cmd" # gtranslate through dmenu bindsym $mod+Ctrl+t exec dmenugtranslate -for_window [class="Alacritty"][instance="translation"] floating enable +for_window [class="Alacritty"][title="translation"] floating enable # emoji selection through dmenu bindsym $mod+Ctrl+e exec dmenuunicode # Random Bible verse bindsym $mod+Ctrl+Shift+b exec randverse -for_window [class="Alacritty"][instance="bible"] floating enable +for_window [class="Alacritty"][title="bible"] floating enable diff --git a/.config/i3/layers/config.pre-main-00-vars b/.config/i3/layers/config.pre-main-00-vars index 0cb4272..2f56156 100644 --- a/.config/i3/layers/config.pre-main-00-vars +++ b/.config/i3/layers/config.pre-main-00-vars @@ -9,7 +9,7 @@ set $lock_after_min 1 set $lock_notify_sec 10 set $screenshot_cmd flameshot gui set $file_cmd alacritty -e ranger -set $calc_cmd alacritty --class calculator -e bc -l +set $calc_cmd alacritty --title calculator -e bc -l set $browser firefox set $terminal alacritty diff --git a/.local/bin/dmenubible b/.local/bin/dmenubible index 2f20692..fe0c91a 100755 --- a/.local/bin/dmenubible +++ b/.local/bin/dmenubible @@ -11,4 +11,4 @@ CHAPTERS="$(cut -d' ' -f1 $BIBLE | grep -o "^${BOOK}[[:digit:]]*" | uniq)" CHAPTER="$(xargs -n 1 <<<"$CHAPTERS" | dmenu -i -l 30 -p "$BOOK chapter")" echo "Chose chapter: '$CHAPTER'." -alacritty --class translation -e bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)" +alacritty --title bible -e bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)" diff --git a/.local/bin/dmenugtranslate b/.local/bin/dmenugtranslate index fa98bf9..94e3ddf 100755 --- a/.local/bin/dmenugtranslate +++ b/.local/bin/dmenugtranslate @@ -46,4 +46,4 @@ fi echo "$translation" printf '%s' "$translation" | xclip -selection clipboard notify-send "Translation from $from_code to $to_code copied to clipboard." & -alacritty --class translation -e bash -c "echo '$translation' | less" & +alacritty --title translation -e bash -c "echo '$translation' | less" & diff --git a/.local/bin/randverse b/.local/bin/randverse index 70fc87d..f22dccd 100755 --- a/.local/bin/randverse +++ b/.local/bin/randverse @@ -12,4 +12,4 @@ VERSE="$(sed -n "${LINE}p" "$BIBLE")" echo "$VERSE" printf '%s' "$VERSE" | xclip -selection clipboard notify-send "Bible verse copied to clipboard." & -alacritty --class bible -e bash -c "echo '$VERSE' | less" & +alacritty --title bible -e bash -c "echo '$VERSE' | less" &