Skip to content

Commit

Permalink
Converted some theme images from webp to png due to a long standing bug
Browse files Browse the repository at this point in the history
in Nix (NixOS/nixpkgs#153275).  Now the theme
switcher will show the proper theme preview image
  • Loading branch information
jwyuen committed Oct 30, 2024
1 parent 6828a63 commit 6bd3c95
Show file tree
Hide file tree
Showing 32 changed files with 3 additions and 3 deletions.
Binary file added dots/config/bspwm/rices/aline/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/aline/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/andrea/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/andrea/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/brenda/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/brenda/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/cristina/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/cristina/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/cynthia/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/cynthia/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/daniela/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/daniela/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/emilia/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/emilia/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/isabel/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/isabel/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/jan/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/jan/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/karla/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/karla/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/marisol/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/marisol/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/melissa/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/melissa/rofi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/pamela/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dots/config/bspwm/rices/pamela/rofi.png
Binary file added dots/config/bspwm/rices/silvia/preview.png
Binary file added dots/config/bspwm/rices/silvia/rofi.png
Binary file added dots/config/bspwm/rices/z0mbi3/preview.png
Binary file added dots/config/bspwm/rices/z0mbi3/rofi.png
4 changes: 2 additions & 2 deletions dots/config/bspwm/scripts/RiceSelector
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ done
# Show the rofi selection menu with the starting point set to the current rice and store the result in a variable.

# use this until nixos fixes this issue: https://github.com/NixOS/nixpkgs/pull/153275
selected=$(printf "%s\n" "${options[@]}" | while read -r A ; do echo -en "$A\x00icon\x1f${preview_dir}$A/../preview.png\n" ; done | $rofi_command -theme-str "$rofi_override" -selected-row "$selected_index")
#selected=$(printf "%s\n" "${options[@]}" | while read -r A ; do echo -en "$A\x00icon\x1f${preview_dir}$A/preview.webp\n" ; done | $rofi_command -theme-str "$rofi_override" -selected-row "$selected_index")
#selected=$(printf "%s\n" "${options[@]}" | while read -r A ; do echo -en "$A\x00icon\x1f${preview_dir}$A/../preview.png\n" ; done | $rofi_command -theme-str "$rofi_override" -selected-row "$selected_index")
selected=$(printf "%s\n" "${options[@]}" | while read -r A ; do echo -en "$A\x00icon\x1f${preview_dir}$A/preview.png\n" ; done | $rofi_command -theme-str "$rofi_override" -selected-row "$selected_index")

# If a valid option was selected, write the value to the configuration file and restart BSPWM.
[[ -n "$selected" && "$selected" != "$current_rice" ]] || exit 1
Expand Down
2 changes: 1 addition & 1 deletion dots/config/bspwm/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ super + Return
super + alt + Return
OpenApps --floating

# Application menu
# Application menu (rofi)
super + @space
OpenApps --menu

Expand Down

0 comments on commit 6bd3c95

Please sign in to comment.