Fix broken window criteria matchin

This commit is contained in:
dabruh 2022-11-25 22:10:28 +01:00
parent f9e0d6565e
commit ba39b200d0
5 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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)"

View file

@ -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" &

View file

@ -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" &