ChrisTitusTech / Debian-titus

Debian customizations from Chris Titus Tech
GNU General Public License v3.0
430 stars 158 forks source link

unicode problem #14

Closed ExplosiveGreen closed 2 years ago

ExplosiveGreen commented 2 years ago

in file dotfiles/rofi/powermenu/powermenu.sh section Options the Unicode don't show up and after using the powermenu show only the text E9C0 E9C4 E9A3 E991 also in section Confirmation and Message after -theme reference a message and confirmation rofi file that doesn't exist in the location also when you click on suspend or logout the lost click register as a click for getting out from the confirmation menu and with that you can answer that you Sure to the message Picture1 e

feekApp commented 2 years ago

Same here.

For me also some warnings in ~/.xsessions-errors like:

polybar|warn: Dropping unmatched character _ (U+f3ed) in '_ '
ExplosiveGreen commented 2 years ago

i fixed the unicode problem by downloading this repository https://github.com/adi1090x/rofi.git and runing this two comands mkdir -p "$HOME/.local/share/fonts" cp -rf rofi/fonts/* "$HOME/.local/share/fonts"

ExplosiveGreen commented 2 years ago

for the message and confirm.rasi not found you can just change the URL for those files to .config/rofi/applets/styles/confirm.rasi and .config/rofi/applets/styles/message.rasi or copy those file and dependences files to the powermenu folder

and for the double clicking problem you can ether use your keyboard instead your mouse or put right before this line ans=$(confirm_exit &) a dummy menu

aphive commented 2 years ago

A bit late but, here is how I fixed mine... It's just the first few lines that need tweaking.

dir="$HOME/.config/rofi/"

theme="$dir/powermenu/drop_square"
confirm="$dir/applets/styles/confirm.rasi"
rofi_command="rofi -theme $dir/$theme"

# Options
shutdown=""
reboot=""
lock=""
suspend=""
logout=""

# Confirmation
confirm_exit() {
    rofi -dmenu\
        -i\
        -no-fixed-num-lines\
        -p "Are You Sure? : "\
        -theme $confirm
}

# Message
msg() {
    rofi -theme "$confirm" -e "Available Options  -  yes / y / no / n"
}