add: niri getting started config
This commit is contained in:
14
configs/niri_l/scripts/swaybg-random.sh
Executable file
14
configs/niri_l/scripts/swaybg-random.sh
Executable 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 &
|
||||
|
||||
2
configs/niri_l/scripts/swayidle_hyprlock.sh
Executable file
2
configs/niri_l/scripts/swayidle_hyprlock.sh
Executable 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'
|
||||
2
configs/niri_l/scripts/swayidle_swaylock.sh
Executable file
2
configs/niri_l/scripts/swayidle_swaylock.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
swayidle -w timeout 300 'swaylock' timeout 600 'niri msg action power-off-monitors' before-sleep 'swaylock'
|
||||
9
configs/niri_l/scripts/toggle-rofi.sh
Executable file
9
configs/niri_l/scripts/toggle-rofi.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user