summaryrefslogtreecommitdiff
path: root/niri/.config
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-08-17 12:28:43 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-08-17 12:28:43 +0700
commita9d6537bc817f59f1b2eae83605128cc9cbf1219 (patch)
treee148ea303bd5a31d5aeffb77ff158373ccbe83b4 /niri/.config
parent7dd785b1005aec643004c06eaa7af690b00cb48f (diff)
waybar+niri changes
Diffstat (limited to 'niri/.config')
-rw-r--r--niri/.config/niri/config.kdl9
-rwxr-xr-xniri/.config/niri/theme-switcher.sh54
2 files changed, 38 insertions, 25 deletions
diff --git a/niri/.config/niri/config.kdl b/niri/.config/niri/config.kdl
index 9189458..ee872de 100644
--- a/niri/.config/niri/config.kdl
+++ b/niri/.config/niri/config.kdl
@@ -157,12 +157,19 @@ overview {
//color "#00000080"
}
}
-
+layer-rule {
+ match namespace="^backdrop$"
+ place-within-backdrop true
+}
+debug {
+ honor-xdg-activation-with-invalid-serial
+}
binds {
// Application Launchers
Mod+Shift+T { spawn "telegram-desktop"; }
Mod+Shift+B { spawn "/opt/helium/helium" "--enable-features=UseOzonePlatform" "--ozone-platform=wayland"; }
Mod+D { spawn "vicinae" "toggle"; }
+ Mod+Ctrl+V { spawn "vicinae" "deeplink" "vicinae://launch/clipboard/history"; }
Mod+T hotkey-overlay-title="File Manager" { spawn "dolphin"; }
Mod+Alt+R { spawn "foot" "-e" "rmpc"; }
Mod+S hotkey-overlay-title="Terminal" { spawn "foot"; }
diff --git a/niri/.config/niri/theme-switcher.sh b/niri/.config/niri/theme-switcher.sh
index 5c92039..6a22b0a 100755
--- a/niri/.config/niri/theme-switcher.sh
+++ b/niri/.config/niri/theme-switcher.sh
@@ -4,35 +4,41 @@
LIGHT_WALLPAPER="$HOME/Pictures/wallpapers/day.jpg"
DARK_WALLPAPER="$HOME/Pictures/wallpapers/night.jpg"
+# paths to blurred pics for overview backdrop
+LIGHT_BLUR_WALLPAPER="$HOME/Pictures/wallpapers/day-blur.jpg"
+DARK_BLUR_WALLPAPER="$HOME/Pictures/wallpapers/night-blur.jpg"
+
STATE_FILE="/tmp/current_theme_state"
while true; do
- HOUR=$(date +%H)
- HOUR=$((10#$HOUR))
+ HOUR=$(date +%H)
+ HOUR=$((10#$HOUR))
+
+ if [ "$HOUR" -ge 9 ] && [ "$HOUR" -lt 18 ]; then
+ TARGET_STATE="light"
+ else
+ TARGET_STATE="dark"
+ fi
- if [ "$HOUR" -ge 9 ] && [ "$HOUR" -lt 18 ]; then
- TARGET_STATE="light"
+ CURRENT_STATE=$(cat "$STATE_FILE" 2>/dev/null)
+
+ if [ "$CURRENT_STATE" != "$TARGET_STATE" ]; then
+ if [ "$TARGET_STATE" = "light" ]; then
+ wal -n -l -i "$LIGHT_WALLPAPER"
+ awww img "$LIGHT_WALLPAPER"
+ awww -n backdrop img "$LIGHT_BLUR_WALLPAPER"
else
- TARGET_STATE="dark"
+ wal -n -i "$DARK_WALLPAPER"
+ awww img "$DARK_WALLPAPER"
+ awww -n backdrop img "$DARK_BLUR_WALLPAPER"
fi
- CURRENT_STATE=$(cat "$STATE_FILE" 2>/dev/null)
-
- if [ "$CURRENT_STATE" != "$TARGET_STATE" ]; then
- if [ "$TARGET_STATE" = "light" ]; then
- wal -n -l -i "$LIGHT_WALLPAPER"
- awww img "$LIGHT_WALLPAPER"
- else
- wal -n -i "$DARK_WALLPAPER"
- awww img "$DARK_WALLPAPER"
- fi
-
- killall -SIGUSR2 waybar
-
- killall -USR1 foot
-
- echo "$TARGET_STATE" >"$STATE_FILE"
- fi
-
- sleep 60
+ killall -SIGUSR2 waybar
+
+ killall -USR1 foot
+
+ echo "$TARGET_STATE" >"$STATE_FILE"
+ fi
+
+ sleep 60
done