Add -replace to all rofi launchers
This commit is contained in:
@@ -18,7 +18,7 @@ option3="Fullscreen (delay 3 sec)"
|
||||
|
||||
options="$option2\n$option3\n$option1"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -i -dmenu -config ~/dotfiles/rofi/config-screenshot.rasi -width 30 -l 3 -p "Take Screenshot")
|
||||
choice=$(echo -e "$options" | rofi -i -dmenu -replace -config ~/dotfiles/rofi/config-screenshot.rasi -width 30 -l 3 -p "Take Screenshot")
|
||||
|
||||
case $choice in
|
||||
$option1)
|
||||
|
||||
@@ -22,7 +22,7 @@ case $1 in
|
||||
|
||||
# Select wallpaper with rofi
|
||||
"select")
|
||||
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||
if [ ! "$selected" ]; then
|
||||
echo "No wallpaper selected"
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user