updates and a lot of em
This commit is contained in:
parent
30cd55aca8
commit
bd0cf6ff9b
37 changed files with 618 additions and 96 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue