Fixed a few things about niriw

This commit is contained in:
2025-12-31 18:24:55 +01:00
parent ec6765263c
commit 2e76994091
3 changed files with 22 additions and 72 deletions

View File

@@ -13,5 +13,6 @@ cursor-style = block
cursor-style-blink = true
background-opacity = .7
background-blur = false
maximize = true
maximize = false
fullscreen = false
window-decoration = false

View File

@@ -104,68 +104,10 @@ output "eDP-1" {
// If the position is unset or results in an overlap, the output is instead placed
// automatically.
position x=0 y=0
}
output "DP-1" {
// Uncomment this line to disable this output.
// off
// Resolution and, optionally, refresh rate of the output.
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
// If the refresh rate is omitted, niri will pick the highest refresh rate
// 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 "2560x1440@60"
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1.5
// Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
transform "normal"
// Position of the output in the global coordinate space.
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
// The cursor can only move between directly adjacent outputs.
// Output scale and rotation has to be taken into account for positioning:
// outputs are sized in logical, or scaled, pixels.
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
// so to put another output directly adjacent to it on the right, set its x to 1920.
// If the position is unset or results in an overlap, the output is instead placed
// automatically.
position x=0 y=0
}
output "HDMI-A-1" {
// Uncomment this line to disable this output.
// off
// Resolution and, optionally, refresh rate of the output.
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
// If the refresh rate is omitted, niri will pick the highest refresh rate
// 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"
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1
// Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
transform "normal"
// Position of the output in the global coordinate space.
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
// The cursor can only move between directly adjacent outputs.
// Output scale and rotation has to be taken into account for positioning:
// outputs are sized in logical, or scaled, pixels.
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
// so to put another output directly adjacent to it on the right, set its x to 1920.
// If the position is unset or results in an overlap, the output is instead placed
// automatically.
position x=2560 y=360
hot-corners {
off
}
}
// Settings that influence how windows are positioned and sized.
@@ -219,7 +161,7 @@ layout {
// You can change how the focus ring looks.
focus-ring {
// Uncomment this line to disable the focus ring.
off
// off
// How many logical pixels the ring extends out from the windows.
width 4
@@ -258,7 +200,7 @@ layout {
border {
// The settings are the same as for the focus ring.
// If you enable the border, you probably want to disable the focus ring.
// off
off
width 4
active-color "#ffc87f"
@@ -279,7 +221,7 @@ layout {
// You can enable drop shadows for windows.
shadow {
// Uncomment the next line to enable shadows.
on
// on
// By default, the shadow draws only around its window, and not behind it.
// Uncomment this setting to make the shadow draw behind its window.
@@ -295,7 +237,7 @@ layout {
// window. These will also remove client-side shadows if the window
// draws any.
//
// draw-behind-window true
draw-behind-window true
// You can change how shadows look. The values below are in logical
// pixels and match the CSS box-shadow properties.
@@ -335,7 +277,7 @@ layout {
spawn-at-startup "waybar"
spawn-at-startup "swaync"
spawn-at-startup "swww-daemon"
spawn-at-startup "kwalletd6"
// spawn-at-startup "kwalletd6"
spawn-at-startup "vesktop"
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
@@ -351,7 +293,7 @@ hotkey-overlay {
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
// This option will also fix border/focus ring drawing behind some semitransparent windows.
// After enabling or disabling this, you need to restart the apps for this to take effect.
// prefer-no-csd
prefer-no-csd
// You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory.
@@ -398,7 +340,7 @@ window-rule {
window-rule {
match app-id="vesktop"
open-on-output "HDMI-A-1"
// open-on-output "HDMI-A-1"
default-column-width { proportion 1.0; }
}
@@ -429,7 +371,7 @@ window-rule {
// Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.)
window-rule {
geometry-corner-radius 16
geometry-corner-radius 8
clip-to-geometry true
}
@@ -450,7 +392,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Return hotkey-overlay-title="Open a Terminal: GhosTTY" { spawn "ghostty"; }
Mod+Space hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Mod+Space hotkey-overlay-title="Run an Application: wofi" { spawn-sh "wofi --show drun"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.

View File

@@ -6,6 +6,7 @@ fuzzel
fzf
ghostty
git
gnome-keyring
hyfetch
ncdu
neovim
@@ -13,10 +14,16 @@ oh-my-posh
otf-linja-pona
power-profiles-daemon
reflector
swaync
swww
tealdeer
reflector
ttf-sourcecodepro-nerd
vesktop
vim
waypaper
wl-clipboard
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
xwayland-satellite
zoxide
zsh