Fix window selection (dmenu_wrun)
This commit is contained in:
parent
609324236a
commit
23e25e5d09
13
dmenu_wrun
13
dmenu_wrun
|
@ -4,7 +4,7 @@
|
||||||
# dmenu_wrun - dmenu script that simulates 'rofi -show window' #
|
# dmenu_wrun - dmenu script that simulates 'rofi -show window' #
|
||||||
# #
|
# #
|
||||||
# Author: q3aql <q3aql@duck.com> #
|
# Author: q3aql <q3aql@duck.com> #
|
||||||
# Last update: 10-07-2022 #
|
# Last update: 16-07-2022 #
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
|
@ -43,14 +43,9 @@ function list_applications_icons() {
|
||||||
|
|
||||||
load_theme
|
load_theme
|
||||||
list_output=$(list_applications_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " window:")
|
list_output=$(list_applications_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " window:")
|
||||||
run_output=$(echo ${list_output} | cut -c 4-999)
|
run_output=$(echo ${list_output} | cut -c 5-999)
|
||||||
if [ "${run_output}" == "gimp" ] ; then
|
if [ -z "${run_output}" ] ; then
|
||||||
xdotool search --onlyvisible -classname "${run_output}" windowactivate &> /dev/null
|
echo "# Selection window canceled"
|
||||||
elif [ "${run_output}" == "gimp-2.10" ] ; then
|
|
||||||
xdotool search --onlyvisible -classname "${run_output}" windowactivate &> /dev/null
|
|
||||||
elif [ "${run_output}" == "truecrypt" ] ; then
|
|
||||||
xdotool search --onlyvisible -classname "${run_output}" windowactivate &> /dev/null
|
|
||||||
else
|
else
|
||||||
xdotool search ".*${run_output}.*" windowactivate &> /dev/null
|
xdotool search ".*${run_output}.*" windowactivate &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user