diff --git a/configs/niri_l/README.md b/configs/niri_l/README.md index 9738b2a..48172ea 100644 --- a/configs/niri_l/README.md +++ b/configs/niri_l/README.md @@ -6,7 +6,7 @@ sudo pacman -S niri To have a better experience install all of the following packages ```bash -sudo pacman -S fuzzel mako xdg-desktop-portal-gtk xdg-desktop-portal-gnome swaybg swayidle swaylock xwayland-satellite udiskie hyprlock hypridle waybar impala +sudo pacman -S fuzzel mako xdg-desktop-portal-gtk xdg-desktop-portal-gnome swaybg swayidle swaylock xwayland-satellite udiskie hyprlock waybar ``` ## Configuration diff --git a/configs/niri_l/config.kdl b/configs/niri_l/config.kdl index e348e87..79471d1 100644 --- a/configs/niri_l/config.kdl +++ b/configs/niri_l/config.kdl @@ -90,10 +90,10 @@ output "eDP-1" { // for the resolution. // If the mode is omitted altogether or is invalid, niri will pick one automatically. // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. - mode "1920x1080@60.020" + mode "1920x1080@60" // You can use integer or fractional scale, for example use 1.5 for 150% scale. - scale 1.15 + scale 1.0 // Transform allows to rotate the output counter-clockwise, valid values are: // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. @@ -111,6 +111,12 @@ output "eDP-1" { position x=1280 y=0 } +output "HDMI-A-1" { + mode "4096x2160@60.000" + scale 1.25 + transform "normal" +} + // Settings that influence how windows are positioned and sized. // Find more information on the wiki: // https://yalter.github.io/niri/Configuration:-Layout @@ -276,6 +282,7 @@ layout { // This line starts waybar, a commonly used bar for Wayland compositors. spawn-at-startup "waybar" +spawn-at-startup "hypridle" // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" @@ -283,7 +290,7 @@ spawn-at-startup "waybar" spawn-sh-at-startup "~/.config/niri/scripts/swaybg-random.sh" // Swayidle start script -spawn-sh-at-startup "~/.config/niri/scripts/swayidle_hyprlock.sh" +// spawn-sh-at-startup "~/.config/niri/scripts/swayidle_hyprlock.sh" // If using KDE, this will help with kwallet spawn-at-startup "/usr/lib/pam_kwallet_init" diff --git a/configs/niri_l/scripts/swayidle_hyprlock.sh b/configs/niri_l/scripts/swayidle_hyprlock.sh index 7cda386..ea76cd2 100755 --- a/configs/niri_l/scripts/swayidle_hyprlock.sh +++ b/configs/niri_l/scripts/swayidle_hyprlock.sh @@ -1,2 +1,6 @@ #!/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' +swayidle -w \ + timeout 300 'hyprlock' \ + timeout 500 'niri msg action power-off-monitors' \ + resume 'niri msg action power-on-monitors' \ + before-sleep 'hyplock' diff --git a/configs/niri_l/scripts/swayidle_hyprlock_bak.sh b/configs/niri_l/scripts/swayidle_hyprlock_bak.sh new file mode 100755 index 0000000..7cda386 --- /dev/null +++ b/configs/niri_l/scripts/swayidle_hyprlock_bak.sh @@ -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'