mod: niri and waybar default global settings

This commit is contained in:
Ricardo
2026-01-10 17:47:58 -08:00
parent 3908c07ae9
commit a8fc3b4aa0
4 changed files with 18 additions and 5 deletions

View File

@@ -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"