Splitted hyprland config file to make config easier, created some more scripts to manage lockscreen wallpaper and battery charging limit, changed waybar appearance (testing) and added some aliases (galaxy book specific)
This commit is contained in:
parent
1965d9cf0a
commit
e722ac37d1
16 changed files with 419 additions and 344 deletions
25
.local/bin/set-lockscreen
Executable file
25
.local/bin/set-lockscreen
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check if file exists
|
||||
if [ -e $1 ]; then
|
||||
|
||||
# Variables declaration
|
||||
wallpaper_config=~/.config/hypr/hyprlock.conf
|
||||
wallpaper_path=~/.config/hypr/images/lockscreen # Doesn't contain file extension
|
||||
file_extension="${1##*.}"
|
||||
|
||||
# Remove old wallpaper
|
||||
rm $wallpaper_path*
|
||||
|
||||
# Copy file
|
||||
cp $1 "${wallpaper_path}.${file_extension}"
|
||||
|
||||
# Update config
|
||||
sed -i "s/lockscreen\.[^[:space:]]*/lockscreen.$file_extension/g" $wallpaper_config # Replace current extension by new extension
|
||||
|
||||
echo "Done"
|
||||
exit 0
|
||||
else
|
||||
echo "Couldn't find '${1}': No such file or directory"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue