Fix width with dmenu 5.2
This commit is contained in:
parent
2c5add107b
commit
cb07ccab07
|
@ -4,7 +4,7 @@
|
|||
# dmenu_close - dmenu script for poweroff/reboot/suspend and logout #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 29-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
#####################################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -41,6 +41,7 @@ function load_session_options() {
|
|||
if [ ! -z "${sessions_check}" ] ; then
|
||||
echo " Logout"
|
||||
fi
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
function close_session() {
|
||||
|
|
14
dmenu_cmd
14
dmenu_cmd
|
@ -5,7 +5,7 @@
|
|||
# only insert command #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 10-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
############################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -29,6 +29,16 @@ function load_theme() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
load_theme
|
||||
command_run=$(echo > /dev/null | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " command:")
|
||||
command_run=$(generate_spaces 75 | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " command:")
|
||||
${command_run}
|
||||
|
|
12
dmenu_drun
12
dmenu_drun
|
@ -4,7 +4,7 @@
|
|||
# dmenu_drun - dmenu script that simulates 'rofi -show drun' #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 14-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
##############################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -31,6 +31,15 @@ function load_theme() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
function list_desktop_files() {
|
||||
if [ -d "${desktop_files}" ] ; then
|
||||
ls -1 "${desktop_files}/" | grep ".desktop"
|
||||
|
@ -45,6 +54,7 @@ function list_desktop_icons() {
|
|||
ls -1 "${load_desktop_files}/" | while read current_desktop ; do
|
||||
echo " ${current_desktop}"
|
||||
done
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
rundesk () {
|
||||
|
|
12
dmenu_fbrun
12
dmenu_fbrun
|
@ -4,7 +4,7 @@
|
|||
# dmenu_fbrun - dmenu script that simulates 'rofi -show filebrowser' #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 10-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
######################################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -28,6 +28,15 @@ function load_theme() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
function show_icon_tree() {
|
||||
ls -1 | while read current ; do
|
||||
if [ -f "${current}" ] ; then
|
||||
|
@ -38,6 +47,7 @@ function show_icon_tree() {
|
|||
echo " ${current}"
|
||||
fi
|
||||
done
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
function remove_icon() {
|
||||
|
|
14
dmenu_run
14
dmenu_run
|
@ -4,7 +4,7 @@
|
|||
# dmenu_run - dmenu script that simulates 'rofi -show run' #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 10-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
############################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -28,6 +28,15 @@ function load_theme() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
function list_binaries() {
|
||||
binaries=0
|
||||
path_binaries=${PATH}
|
||||
|
@ -46,13 +55,14 @@ function list_binaries() {
|
|||
count_path=$(expr ${count_path} + 1)
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
function list_binaries_icons() {
|
||||
list_binaries | while read current_binary ; do
|
||||
echo " ${current_binary}"
|
||||
done
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
load_theme
|
||||
|
|
12
dmenu_themes
12
dmenu_themes
|
@ -4,7 +4,7 @@
|
|||
# dmenu_themes - dmenu script that simulates 'rofi-theme-selector' #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 10-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
####################################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -167,6 +167,15 @@ function load_themes_files() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
function show_icon_tree() {
|
||||
ls -1 ${load_themes} | while read current ; do
|
||||
if [ -f "${load_themes}/${current}" ] ; then
|
||||
|
@ -175,6 +184,7 @@ function show_icon_tree() {
|
|||
echo " ${current}"
|
||||
fi
|
||||
done
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
function remove_icon() {
|
||||
|
|
12
dmenu_wrun
12
dmenu_wrun
|
@ -4,7 +4,7 @@
|
|||
# dmenu_wrun - dmenu script that simulates 'rofi -show window' #
|
||||
# #
|
||||
# Author: q3aql <q3aql@duck.com> #
|
||||
# Last update: 16-07-2022 #
|
||||
# Last update: 20-11-2022 #
|
||||
################################################################
|
||||
|
||||
# Configuration variables
|
||||
|
@ -28,6 +28,15 @@ function load_theme() {
|
|||
fi
|
||||
}
|
||||
|
||||
function generate_spaces() {
|
||||
num_spaces=${1}
|
||||
count_spaces=1
|
||||
while [ ${count_spaces} -le ${num_spaces} ] ; do
|
||||
echo -n " "
|
||||
count_spaces=$(expr ${count_spaces} + 1)
|
||||
done
|
||||
}
|
||||
|
||||
function check_wmctrl() {
|
||||
wmctrl -h &> /dev/null
|
||||
error=$?
|
||||
|
@ -41,6 +50,7 @@ function list_applications_icons() {
|
|||
wmctrl -l | while read current_app ; do
|
||||
echo " ${current_app}"
|
||||
done
|
||||
generate_spaces 75
|
||||
}
|
||||
|
||||
load_theme
|
||||
|
|
Loading…
Reference in New Issue
Block a user