Replaced set-lockscreen by the new version of set-wallpaper (modified), and many more but not that significant changes

This commit is contained in:
Gu://em_ 2025-02-09 21:07:10 +01:00
parent 3a293cf0f3
commit 6e4c3bb974
14 changed files with 70 additions and 18 deletions

View file

@ -12,6 +12,9 @@ enabled=true
fuzzy=true
terminal=kitty
[caffeine]
enabled=false
[calculator_qalculate]
enabled=true

View file

@ -2,7 +2,7 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=713
GeometryX=1183
GeometryY=269
GeometryWidth=537
GeometryHeight=542

View file

@ -1,2 +1,4 @@
file:///home/guillm/Pictures Pictures
file:///home/guillm/Downloads Downloads
file:///home/guillm/shared/Workplan/EPITA/2024-2025
file:///home/guillm/shared/Workplan

View file

@ -6,4 +6,5 @@
monitor=,preferred,auto,auto
monitor=eDP-1,preferred,0x0,1 # Laptop screen
monitor=DP-1, preferred, 0x-1080, 1 # HP Home monitor
monitor=DP-2, preferred, 0x-1080, 1 # HP Home monitor
monitor=HDMI-A-1, preferred, 0x-1440, 1 # Dell monitor

View file

@ -5,8 +5,8 @@
# Please note not all available settings / options are set here.
# For a full list, see the wiki
source = ~/.config/hypr/config/monitors_default.conf
#source = ~/.config/hypr/config/monitors.conf
#source = ~/.config/hypr/config/monitors_default.conf
source = ~/.config/hypr/config/monitors.conf
source = ~/.config/hypr/config/environment.conf
source = ~/.config/hypr/config/input.conf
source = ~/.config/hypr/config/appearance.conf

View file

@ -1,12 +1,12 @@
# BACKGROUND
background {
monitor =
path = ~/.config/hypr/images/lockscreen.JPG
blur_passes = 2
contrast = 0.8916
rightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
path = ~/.config/hypr/images/lockscreen.jpg
blur_passes = 0
#contrast = 0.8916
#brightness = 0.8172
#vibrancy = 0.1696
#vibrancy_darkness = 0.0
}
# GENERAL
@ -22,7 +22,7 @@ general {
input-field {
monitor =
size = 320, 55
outline_thickness = 1
outline_thickness = -1
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
@ -41,20 +41,24 @@ input-field {
# Time
label {
monitor =
text = cmd[update:1000] echo "<span>$(date +"%H:%M")</span>"
color = rgba(216, 222, 233, 0.70)
#text = cmd[update:1000] echo "<span>$(date +"%H:%M")</span>"
text = $TIME
color = rgba(216, 222, 233, 1)
font_size = 130
font_family = JetbrainsMonoNL NF Bold
position = 0, 280
halign = center
valign = center
# TODO make shadowing work
#shadow_passes = 10
#shadow_size = 3
}
# Day-Month-Date
label {
monitor =
text = cmd[update:1000] echo -e "$(date +"%A, %d %B")"
color = rgba(216, 222, 233, 0.70)
color = rgba(216, 222, 233, 1)
font_size = 26
font_family = JetbrainsMonoNL NF
position = 0, 160

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View file

@ -1 +1 @@
off
on

View file

@ -6,7 +6,7 @@ print_help() {
echo "Usage: ${0} (get|set) [level]"
echo
echo " get Gets the current battery charging limit"
echo " set Sets the current battery charging limit to the provided level"
echo " set Sets the current battery charging limit to the provided level (set to 0 to disable battery charging limit)"
echo
echo "Please note that this script is made for Samsung Galaxy Book Computers and only works with Galaxy Book Extras module loaded and enabled."
exit 1

13
.local/bin/rust-quick-run.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# Compiles and run a single rust file while keeping a clean directory
if [ ! -e "$1" ]; then
echo "'$1': No such file or directory"
else
rustc $1 -o a.out
if [ $? == 0 ]; then
./a.out
rm a.out
fi
fi

View file

@ -1,21 +1,49 @@
#!/bin/sh
# Actually just a modified version of the set-wallpaper script, explaining some potential inconsistencies in variables naming or whatever else.
print_help() {
echo "Usage: $0 [input-file]"
echo
echo "Changes your current lockscreen wallpaper"
echo "Please note that this script is made to be used with the Atlas Desktop and will probably not work on most other desktops."
}
if [ $# -ne 1 ]; then
print_help
exit 1
fi
# Check if file exists
if [ -e $1 ]; then
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##*.}"
# In case file has no extension
if [ "${file_extension}" == "$1" ]; then
echo "Error: please provide a file extension (ex: .jpg, .png...)"
exit 1
fi
# Remove old wallpaper
rm $wallpaper_path*
# Copy file
cp $1 "${wallpaper_path}.${file_extension}"
cp "$1" "${wallpaper_path}.${file_extension}"
if [ $? != 0 ]; then
echo "Aborted."
exit 1
fi
# Update config
sed -i "s/lockscreen\.[^[:space:]]*/lockscreen.$file_extension/g" $wallpaper_config # Replace current extension by new extension
if [ $? != 0 ]; then
echo "Aborted."
exit 1
fi
echo "Done"
exit 0

1
.zshrc
View file

@ -80,6 +80,7 @@ alias hyprcfg='vim ~/.config/hypr/'
alias zcfg='vim ~/.zshrc'
alias icat='kitten icat'
alias nv='nvim'
alias cg='cargo'
# Power management
alias pprof='cat /sys/firmware/acpi/platform_profile' # Get current performance profile
alias pprof-list='cat /sys/firmware/acpi/platform_profile_choices' # Lists the available performance profiles