diff --git a/eww/bars/niri/bar.yuck b/eww/bars/niri/bar.yuck new file mode 100644 index 0000000..9eb3c55 --- /dev/null +++ b/eww/bars/niri/bar.yuck @@ -0,0 +1,78 @@ +(defwindow niri-1 + :monitor 0 + :geometry (geometry :x "8px" + :y "0px" + :width "20px" + :height "100%" + :anchor "center left") + :stacking "fg" + :exclusive true + :focusable false + (bar :output "DP-3") +) + +(defwindow niri-2 + :monitor 1 + :geometry (geometry :x "8px" + :y "0px" + :width "20px" + :height "100%" + :anchor "center left") + :stacking "fg" + :exclusive true + :focusable false + (bar :output "HDMI-A-1") +) + +(defwidget bar [output] + (centerbox + :class "bar" + :halign "end" + :orientation 'v' + (empty) + (workspaces :output output) + (box + :orientation "v" + :space-evenly false + :valign "end" + (systray + :orientation "v" + :valign "end" + :spacing 5 + :class "systray" + :icon-size 20 + :space-evenly false + ) + (box + :orientation "v" + :class "time" + (label :text {formattime(EWW_TIME, "%H")}) + (label :text {formattime(EWW_TIME, "%M")}) + ) + ) + ) +) + +(defwidget workspaces [output] + (box + :class "workspaces" + :orientation 'v' + :valign "start" + :halign "center" + :space-evenly false + (label :visible false :text {niri-focused} ) ; keep niri-active variable loaded + (label :visible false :text {niri-active} ) ; keep niri-active variable loaded + (label :visible false :text {niri-hidden} ) ; keep niri-active variable loaded + + (for ws in niri-ws + (eventbox :cursor "pointer" + (button + :class "workspace ${niri-focused.id == ws.id ? 'focused' : ''} ${jq(niri-active, ".[] | select(. == ${ws.id})") == ws.id ? "active" : ""} ${jq(niri-hidden, ".[] | select(. == ${ws.id})") == ws.id ? "hidden" : ""}" + :onclick "niri msg action focus-workspace ${ws.idx}" + :visible {ws.output == output} + (label :text {jq(niri-hidden, ".[] | select(. == ${ws.id})") == ws.id ? "+" : ""}) + ) + ) + ) + ) + ) diff --git a/eww/bars/niri/data.yuck b/eww/bars/niri/data.yuck new file mode 100644 index 0000000..1ee3190 --- /dev/null +++ b/eww/bars/niri/data.yuck @@ -0,0 +1,16 @@ + +(deflisten niri-ws + :initial '[]' + `scripts/niri.sh workspaces`) + +(deflisten niri-focused + :initial '{}' + `scripts/niri.sh focused`) + +(deflisten niri-active + :initial '{}' + `scripts/niri.sh active`) + +(deflisten niri-hidden + :initial '{}' + `scripts/niri.sh hidden`) diff --git a/eww/bars/niri/eww.css b/eww/bars/niri/eww.css new file mode 100644 index 0000000..bf38960 --- /dev/null +++ b/eww/bars/niri/eww.css @@ -0,0 +1,55 @@ +.bar { + /* background-color: #141b1e; */ +} + +.workspace { + min-width: 18px; + min-height: 18px; + font-size: 14px; + margin: 2px 0px; + border-radius: 999px; + background-color: rgba(255,255,255,0.25); + color: rgba(255,255,255,0.5); + transition: 0.2s ease; +} +.workspace.focused { + background-color: #8ccf7e; +} +.workspace.hidden { + background-color: rgba(0,0,0,0); +} +.workspace.active { + min-height: 48px; +} + +.time { + font-family: 'IosevkaTerm'; + font-weight: 800; + color: #dadada; + padding: 8px 0px; +} + +/* System tray styling */ + +.background.popup { + background-color: #141b1e; + border: solid 2px #232a2e; +} + +.background.popup menuitem { + padding: 5px; + margin: 0px 2px; +} + +.background.popup menuitem:hover { + background-color: #232a2e; +} + +.background.popup menuitem:disabled { + color: rgba(255, 255, 255, 0.5); +} + +.background.popup separator { + margin: 0px 5px; + border-bottom: solid 1px #232a2e; +} diff --git a/eww/bars/niri/eww.yuck b/eww/bars/niri/eww.yuck new file mode 100644 index 0000000..29a420b --- /dev/null +++ b/eww/bars/niri/eww.yuck @@ -0,0 +1,3 @@ +(include "bars/niri/data.yuck") +(include "bars/niri/bar.yuck") +(include "bars/niri/panel.yuck") diff --git a/eww/bars/niri/panel.yuck b/eww/bars/niri/panel.yuck new file mode 100644 index 0000000..d977122 --- /dev/null +++ b/eww/bars/niri/panel.yuck @@ -0,0 +1,28 @@ +(defwindow niri-widget + :monitor 0 + :geometry (geometry :x "4.1665%" + :y "0px" + :width "25%" + :height "50%" + :anchor "center right") + :stacking "bg" + :exclusive false + :focusable false + (box + :class "panel" + :orientation "v" + (time) + (systray + :space-evenly true + :halign "baseline" + :valign "center" + :spacing 5 + :class "systray" + :icon-size 24 + ) + ) +) + +(defwidget time [] + (label :text "hi") + ) diff --git a/eww/eww.css b/eww/eww.css index 6f4bafc..e4bf480 100755 --- a/eww/eww.css +++ b/eww/eww.css @@ -1,6 +1,7 @@ /* @import "bars/i3/eww.css"; */ /* @import "cards/eww.css"; */ -@import "bars/hypr/eww.css"; +/* @import "bars/hypr/eww.css"; */ +@import "bars/niri/eww.css"; /* @import "catppuccin.css"; */ * { diff --git a/eww/eww.yuck b/eww/eww.yuck index 43527c5..8472c57 100755 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -1,10 +1,10 @@ ; (include 'bars/i3/eww.yuck') ; (include 'cards/eww.yuck') (include 'bars/hypr/eww.yuck') +(include 'bars/niri/eww.yuck') (include 'data/music.yuck') (include 'data/system.yuck') ; Placeholder widget for centerboxes (defwidget empty [] '') - diff --git a/eww/scripts/niri.sh b/eww/scripts/niri.sh new file mode 100755 index 0000000..9a70fd1 --- /dev/null +++ b/eww/scripts/niri.sh @@ -0,0 +1,69 @@ +#!/bin/bash + +stream_workspace_list() { + niri msg --json event-stream | while read -r line; do + case "$line" in + *WorkspacesChanged*) + niri msg --json workspaces | jq -c 'sort_by(.idx)' + ;; + esac + done +} + +get_focused() { + niri msg --json workspaces | jq -c '.[] | select(.is_focused)' +} + +stream_focus() { + get_focused + niri msg --json event-stream | while read -r line; do + case "$line" in + *WorkspaceActivated*|*WorkspacesChanged*) + get_focused + ;; + esac + done +} + +get_active() { + niri msg --json workspaces | jq -c 'map(select(.is_active)) | map(.id)' +} + +stream_active() { + get_active + niri msg --json event-stream | while read -r line; do + case "$line" in + *WorkspaceActivated*|*WorkspacesChanged*) + get_active + ;; + esac + done +} + +get_hidden() { + niri msg --json workspaces | jq -c "map(select((.active_window_id | not) and (.is_active | not))) | map(.id)" +} + +stream_hidden() { + get_hidden + niri msg --json event-stream | while read -r line; do + case "$line" in + *WorkspaceActivated*|*WorkspacesChanged*) + get_hidden + ;; + esac + done +} + +if [[ $1 == 'workspaces' ]] ; then + stream_workspace_list +fi +if [[ $1 == 'focused' ]] ; then + stream_focus +fi +if [[ $1 == 'active' ]] ; then + stream_active +fi +if [[ $1 == 'hidden' ]] ; then + stream_hidden +fi diff --git a/niri/config.kdl b/niri/config.kdl new file mode 100644 index 0000000..9340f60 --- /dev/null +++ b/niri/config.kdl @@ -0,0 +1,477 @@ +// This config is in the KDL format: https://kdl.dev +// "/-" comments out the following node. +// Check the wiki for a full description of the configuration: +// https://yalter.github.io/niri/Configuration:-Introduction + +input { + keyboard { + xkb { + // You can set rules, model, layout, variant and options. + // For more information, see xkeyboard-config(7). + + // For example: + // layout "us,ru" + // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" + + // If this section is empty, niri will fetch xkb settings + // from org.freedesktop.locale1. You can control these using + // localectl set-x11-keymap. + } + + // Enable numlock on startup, omitting this setting disables it. + numlock + } + + // Next sections include libinput settings. + // Omitting settings disables them, or leaves them at their default values. + // All commented-out settings here are examples, not defaults. + touchpad { + // off + tap + // dwt + // dwtp + // drag false + // drag-lock + natural-scroll + // accel-speed 0.2 + // accel-profile "flat" + // scroll-method "two-finger" + // disabled-on-external-mouse + } + + mouse { + // off + // natural-scroll + // accel-speed 0.2 + // accel-profile "flat" + // scroll-method "no-scroll" + } + + trackpoint { + // off + // natural-scroll + // accel-speed 0.2 + // accel-profile "flat" + // scroll-method "on-button-down" + // scroll-button 273 + // scroll-button-lock + // middle-emulation + } + + // Uncomment this to make the mouse warp to the center of newly focused windows. + // warp-mouse-to-focus + + focus-follows-mouse max-scroll-amount="0%" +} + +gestures { + hot-corners { + off + } +} + +overview { + backdrop-color "#141b1e" +} + +// Desktop Settings +output "DP-3" { + mode "2560x1440@59.951" + scale 1.3333 + position x=0 y=0 +} +output "HDMI-A-1" { + mode "1920x1080@60.000" + position x=1920 y=0 +} + + +layout { + gaps 8 + + // When to center a column when changing focus, options are: + // - "never", default behavior, focusing an off-screen column will keep at the left + // or right edge of the screen. + // - "always", the focused column will always be centered. + // - "on-overflow", focusing a column will center it if it doesn't fit + // together with the previously focused column. + center-focused-column "never" + + preset-column-widths { + proportion 0.3333 + proportion 0.5 + proportion 0.6667 + } + + preset-window-heights { + proportion 0.5 + proportion 1.0 + } + + // You can change the default width of the new windows. + default-column-width { proportion 0.6667; } + // If you leave the brackets empty, the windows themselves will decide their initial width. + // default-column-width {} + + // By default focus ring and border are rendered as a solid background rectangle + // behind windows. That is, they will show up through semitransparent windows. + // This is because windows using client-side decorations can have an arbitrary shape. + // + // If you don't like that, you should uncomment `prefer-no-csd` below. + // Niri will draw focus ring and border *around* windows that agree to omit their + // client-side decorations. + // + // Alternatively, you can override it with a window rule called + // `draw-border-with-background`. + + // You can change how the focus ring looks. + 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 "#8ccf7e" + + // 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 "#232a2d" + + // You can also use gradients. They take precedence over solid colors. + // Gradients are rendered the same as CSS linear-gradient(angle, from, to). + // The angle is the same as in linear-gradient, and is optional, + // defaulting to 180 (top-to-bottom gradient). + // You can use any CSS linear-gradient tool on the web to set these up. + // Changing the color space is also supported, check the wiki for more info. + // + active-gradient from="#8ccf7e" to="#232a2d" angle=-45 + + // You can also color the gradient relative to the entire view + // of the workspace, rather than relative to just the window itself. + // To do that, set relative-to="workspace-view". + // + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" + } + + // You can also add a border. It's similar to the focus ring, but always visible. + 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 + + width 4 + active-color "#ffc87f" + inactive-color "#505050" + + // Color of the border around windows that request your attention. + urgent-color "#9b0000" + + // Gradients can use a few different interpolation color spaces. + // For example, this is a pastel rainbow gradient via in="oklch longer hue". + // + // active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue" + + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" + } + + // You can enable drop shadows for windows. + shadow { + // Uncomment the next line to enable shadows. + // 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. + // + // Note that niri has no way of knowing about the CSD window corner + // radius. It has to assume that windows have square corners, leading to + // shadow artifacts inside the CSD rounded corners. This setting fixes + // those artifacts. + // + // However, instead you may want to set prefer-no-csd and/or + // geometry-corner-radius. Then, niri will know the corner radius and + // draw the shadow correctly, without having to draw it behind the + // window. These will also remove client-side shadows if the window + // draws any. + // + // draw-behind-window true + + // You can change how shadows look. The values below are in logical + // pixels and match the CSS box-shadow properties. + + // Softness controls the shadow blur radius. + softness 30 + + // Spread expands the shadow. + spread 5 + + // Offset moves the shadow relative to the window. + offset x=0 y=5 + + // You can also change the shadow color and opacity. + color "#0007" + } + + // Struts shrink the area occupied by windows, similarly to layer-shell panels. + // You can think of them as a kind of outer gaps. They are set in logical pixels. + // Left and right struts will cause the next window to the side to always be visible. + // Top and bottom struts will simply add outer gaps in addition to the area occupied by + // layer-shell panels and regular gaps. + struts { + // left 64 + // right 64 + // top 64 + // bottom 64 + } +} + + +// This line starts waybar, a commonly used bar for Wayland compositors. +// spawn-at-startup "waybar" + +spawn-sh-at-startup "swaybg -i ~/Pictures/Wallpapers/wallpaper" +spawn-sh-at-startup "eww open-many niri-1 niri-2" + +hotkey-overlay { + skip-at-startup +} + +prefer-no-csd + +screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" + +// You can also set this to null to disable saving screenshots to disk. +// screenshot-path null + +// Animation settings. +// The wiki explains how to configure individual animations: +// https://yalter.github.io/niri/Configuration:-Animations +animations { + // Uncomment to turn off all animations. + // off + + // Slow down all animations by this factor. Values below 1 speed them up instead. + // slowdown 3.0 +} + +// Window rules let you adjust behavior for individual windows. +// Find more information on the wiki: +// https://yalter.github.io/niri/Configuration:-Window-Rules + +// Work around WezTerm's initial configure bug +// by setting an empty default-column-width. +window-rule { + // This regular expression is intentionally made as specific as possible, + // since this is the default config, and we want no false positives. + // You can get away with just app-id="wezterm" if you want. + match app-id=r#"^org\.wezfurlong\.wezterm$"# + default-column-width {} +} + +// Open the Firefox picture-in-picture player as floating by default. +window-rule { + // This app-id regular expression will work for both: + // - host Firefox (app-id is "firefox") + // - Flatpak Firefox (app-id is "org.mozilla.firefox") + match app-id=r#"firefox$"# title="^Picture-in-Picture$" + open-floating true +} + +// Example: block out two password managers from screen capture. +// (This example rule is commented out with a "/-" in front.) +/-window-rule { + match app-id=r#"^org\.keepassxc\.KeePassXC$"# + match app-id=r#"^org\.gnome\.World\.Secrets$"# + + block-out-from "screen-capture" + + // Use this instead if you want them visible on third-party screenshot tools. + // block-out-from "screencast" +} + +// Example: enable rounded corners for all windows. +// (This example rule is commented out with a "/-" in front.) +/-window-rule { + geometry-corner-radius 12 + clip-to-geometry true +} + +binds { + Mod+Shift+Slash { show-hotkey-overlay; } + + Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } + Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn-sh "fuzzel"; } + + + // Open/close the Overview: a zoomed-out view of workspaces and windows. + // You can also move the mouse into the top-left hot corner, + // or do a four-finger swipe up on a touchpad. + Mod+O repeat=false { toggle-overview; } + + Mod+Shift+Q repeat=false { close-window; } + + // Focus Movement + Mod+Left { focus-column-or-monitor-left; } + Mod+Down { focus-window-or-workspace-down; } + Mod+Up { focus-window-or-workspace-up; } + Mod+Right { focus-column-or-monitor-right; } + Mod+H { focus-column-or-monitor-left; } + Mod+J { focus-window-or-workspace-down; } + Mod+K { focus-window-or-workspace-up; } + Mod+L { focus-column-or-monitor-right; } + + // Window Movement + Mod+Shift+Left { move-column-left-or-to-monitor-left; } + Mod+Shift+Down { move-window-down; } + Mod+Shift+Up { move-window-up; } + Mod+Shift+Right { move-column-right-or-to-monitor-right; } + Mod+Shift+H { move-column-left-or-to-monitor-left; } + Mod+Shift+J { move-window-down; } + Mod+Shift+K { move-window-up; } + Mod+Shift+L { move-column-right-or-to-monitor-right; } + + // Monitor Focus Movement + Mod+Ctrl+Left { focus-monitor-left; } + Mod+Ctrl+Down { focus-monitor-down; } + Mod+Ctrl+Up { focus-monitor-up; } + Mod+Ctrl+Right { focus-monitor-right; } + Mod+Ctrl+H { focus-monitor-left; } + Mod+Ctrl+J { focus-monitor-down; } + Mod+Ctrl+K { focus-monitor-up; } + Mod+Ctrl+L { focus-monitor-right; } + + // Column Monitor Movement + Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } + Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } + Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } + Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } + Mod+Shift+Ctrl+H { move-column-to-monitor-left; } + Mod+Shift+Ctrl+J { move-column-to-monitor-down; } + Mod+Shift+Ctrl+K { move-column-to-monitor-up; } + Mod+Shift+Ctrl+L { move-column-to-monitor-right; } + + Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } + Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } + Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } + Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } + + Mod+Shift+WheelScrollDown { focus-column-right; } + Mod+Shift+WheelScrollUp { focus-column-left; } + Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } + Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } + + // Workspace Focus + Mod+1 { focus-workspace 1; } + Mod+2 { focus-workspace 2; } + Mod+3 { focus-workspace 3; } + Mod+4 { focus-workspace 4; } + Mod+5 { focus-workspace 5; } + Mod+6 { focus-workspace 6; } + Mod+7 { focus-workspace 7; } + Mod+8 { focus-workspace 8; } + Mod+9 { focus-workspace 9; } + + // Workspace movement + Mod+Shift+1 { move-column-to-workspace 1; } + Mod+Shift+2 { move-column-to-workspace 2; } + Mod+Shift+3 { move-column-to-workspace 3; } + Mod+Shift+4 { move-column-to-workspace 4; } + Mod+Shift+5 { move-column-to-workspace 5; } + Mod+Shift+6 { move-column-to-workspace 6; } + 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+BracketLeft { consume-or-expel-window-left; } + Mod+BracketRight { consume-or-expel-window-right; } + + // Preset Cycling + Mod+R { switch-preset-column-width; } + Mod+Shift+R { switch-preset-window-height; } + Mod+Ctrl+R { reset-window-height; } + + // Maximizing + Mod+F { maximize-column; } + Mod+Shift+F { fullscreen-window; } + Mod+Ctrl+F { expand-column-to-available-width; } + + Mod+C { center-column; } + + // Window Resizing + Mod+Minus { set-column-width "-10%"; } + Mod+Equal { set-column-width "+10%"; } + Mod+Shift+Minus { set-window-height "-10%"; } + Mod+Shift+Equal { set-window-height "+10%"; } + + // Move the focused window between the floating and the tiling layout. + Mod+Shift+Space { toggle-window-floating; } + Mod+Space { switch-focus-between-floating-and-tiling; } + + // Toggle tabbed column display mode. + // Windows in this column will appear as vertical tabs, + // rather than stacked on top of each other. + Mod+W { toggle-column-tabbed-display; } + + // Actions to switch layouts. + // Note: if you uncomment these, make sure you do NOT have + // a matching layout switch hotkey configured in xkb options above. + // Having both at once on the same hotkey will break the switching, + // since it will switch twice upon pressing the hotkey (once by xkb, once by niri). + // Mod+Space { switch-layout "next"; } + // Mod+Shift+Space { switch-layout "prev"; } + + // Mod+Shift+Period { move-workspace-to-monitor-right; } + // Mod+Shift+Comma { move-workspace-to-monitor-left; } + + Print { screenshot; } + Ctrl+Print { screenshot-screen; } + Alt+Print { screenshot-window; } + + // Applications such as remote-desktop clients and software KVM switches may + // request that niri stops processing the keyboard shortcuts defined here + // so they may, for example, forward the key presses as-is to a remote machine. + // It's a good idea to bind an escape hatch to toggle the inhibitor, + // so a buggy application can't hold your session hostage. + // + // The allow-inhibiting=false property can be applied to other binds as well, + // which ensures niri always processes them, even when an inhibitor is active. + Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } + + // The quit action will show a confirmation dialog to avoid accidental exits. + Mod+Shift+E { 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. + Mod+Shift+P { power-off-monitors; } + + // Example volume keys mappings for PipeWire & WirePlumber. + // The allow-when-locked=true property makes them work even when the session is locked. + // Using spawn-sh allows to pass multiple arguments together with the command. + // "-l 1.0" limits the volume to 100%. + XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; } + XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; } + XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; } + XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; } + + // Example media keys mapping using playerctl. + // This will work with any MPRIS-enabled media player. + XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; } + XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; } + XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; } + XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; } + + // Example brightness key mappings for brightnessctl. + // You can use regular spawn with multiple arguments too (to avoid going through "sh"), + // but you need to manually put each argument in separate "" quotes. + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+5%"; } + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "5%-"; } +} diff --git a/symlinks.sh b/symlinks.sh index a5cb036..e2b1bec 100755 --- a/symlinks.sh +++ b/symlinks.sh @@ -34,6 +34,7 @@ link() { ln -s $DOTFILES_DIR/bat ~/.config/bat ln -s $DOTFILES_DIR/alacritty ~/.config/alacritty ln -s $DOTFILES_DIR/zed ~/.config/zed + ln -s $DOTFILES_DIR/niri ~/.config/niri ln -s $DOTFILES_DIR/.zshrc ~/.zshrc ln -s $DOTFILES_DIR/.tmux.conf ~/.tmux.conf @@ -63,6 +64,7 @@ unlink() { rm -rf ~/.config/hypr rm -rf ~/.config/bat rm -rf ~/.config/zed + rm -rf ~/.config/niri rm -f ~/.zshrc rm -f ~/.zshenv