updates and a lot of em

This commit is contained in:
Chris Cochrun 2022-04-26 12:40:23 -05:00
parent 30cd55aca8
commit bd0cf6ff9b
37 changed files with 618 additions and 96 deletions

View file

@ -1,5 +1,16 @@
#!/bin/bash
if [ $(hostname) = "syl" ]; then
if [ $XDG_SESSION_TYPE = "x11" ]; then
style="laptop-search"
else
style="laptop-search-wayland"
fi
else
style="desktop-search"
#echo "this is not hidpi"
fi
timestamp=$(date +%F-%T)
picture=$(maim --hidecursor --select /tmp/$timestamp.png)
@ -10,7 +21,7 @@ declare -a options=(
"cancel"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -p 'Clip or Save')
choice=$(printf '%s\n' "${options[@]}" | rofi -theme /home/chris/dotfiles/rofi/launchers-git/$style.rasi -dmenu -p 'Clip or Save')
if [[ "$choice" == "cancel" ]]; then
rm /tmp/$timestamp.png