New icons for dmenu_drun
This commit is contained in:
parent
a64dad73be
commit
2ff9754103
|
@ -4,7 +4,7 @@
|
||||||
# dmenu_drun - dmenu script that simulates 'rofi -show drun' #
|
# dmenu_drun - dmenu script that simulates 'rofi -show drun' #
|
||||||
# #
|
# #
|
||||||
# Author: q3aql <q3aql@duck.com> #
|
# Author: q3aql <q3aql@duck.com> #
|
||||||
# Last update: 20-07-2022 #
|
# Last update: 29-07-2022 #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
|
@ -49,9 +49,9 @@ function list_desktop_files() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_desktop_icons() {
|
function list_desktop_icons() {
|
||||||
echo " Scan New Desktop Files"
|
echo " Scan/Update Desktop Files"
|
||||||
ls -1 "${load_desktop_files}/" | while read current_desktop ; do
|
ls -1 "${load_desktop_files}/" | while read current_desktop ; do
|
||||||
echo " ${current_desktop}"
|
echo " ${current_desktop}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ create_list_files
|
||||||
list_output=$(list_desktop_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " drun:")
|
list_output=$(list_desktop_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " drun:")
|
||||||
run_output=$(echo ${list_output} | cut -c 5-999)
|
run_output=$(echo ${list_output} | cut -c 5-999)
|
||||||
if [ ! -z "${run_output}" ] ; then
|
if [ ! -z "${run_output}" ] ; then
|
||||||
if [ "${run_output}" == "Scan New Desktop Files" ] ; then
|
if [ "${run_output}" == "Scan/Update Desktop Files" ] ; then
|
||||||
echo "0" > ${HOME}/.dmenu/read_list
|
echo "0" > ${HOME}/.dmenu/read_list
|
||||||
create_list_files
|
create_list_files
|
||||||
$0
|
$0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user