6 Commits

Author SHA1 Message Date
ae1f490426 niri config changes 2025-07-06 15:54:27 +09:30
072f073ac8 selectively merged in main 2025-07-02 22:44:47 +09:30
danmac
06bfbbdd37 minor niri tweaks 2025-07-02 22:40:35 +09:30
danmac
2fa50f2a73 changed lock screen image 2025-06-28 10:05:39 +09:30
danmac
aeeb00aaa9 fixed to minimise the waybar height 2025-06-26 23:03:38 +09:30
danmac
46c48602f6 updated danmac@rnet-beelink bg image 2025-06-26 22:00:07 +09:30
3 changed files with 55 additions and 13 deletions

View File

@@ -4,6 +4,7 @@
// https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction
hotkey-overlay {
// Skip showing the hotkeys
skip-at-startup
}
@@ -51,7 +52,6 @@ input {
trackpoint {
// off
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
@@ -145,14 +145,17 @@ layout {
proportion 0.33333
proportion 0.5
proportion 0.66667
proportion 1.0
// Fixed sets the width in logical pixels exactly.
// fixed 1920
}
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
// preset-window-heights { }
preset-window-heights {
proportion 0.333333
proportion 0.5
proportion 0.666667
}
// You can change the default width of the new windows.
default-column-width { proportion 0.5; }
@@ -279,9 +282,9 @@ layout {
// This line starts waybar, a commonly used bar for Wayland compositors.
// spawn-at-startup "waybar"
spawn-at-startup "swaybg" "-m" "fill" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl"
spawn-at-startup "xwayland-satellite"
spawn-at-startup "swayidle" "-w" "timeout" "601" "niri msg action power-off-monitors" "timeout" "600" "swaylock -f -i /usr/share/backgrounds/gnome/swoosh-l.jxl" "before-sleep" "swaylock -f -i /usr/share/backgrounds/gnome/swoosh-l.jxl"
spawn-at-startup "/home/danmac/.config/niri/sway_startup" "/home/danmac/Pictures/Nextcloud/IMG_8409-Enhanced-NR.jpg"
// spawn-at-startup "xwayland-satellite"
spawn-at-startup "cosmic-app-library"
environment {
DISPLAY ":0"
@@ -340,6 +343,11 @@ window-rule {
open-floating true
}
window-rule {
match app-id=r#"org.pulseaudio.pavucontrol"#
default-column-width { proportion 0.333333; }
}
window-rule {
// Zed and Zen should be 66% wide
match app-id="dev.zed.Zed"
@@ -348,6 +356,26 @@ window-rule {
default-column-width { proportion 0.66667; }
}
window-rule {
// Solve space property manager
match app-id="solvespace"
default-column-width { proportion 0.75; }
}
window-rule {
// Solve space property manager
match title="Property Browser — SolveSpace"
default-column-width { proportion 0.25; }
}
window-rule {
// Nautilus open file window
match app-id="org.gnome.Nautilus" title="Open Folder"
open-floating true
}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
@@ -385,8 +413,10 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; }
Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; }
Mod+Shift+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl"; }
Mod+X hotkey-overlay-title="Open the Default File Manager" { spawn "xdg-open" "/home/danmac/"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/tmp/blurred_IMG_8618-Enhanced-NR.jpg"; }
// toggle notification panel
Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; }
@@ -401,6 +431,8 @@ binds {
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; }
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; }
// Open/close the Overview: a zoomed-out view of workspaces and windows.
// You can also move the mouse into the top-left hot corner,
@@ -545,12 +577,21 @@ binds {
Mod+Shift+7 { move-column-to-workspace 7; }
Mod+Shift+8 { move-column-to-workspace 8; }
Mod+Shift+9 { move-column-to-workspace 9; }
Mod+Ctrl+1 { move-window-to-workspace 1; }
Mod+Ctrl+2 { move-window-to-workspace 2; }
Mod+Ctrl+3 { move-window-to-workspace 3; }
Mod+Ctrl+4 { move-window-to-workspace 4; }
Mod+Ctrl+5 { move-window-to-workspace 5; }
Mod+Ctrl+6 { move-window-to-workspace 6; }
Mod+Ctrl+7 { move-window-to-workspace 7; }
Mod+Ctrl+8 { move-window-to-workspace 8; }
Mod+Ctrl+9 { move-window-to-workspace 9; }
// Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; }
// Switches focus between the current and the previous workspace.
// Mod+Tab { focus-workspace-previous; }
Mod+Tab { focus-workspace-previous; }
// The following binds move the focused window in and out of a column.
// If the window is alone, they will consume it into the nearby column to the side.

View File

@@ -2,7 +2,7 @@
"layer": "top", // Waybar at top layer
"output": "DP-1", // Only display on on monitor
"position": "top", // Waybar position (top|bottom|left|right)
"height": 36, // Waybar height (to be removed for auto height)
"height": 28, // Waybar height (to be removed for auto height)
// Choose the order of the modules
"modules-left": [
"custom/logo",
@@ -41,7 +41,7 @@
},
"wlr/taskbar": {
"active-first": true,
"icon-size": 24,
"icon-size": 20,
"on-click": "activate",
"on-click-middle": "close",
"app_ids-mapping": {
@@ -58,7 +58,7 @@
}
},
"tray": {
// "icon-size": 21,
"icon-size": 20,
"spacing": 10
},
"clock": {

View File

@@ -12,6 +12,7 @@
#waybar {
background-color: alpha(@base, 0.7);
/* background: transparent; */
margin: 0px;
}
#custom-logo {
@@ -19,7 +20,7 @@
background-color: @base;
background-position: center;
background-repeat: no-repeat;
background-size: 24px;
background-size: 40%;
padding: 0px 8px 0px 24px;
}
@@ -34,7 +35,7 @@
#custom-pl-pulse,
#custom-pl-idle-before,
#custom-pl-tray {
font-size: 26px;
font-size: 21px;
}
#workspaces *,