fix
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
# ./nvim.nix
|
||||
inputs.spicetify-nix.homeManagerModules.spicetify
|
||||
|
||||
./programs/niri/niri.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
@@ -91,6 +93,7 @@
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
init.defaultBranch = "main";
|
||||
user.name = "winter";
|
||||
user.email = "winterekisha@gmail.com";
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ input {
|
||||
// Find more information on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Outputs
|
||||
// Remember to uncomment the node by removing "/-"!
|
||||
/-output "eDP-1" {
|
||||
output "DP-2" {
|
||||
// Uncomment this line to disable this output.
|
||||
// off
|
||||
|
||||
@@ -85,10 +85,10 @@ input {
|
||||
// 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@120.030"
|
||||
mode "2560x1440@144.000"
|
||||
|
||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||
scale 2
|
||||
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.
|
||||
@@ -103,8 +103,15 @@ input {
|
||||
// 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=1280 y=0
|
||||
position x=0 y=0
|
||||
variable-refresh-rate on-demand=true
|
||||
}
|
||||
output "DP-1"{
|
||||
mode "1920x1080@60.000"
|
||||
transform "90"
|
||||
position x=-1080 y=-240
|
||||
}
|
||||
|
||||
|
||||
// Settings that influence how windows are positioned and sized.
|
||||
// Find more information on the wiki:
|
||||
@@ -269,6 +276,7 @@ layout {
|
||||
|
||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||
spawn-at-startup "waybar"
|
||||
spawn-at-startup "mako --default-timeout=5000"
|
||||
|
||||
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
||||
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
|
||||
@@ -346,6 +354,12 @@ window-rule {
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
// helps steam compatibility
|
||||
match app-id=r#"^steam_app_"#
|
||||
open-fullscreen true
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
@@ -362,7 +376,7 @@ binds {
|
||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "kitty"; }
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
|
||||
@@ -455,7 +469,10 @@ binds {
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
//TODO:
|
||||
//y -> monitor left
|
||||
//o -> monitor right
|
||||
// get rid of Page*
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."niri/config.kdl".source = ./config.kdl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user