updating and trying to simplify

This commit is contained in:
Matt Nish-Lapidus 2025-01-27 15:34:15 -05:00
parent c079588bdf
commit f5a0090ea0
12 changed files with 348 additions and 50 deletions

View file

View file

@ -0,0 +1,12 @@
(defwindow example
:monitor 0
:geometry (geometry :x "0%"
:y "20px"
:width "90%"
:height "30px"
:anchor "top center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:wm-ignore false
"example content")

View file

@ -20,22 +20,34 @@ input {
mouse {
natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "no-scroll"
accel-speed 0.2
accel-profile "flat"
}
// Uncomment this to make the mouse warp to the center of newly focused windows.
// warp-mouse-to-focus
workspace-auto-back-and-forth
}
output "eDP-1" {
mode "2560x1600"
background-color "#000000"
scale 1.5
scale 1
transform "normal"
}
output "DP-3" {
mode "3840x2160@59.997"
background-color "#000000"
scale 1.1
transform "normal"
}
environment {
DISPLAY ":0"
//QT_QPA_PLATFORM "wayland"
//XDG_CURRENT_DESKTOP "niri"
//XDG_SESSION_TYPE "wayland"
}
layout {
gaps 10
center-focused-column "never"
@ -57,21 +69,31 @@ layout {
}
}
prefer-no-csd
workspace "main"
workspace "scratchpad"
spawn-at-startup "mako"
spawn-at-startup "yambar"
spawn-at-startup "xwayland-satellite"
spawn-at-startup "fuzzel"
// prefer-no-csd
// spawn-at-startup "mako"
// spawn-at-startup "fuzzel"
// spawn-at-startup "eww" "daemon"
spawn-at-startup "xwayland-satellite" ":0"
spawn-at-startup "clipse" "-listen"
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
animations {
slowdown 3.0
slowdown 1.0
}
window-rule {
match app-id="plexamp"
open-on-workspace "scratchpad"
open-floating true
}
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
// Work around WezTerm's initial configure bug
// Work around WezTerm initial configure bug
// by setting an empty default-column-width.
window-rule {
match app-id=r#"^org\.wezfurlong\.wezterm$"#
@ -88,7 +110,7 @@ window-rule {
}
window-rule {
geometry-corner-radius 6
geometry-corner-radius 12
clip-to-geometry true
}
@ -98,7 +120,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T { spawn "wezterm"; }
Mod+D { spawn "fuzzel"; }
Mod+Space { spawn "fuzzel"; }
Super+Alt+L { spawn "swaylock"; }
// Example volume keys mappings for PipeWire & WirePlumber.
@ -258,7 +280,8 @@ binds {
// Move the focused window between the floating and the tiling layout.
Mod+X { toggle-window-floating; }
Mod+Shift+X { switch-focus-between-floating-and-tiling; }
// Mod+Shift+X { switch-focus-between-floating-and-tiling; }
Mod+Shift+X { focus-workspace "scratchpad"; }
// Actions to switch layouts.
// Note: if you uncomment these, make sure you do NOT have
@ -274,7 +297,7 @@ binds {
// The quit action will show a confirmation dialog to avoid accidental exits.
Mod+Shift+E { quit; }
Ctrl+Alt+Delete { quit; }
//Ctrl+Alt+Delete { quit; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.

View file

@ -0,0 +1,51 @@
{
"modules-left": ["clock", "niri/workspaces", "custom/media"],
"modules-center": ["niri/window"],
"modules-right": ["tray", "pulseaudio", "idle_inhibitor", "custom/power"],
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname} ",
"format-disconnected": "",
"max-length": 50,
"on-click": "kitty -e 'nmtui'"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
},
"tray": {
"icon-size": 15,
"spacing": 10
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}",
"on-click": "gnome-calendar"
},
"pulseaudio": {
"format": "{volume}% {icon} ",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": "0% {icon} ",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/power": {
"format": " ",
"on-click": "wlogout"
}
}

View file

@ -0,0 +1,101 @@
* {
border: none;
font-size: 14px;
font-family: "JetBrainsMono Nerd Font,JetBrainsMono NF" ;
min-height: 25px;
}
window#waybar {
background: transparent;
margin: 5px;
}
#custom-logo {
padding: 0 10px;
}
.modules-right {
padding-left: 5px;
border-radius: 15px 0 0 15px;
margin-top: 2px;
background: #000000;
}
.modules-center {
padding: 0 15px;
margin-top: 2px;
border-radius: 15px 15px 15px 15px;
background: #000000;
}
.modules-left {
border-radius: 0 15px 15px 0;
margin-top: 2px;
background: #000000;
}
#battery,
#custom-clipboard,
#custom-colorpicker,
#custom-powerDraw,
#bluetooth,
#pulseaudio,
#network,
#disk,
#memory,
#backlight,
#cpu,
#temperature,
#custom-weather,
#idle_inhibitor,
#jack,
#tray,
#window,
#workspaces,
#clock {
padding: 0 5px;
}
#pulseaudio {
padding-top: 3px;
}
#temperature.critical,
#pulseaudio.muted {
color: #FF0000;
padding-top: 0;
}
#clock{
color: #5fd1fa;
}
#battery.charging {
color: #ffffff;
background-color: #26A65B;
}
#battery.warning:not(.charging) {
background-color: #ffbe61;
color: black;
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}

View file

@ -43,7 +43,7 @@ local workspace_switcher = wezterm.plugin.require("https://github.com/MLFlexer/s
config.enable_wayland = false;
config.front_end = "WebGpu";
config.font_size = 11
config.font_size = 13
config.font = wezterm.font {
family = 'JetBrains Mono',
weight = 'Medium'

View file

@ -0,0 +1,12 @@
bar:
height: 26
location: top
spacing: 5
margin: 7
background: 000000ff
right:
- clock:
time-format: "%H:%M %Z"
content:
- string: {text: "{time}"}