Rofi updates
This commit is contained in:
@@ -9,4 +9,4 @@
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
rofi -show drun -l 10
|
||||
rofi -show drun
|
||||
|
||||
23
scripts/cliphist.sh
Executable file
23
scripts/cliphist.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# ____ _ _ _ _ _
|
||||
# / ___| (_)_ __ | |__ (_)___| |_
|
||||
# | | | | | '_ \| '_ \| / __| __|
|
||||
# | |___| | | |_) | | | | \__ \ |_
|
||||
# \____|_|_| .__/|_| |_|_|___/\__|
|
||||
# |_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
case $1 in
|
||||
d) cliphist list | rofi -dmenu -config ~/dotfiles/rofi/config-cliphist.rasi | cliphist delete
|
||||
;;
|
||||
|
||||
w) if [ `echo -e "Clear\nCancel" | rofi -dmenu -config ~/dotfiles/rofi/config-short.rasi` == "Clear" ] ; then
|
||||
cliphist wipe
|
||||
fi
|
||||
;;
|
||||
|
||||
*) cliphist list | rofi -dmenu -config ~/dotfiles/rofi/config-cliphist.rasi | cliphist decode | wl-copy
|
||||
;;
|
||||
esac
|
||||
@@ -18,7 +18,8 @@ echo "" >> ~/figlet.txt
|
||||
echo "by Stephan Raabe (2023)" >> ~/figlet.txt
|
||||
echo "-----------------------------------------------------" >> ~/figlet.txt
|
||||
sed -i 's/^/# /; s/$/ /' ~/figlet.txt
|
||||
|
||||
lines=$( cat ~/figlet.txt )
|
||||
wl-copy "$lines"
|
||||
xclip -sel clip ~/figlet.txt
|
||||
|
||||
echo "Text copied to clipboard!"
|
||||
|
||||
@@ -17,7 +17,7 @@ option3="Fullscreen (delay 3 sec)"
|
||||
|
||||
options="$option2\n$option3"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "Take Screenshot")
|
||||
choice=$(echo -e "$options" | rofi -dmenu -config ~/dotfiles/rofi/config-screenshot.rasi -i -no-show-icons -l 4 -width 30 -p "Take Screenshot")
|
||||
|
||||
case $choice in
|
||||
$option2)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# -----------------------------------------------------
|
||||
# Select wallpaper
|
||||
# -----------------------------------------------------
|
||||
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -p "Wallpapers")
|
||||
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -config ~/dotfiles/rofi/config-wallpaper.rasi -p "Wallpapers")
|
||||
|
||||
if [ "$selected" ]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user