From 51632bd23202af18d181bfd86e82a5f7efb7ef9a Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 11 Aug 2025 13:16:01 +0200 Subject: [PATCH] .config/sway/wofi --- .config/sway/wofi/wofi_drun | 9 +++++---- .config/sway/wofi/wofi_fbrun | 10 +++++----- .config/sway/wofi/wofi_run | 2 +- .config/sway/wofi/wofi_wrun | 4 ++-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.config/sway/wofi/wofi_drun b/.config/sway/wofi/wofi_drun index 3c9b3f4..62d5563 100755 --- a/.config/sway/wofi/wofi_drun +++ b/.config/sway/wofi/wofi_drun @@ -40,9 +40,9 @@ function list_desktop_files() { } function list_desktop_icons() { - echo " Scan New Desktop Files" + echo "󰑓 Scan New Desktop Files" ls -1 "${load_desktop_files}/" | while read current_desktop ; do - echo " ${current_desktop}" + echo "󰀻 ${current_desktop}" done generate_spaces 75 } @@ -105,8 +105,9 @@ else fi create_list_files -list_output=$(list_desktop_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p " drun") -run_output=$(echo ${list_output} | cut -c 5-999) +list_output=$(list_desktop_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p "󰈞 drun") +run_output=$(echo ${list_output} | cut -c 6-999) +echo "${run_output}" if [ ! -z "${run_output}" ] ; then if [ "${run_output}" == "Scan New Desktop Files" ] ; then echo "0" > ${HOME}/.dmenu/read_list diff --git a/.config/sway/wofi/wofi_fbrun b/.config/sway/wofi/wofi_fbrun index 2a4fca1..c19b8a6 100755 --- a/.config/sway/wofi/wofi_fbrun +++ b/.config/sway/wofi/wofi_fbrun @@ -22,9 +22,9 @@ function generate_spaces() { function show_icon_tree() { ls -1 | while read current ; do if [ -f "${current}" ] ; then - echo " ${current}" + echo " ${current}" elif [ -d "${current}" ] ; then - echo " ${current}" + echo " ${current}" else echo " ${current}" fi @@ -35,11 +35,11 @@ function show_icon_tree() { function remove_icon() { entry="${@}" remove_icon_space=0 - read_entry=$(echo "${entry}" | grep " ") + read_entry=$(echo "${entry}" | grep " ") if ! [ -z "${read_entry}" ] ; then remove_icon_space=1 fi - read_entry=$(echo "${entry}" | grep " ") + read_entry=$(echo "${entry}" | grep " ") if ! [ -z "${read_entry}" ] ; then remove_icon_space=1 fi @@ -57,7 +57,7 @@ function remove_icon() { file=1 while [ "${file}" ]; do - file_icon=$(show_icon_tree | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p " filebrowser: $(basename $(pwd))") + file_icon=$(show_icon_tree | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p "󰈞 filebrowser: $(basename $(pwd))") file=$(remove_icon "${file_icon}") echo "# ${file} #" if [ -e "${file}" ]; then diff --git a/.config/sway/wofi/wofi_run b/.config/sway/wofi/wofi_run index b3268d5..acd259b 100755 --- a/.config/sway/wofi/wofi_run +++ b/.config/sway/wofi/wofi_run @@ -47,6 +47,6 @@ function list_binaries_icons() { generate_spaces 75 } -list_output=$(list_binaries_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p " run") +list_output=$(list_binaries_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p "󰈞 run") run_output=$(echo "${list_output}" | cut -c4-999) ${run_output} diff --git a/.config/sway/wofi/wofi_wrun b/.config/sway/wofi/wofi_wrun index 1376979..c5e67d7 100755 --- a/.config/sway/wofi/wofi_wrun +++ b/.config/sway/wofi/wofi_wrun @@ -23,7 +23,7 @@ function check_dependencies() { swaymsg &> /dev/null error=$? if [ ${error} -ne 0 ] ; then - echo " Error: You need install 'swaymsg'" | wofi --dmenu -p " window" + echo " Error: You need install 'swaymsg'" | wofi --dmenu -p "󰈞 window" exit fi } @@ -36,7 +36,7 @@ function list_applications_icons() { } check_dependencies -list_output=$(list_applications_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p " window") +list_output=$(list_applications_icons | wofi -s ~/.config/wofi/wofi.css --dmenu -i -p "󰈞 window") run_output=$(echo ${list_output} | cut -c 5-999) echo "# Selected: ${run_output}" run_output=$(echo "${run_output}" | cut -d " " -f 1)