mod: niri and waybar default global settings
This commit is contained in:
@@ -6,7 +6,7 @@ sudo pacman -S niri
|
|||||||
|
|
||||||
To have a better experience install all of the following packages
|
To have a better experience install all of the following packages
|
||||||
```bash
|
```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
|
## Configuration
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ output "eDP-1" {
|
|||||||
// for the resolution.
|
// for the resolution.
|
||||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
// 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.
|
// 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.
|
// 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:
|
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||||
@@ -111,6 +111,12 @@ output "eDP-1" {
|
|||||||
position x=1280 y=0
|
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.
|
// Settings that influence how windows are positioned and sized.
|
||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://yalter.github.io/niri/Configuration:-Layout
|
// https://yalter.github.io/niri/Configuration:-Layout
|
||||||
@@ -276,6 +282,7 @@ layout {
|
|||||||
|
|
||||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||||
spawn-at-startup "waybar"
|
spawn-at-startup "waybar"
|
||||||
|
spawn-at-startup "hypridle"
|
||||||
|
|
||||||
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
||||||
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
|
// 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"
|
spawn-sh-at-startup "~/.config/niri/scripts/swaybg-random.sh"
|
||||||
|
|
||||||
// Swayidle start script
|
// 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
|
// If using KDE, this will help with kwallet
|
||||||
spawn-at-startup "/usr/lib/pam_kwallet_init"
|
spawn-at-startup "/usr/lib/pam_kwallet_init"
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/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'
|
||||||
|
|||||||
2
configs/niri_l/scripts/swayidle_hyprlock_bak.sh
Executable file
2
configs/niri_l/scripts/swayidle_hyprlock_bak.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'
|
||||||
Reference in New Issue
Block a user