add: niri getting started config

This commit is contained in:
Ricardo
2025-12-21 00:52:59 -08:00
parent ca1cacdd5f
commit 957c8dd029
15 changed files with 1104 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
# Wallpaper directory
WP_FOLDER=/home/toniizk/Pictures/Backgrounds
# Find a random image file (supports png/jpg, add more extensions if needed)
FILE=$(find "$WP_FOLDER" -type f \( -name '*.png' -o -name '*.jpg' \) | shuf -n1)
# Kill any existing swaybg process
killall swaybg
# Start a new swaybg instance with the random image
swaybg -i "$FILE" -m fill &

View File

@@ -0,0 +1,2 @@
#!/bin/sh
swayidle -w timeout 300 'hyprlock' timeout 500 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' before-sleep 'hyplock'

View File

@@ -0,0 +1,2 @@
#!/bin/sh
swayidle -w timeout 300 'swaylock' timeout 600 'niri msg action power-off-monitors' before-sleep 'swaylock'

View File

@@ -0,0 +1,9 @@
#!/bin/bash
if pgrep -x "rofi" > /dev/null
then
killall rofi
else
~/.config/rofi/launchers/type-4/launcher.sh
fi