You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
408 B

#!/bin/bash
currentClass=$(xprop -id $(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) WM_CLASS | awk '{print $NF}')
# unquote
currentClass=$(eval echo $currentClass)
floatingDir="$HOME/.config/ratflow/profiles/current/config.d/floating.d"
mkdir -p "$floatingDir"
echo "for_window [class=\"${currentClass}\"] floating enable" > "$floatingDir/${currentClass}.float"
i3-msg floating enabled
rfreload