diff --git a/.config/albert/config b/.config/albert/config index a7e9243..550f3a8 100644 --- a/.config/albert/config +++ b/.config/albert/config @@ -12,6 +12,9 @@ enabled=true fuzzy=true terminal=kitty +[caffeine] +enabled=false + [calculator_qalculate] enabled=true diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini index c40c909..47ec24f 100644 --- a/.config/gtk-2.0/gtkfilechooser.ini +++ b/.config/gtk-2.0/gtkfilechooser.ini @@ -2,7 +2,7 @@ LocationMode=path-bar ShowHidden=false ShowSizeColumn=true -GeometryX=713 +GeometryX=1183 GeometryY=269 GeometryWidth=537 GeometryHeight=542 diff --git a/.config/gtk-3.0/bookmarks b/.config/gtk-3.0/bookmarks index c2f1efc..5b55063 100644 --- a/.config/gtk-3.0/bookmarks +++ b/.config/gtk-3.0/bookmarks @@ -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 diff --git a/.config/hypr/config/monitors.conf b/.config/hypr/config/monitors.conf index 55f7caa..bd5511c 100644 --- a/.config/hypr/config/monitors.conf +++ b/.config/hypr/config/monitors.conf @@ -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 diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index ee23318..17e9c0e 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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 diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index af22814..0b875d0 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -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 "$(date +"%H:%M")" - color = rgba(216, 222, 233, 0.70) + #text = cmd[update:1000] echo "$(date +"%H:%M")" + 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 diff --git a/.config/hypr/images/lockscreen.JPG b/.config/hypr/images/lockscreen.JPG deleted file mode 100755 index b781f70..0000000 Binary files a/.config/hypr/images/lockscreen.JPG and /dev/null differ diff --git a/.config/hypr/images/lockscreen.jpg b/.config/hypr/images/lockscreen.jpg new file mode 100644 index 0000000..4e71633 Binary files /dev/null and b/.config/hypr/images/lockscreen.jpg differ diff --git a/.config/hypr/images/wallpaper.jpg b/.config/hypr/images/wallpaper.jpg index 5df3a1d..c60f886 100644 Binary files a/.config/hypr/images/wallpaper.jpg and b/.config/hypr/images/wallpaper.jpg differ diff --git a/.config/hypr/status/waybar b/.config/hypr/status/waybar index cfb931e..b3d8640 100644 --- a/.config/hypr/status/waybar +++ b/.config/hypr/status/waybar @@ -1 +1 @@ -off +on diff --git a/.local/bin/batteryctl b/.local/bin/batteryctl index ee176f9..4b98765 100755 --- a/.local/bin/batteryctl +++ b/.local/bin/batteryctl @@ -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 diff --git a/.local/bin/rust-quick-run.sh b/.local/bin/rust-quick-run.sh new file mode 100755 index 0000000..02d66a2 --- /dev/null +++ b/.local/bin/rust-quick-run.sh @@ -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 diff --git a/.local/bin/set-lockscreen b/.local/bin/set-lockscreen index 0877b7f..530082d 100755 --- a/.local/bin/set-lockscreen +++ b/.local/bin/set-lockscreen @@ -1,22 +1,50 @@ #!/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 else diff --git a/.zshrc b/.zshrc index 4b2d250..994c22a 100644 --- a/.zshrc +++ b/.zshrc @@ -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