Updates
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# ____
|
||||
# | _ \ _____ _____ _ __ _ __ ___ ___ _ __ _ _
|
||||
# | |_) / _ \ \ /\ / / _ \ '__| '_ ` _ \ / _ \ '_ \| | | |
|
||||
# | __/ (_) \ V V / __/ | | | | | | | __/ | | | |_| |
|
||||
# |_| \___/ \_/\_/ \___|_| |_| |_| |_|\___|_| |_|\__,_|
|
||||
#
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
option1=" lock"
|
||||
option2=" logout"
|
||||
option3=" reboot"
|
||||
option4=" power off"
|
||||
|
||||
options="$option1\n"
|
||||
options="$options$option2\n"
|
||||
options="$options$option3\n$option4"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "Powermenu")
|
||||
|
||||
case $choice in
|
||||
$option1)
|
||||
slock ;;
|
||||
$option2)
|
||||
hyprctl dispatch exit ;;
|
||||
$option3)
|
||||
systemctl reboot ;;
|
||||
$option4)
|
||||
systemctl poweroff ;;
|
||||
esac
|
||||
|
||||
@@ -19,6 +19,11 @@ wal -q -i ~/wallpaper/
|
||||
# -----------------------------------------------------
|
||||
source "$HOME/.cache/wal/colors.sh"
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Copy color file to waybar folder
|
||||
# -----------------------------------------------------
|
||||
cp ~/.cache/wal/colors-waybar.css ~/dotfiles/waybar/
|
||||
|
||||
# -----------------------------------------------------
|
||||
# get wallpaper iamge name
|
||||
# -----------------------------------------------------
|
||||
@@ -28,4 +33,11 @@ newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
|
||||
# Set the new wallpaper
|
||||
# -----------------------------------------------------
|
||||
swww img $wallpaper --transition-step 20 --transition-fps=20
|
||||
~/dotfiles/waybar/reload.sh
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Send notification
|
||||
# -----------------------------------------------------
|
||||
notify-send "Theme and Wallpaper updated" "With image $newwall"
|
||||
|
||||
echo "DONE!"
|
||||
|
||||
+10
-2
@@ -11,22 +11,30 @@
|
||||
|
||||
echo "Changing theme..."
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Update Wallpaper with pywal
|
||||
# -----------------------------------------------------
|
||||
wal -q -i ~/wallpaper/
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Wait for 1 sec
|
||||
# -----------------------------------------------------
|
||||
sleep 1
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Reload qtile to color bar
|
||||
# -----------------------------------------------------
|
||||
qtile cmd-obj -o cmd -f reload_config
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Get new theme
|
||||
# -----------------------------------------------------
|
||||
source "$HOME/.cache/wal/colors.sh"
|
||||
|
||||
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Send notification
|
||||
# -----------------------------------------------------
|
||||
notify-send "Theme and Wallpaper updated" "With image $newwall"
|
||||
|
||||
echo "Done."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user