edit: niri README.md & waybar config file
This commit is contained in:
@@ -9,17 +9,16 @@ To have a better experience install all of the following packages
|
||||
sudo pacman -S fuzzel mako xdg-desktop-portal-gtk xdg-desktop-portal-gnome swaybg swayidle swaylock xwayland-satellite udiskie hyprlock waybar
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
### Default Replacements
|
||||
*Open terminal* change from `mod+T` to `mod+Return`
|
||||
## Default Replacements
|
||||
Open terminal change from `mod+T` to `mod+Return`
|
||||
```bash
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
|
||||
# Changed to
|
||||
Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
|
||||
```
|
||||
|
||||
*Open application launcher* change from `fuzzel` to `rofi-wayland`
|
||||
Open application launcher change from `fuzzel` to `rofi-wayland`
|
||||
```bash
|
||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||
# Changed to
|
||||
@@ -82,3 +81,77 @@ window-rule {
|
||||
open-floating true
|
||||
}
|
||||
```
|
||||
|
||||
### Layout
|
||||
```bash
|
||||
layout {
|
||||
// Set gaps around windows in logical pixels.
|
||||
gaps 10
|
||||
```
|
||||
Change `gaps 16` to `gaps 10`
|
||||
|
||||
### Focus-ring
|
||||
```bash
|
||||
focus-ring {
|
||||
// Uncomment this line to disable the focus ring.
|
||||
// off
|
||||
|
||||
// How many logical pixels the ring extends out from the windows.
|
||||
width 2
|
||||
|
||||
// Colors can be set in a variety of ways:
|
||||
// - CSS named colors: "red"
|
||||
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||
|
||||
// Color of the ring on the active monitor.
|
||||
// active-color "#7fc8ff"
|
||||
active-color "#fe8019"
|
||||
|
||||
// Color of the ring on inactive monitors.
|
||||
//
|
||||
// The focus ring only draws around the active window, so the only place
|
||||
// where you can see its inactive-color is on other monitors.
|
||||
// inactive-color "#505050"
|
||||
inactive-color "#7c6f64"
|
||||
```
|
||||
Change `width 4` to `width 2`
|
||||
Change `active-color "#7fc8ff"` to `active-color "fe8019"`
|
||||
Change `inactive-color "#505050"` to `inactive-color "#7c6f64"`
|
||||
|
||||
### Output
|
||||
```bash
|
||||
/-output "eDP-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@120.030"
|
||||
|
||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||
scale 2
|
||||
|
||||
// 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=1280 y=0
|
||||
}
|
||||
```
|
||||
Settings for `output` would need to be change as per device. I am mostly using `niri` on desktops. To get what resolutions your display can take run `niri msg outputs`
|
||||
|
||||
## Independent File Configuration
|
||||
|
||||
@@ -4,13 +4,9 @@
|
||||
"position": "top",
|
||||
"spacing": 0,
|
||||
"height": 32,
|
||||
"modules-left": [
|
||||
"niri/workspaces"
|
||||
],
|
||||
"modules-left": ["niri/workspaces"],
|
||||
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
"modules-center": ["clock"],
|
||||
|
||||
"modules-right": [
|
||||
"group/tray-expander",
|
||||
@@ -19,7 +15,7 @@
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"battery",
|
||||
"idle_inhibitor"
|
||||
"idle_inhibitor",
|
||||
],
|
||||
|
||||
"niri/workspaces": {
|
||||
@@ -38,36 +34,35 @@
|
||||
"8": "8",
|
||||
"9": "9",
|
||||
"10": "10",
|
||||
"focused": ""
|
||||
"focused": "",
|
||||
},
|
||||
"persistent-workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
"5": []
|
||||
"5": [],
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"format": "",
|
||||
"on-click": "alacritty -e btop"
|
||||
"on-click": "alacritty -e btop",
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "☕",
|
||||
"deactivated": "☾"
|
||||
}
|
||||
"activated": "",
|
||||
"deactivated": "",
|
||||
},
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%A %H:%M}",
|
||||
"format-alt": "{:%d %B W%V %Y}",
|
||||
"tooltip": false,
|
||||
"on-click-right": "~/.local/share/omarchy/bin/omarchy-cmd-tzupdate"
|
||||
"on-click-right": "~/.local/share/omarchy/bin/omarchy-cmd-tzupdate",
|
||||
},
|
||||
"network": {
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
@@ -80,7 +75,7 @@
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"interval": 3,
|
||||
"nospacing": 1,
|
||||
"on-click": "kitty --class=Impala -e impala"
|
||||
"on-click": "kitty --class=Impala -e impala",
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
@@ -88,12 +83,8 @@
|
||||
"format-charging": "{icon}",
|
||||
"format-plugged": "",
|
||||
"format-icons": {
|
||||
"charging": [
|
||||
"", "", "", "", "", "", "", "", "", ""
|
||||
],
|
||||
"default": [
|
||||
"", "", "", "", "", "", "", "", "", ""
|
||||
]
|
||||
"charging": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"default": ["", "", "", "", "", "", "", "", "", ""],
|
||||
},
|
||||
"format-full": "",
|
||||
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
||||
@@ -101,15 +92,15 @@
|
||||
"interval": 5,
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
}
|
||||
"critical": 10,
|
||||
},
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "",
|
||||
"format-disabled": "",
|
||||
"format-connected": "",
|
||||
"tooltip-format": "Devices connected: {num_connections}",
|
||||
"on-click": "blueberry"
|
||||
"on-click": "blueberry",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}",
|
||||
@@ -119,26 +110,23 @@
|
||||
"scroll-step": 5,
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
}
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
},
|
||||
"group/tray-expander": {
|
||||
"orientation": "inherit",
|
||||
"drawer": {
|
||||
"transition-duration": 600,
|
||||
"children-class": "tray-group-item"
|
||||
"children-class": "tray-group-item",
|
||||
},
|
||||
"modules": [
|
||||
"custom/expand-icon",
|
||||
"tray"
|
||||
]
|
||||
"modules": ["custom/expand-icon", "tray"],
|
||||
},
|
||||
"custom/expand-icon": {
|
||||
"format": " ",
|
||||
"tooltip": false
|
||||
"tooltip": false,
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 12,
|
||||
"spacing": 12
|
||||
}
|
||||
"spacing": 12,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user