From 34a2f71c6d9fd2fabc8963bdcde41279f83dfb43 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 30 Nov 2025 19:29:30 +0100 Subject: [PATCH] too lazy to come up with a helpful commit message :) --- config/niri/.config/niri/config.kdl | 2 -- config/niri/.config/niri/config/binds.kdl | 1 + config/niri/.config/niri/config/envs.kdl | 2 +- config/niri/.config/niri/config/execs.kdl | 2 +- config/niri/.config/niri/config/monitors.kdl | 2 +- config/niri/.config/niri/config/styles.kdl | 2 +- config/scripts/.local/scripts/change-wallpaper | 9 ++++----- config/shell/.bash_profile | 4 ++++ 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/config/niri/.config/niri/config.kdl b/config/niri/.config/niri/config.kdl index 0026361..aa9e1a9 100644 --- a/config/niri/.config/niri/config.kdl +++ b/config/niri/.config/niri/config.kdl @@ -6,5 +6,3 @@ include "config/envs.kdl" include "config/rules.kdl" include "config/binds.kdl" include "config/misc.kdl" - -/************************Misc************************/ diff --git a/config/niri/.config/niri/config/binds.kdl b/config/niri/.config/niri/config/binds.kdl index e265398..1c83ab4 100644 --- a/config/niri/.config/niri/config/binds.kdl +++ b/config/niri/.config/niri/config/binds.kdl @@ -2,6 +2,7 @@ recent-windows { binds { Alt+Tab { next-window; } Alt+Shift+Tab { previous-window; } + // dead_circumflex: ^ Alt+dead_circumflex { next-window filter="app-id"; } Alt+Shift+dead_circumflex { previous-window filter="app-id"; } } diff --git a/config/niri/.config/niri/config/envs.kdl b/config/niri/.config/niri/config/envs.kdl index 2e3d0c4..acca25c 100644 --- a/config/niri/.config/niri/config/envs.kdl +++ b/config/niri/.config/niri/config/envs.kdl @@ -19,4 +19,4 @@ environment { // Others XCURSOR_SIZE "24" ELECTRON_OZONE_PLATFORM_HINT "wayland" -} \ No newline at end of file +} diff --git a/config/niri/.config/niri/config/execs.kdl b/config/niri/.config/niri/config/execs.kdl index c071ca9..0681e54 100644 --- a/config/niri/.config/niri/config/execs.kdl +++ b/config/niri/.config/niri/config/execs.kdl @@ -34,4 +34,4 @@ spawn-at-startup "hypridle" spawn-at-startup "quickshell" // According to (https://ghostty.org/docs/linux/systemd#starting-ghostty-at-login) -spawn-sh-at-startup "systemctl start --user app-com.mitchellh.ghostty.service" \ No newline at end of file +spawn-sh-at-startup "systemctl start --user app-com.mitchellh.ghostty.service" diff --git a/config/niri/.config/niri/config/monitors.kdl b/config/niri/.config/niri/config/monitors.kdl index ce259a8..fa8cfb2 100644 --- a/config/niri/.config/niri/config/monitors.kdl +++ b/config/niri/.config/niri/config/monitors.kdl @@ -19,4 +19,4 @@ output "DP-1" { background-color "#1e1e2e" backdrop-color "#1e1e2e" // transform "90" -} \ No newline at end of file +} diff --git a/config/niri/.config/niri/config/styles.kdl b/config/niri/.config/niri/config/styles.kdl index b347243..33a5116 100644 --- a/config/niri/.config/niri/config/styles.kdl +++ b/config/niri/.config/niri/config/styles.kdl @@ -83,4 +83,4 @@ recent-windows { urgent-color "#f38ba8" corner-radius 14 } -} \ No newline at end of file +} diff --git a/config/scripts/.local/scripts/change-wallpaper b/config/scripts/.local/scripts/change-wallpaper index e0ca4dd..07a8131 100755 --- a/config/scripts/.local/scripts/change-wallpaper +++ b/config/scripts/.local/scripts/change-wallpaper @@ -69,7 +69,6 @@ screen_height=$3 # So in order to let the most recently used wallpapers appear first: touch "$image" - # Copy image to local wallpaper directory ext=${image##*.} @@ -84,7 +83,7 @@ mkdir -p "$current_dir" || { temp_img=$(mktemp --suffix=."$ext") || exit 1 trap 'rm -f "$temp_img"' EXIT -magick convert "$image" -resize "${screen_width}x${screen_height}^" -gravity center -extent "${screen_width}x${screen_height}" "$temp_img" || { +magick "$image" -resize "${screen_width}x${screen_height}^" -gravity center -extent "${screen_width}x${screen_height}" "$temp_img" || { echo "Could not resize and crop image" exit 1 } @@ -119,7 +118,7 @@ blurred_cache_image="$blur_cache_dir/${hash}.$ext" else find "$blur_dir" -type f -name "blurred-*" ! -name "$(basename "$blurred_image")" -delete if [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then - swww img -n backdrop "$blurred_image" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null + swww img -n backdrop "$blurred_image" --transition-type fade --transition-duration 2 >/dev/null 2>/dev/null fi notify-send -a "change-wallpaper" "Blurred Wallpaper From Cache" "$blurred_image" -i "$blurred_image" exit 0 @@ -155,7 +154,7 @@ blurred_cache_image="$blur_cache_dir/${hash}.$ext" } if [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then - swww img -n backdrop "$blurred_image" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null + swww img -n backdrop "$blurred_image" --transition-type fade --transition-duration 2 >/dev/null 2>/dev/null fi notify-send -a "change-wallpaper" "Blurred Wallpaper Generated" "$blurred_image" -i "$blurred_image" @@ -164,7 +163,7 @@ blurred_cache_image="$blur_cache_dir/${hash}.$ext" # Apply wallpaper if [ "$XDG_CURRENT_DESKTOP" = "Hyprland" ]; then - swww img -n background "$image_copied" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null + swww img -n background "$image_copied" --transition-type fade --transition-duration 2 >/dev/null 2>/dev/null notify-send -a "change-wallpaper" "Wallpaper Changed" "$image" -i "$image_copied" diff --git a/config/shell/.bash_profile b/config/shell/.bash_profile index 3f49fe0..639c426 100644 --- a/config/shell/.bash_profile +++ b/config/shell/.bash_profile @@ -11,5 +11,9 @@ command -v nvim >/dev/null 2>&1 && { export VISUAL=nvim } +command -v f >/dev/null 2>&1 || { + alias f="exec fish" +} + [ -f "$HOME/.profile" ] && . "$HOME/.profile" [ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"