diff --git a/frame12/dotfiles/niri/config.kdl b/frame12/dotfiles/niri/config.kdl index 55b007a..1d377d5 100644 --- a/frame12/dotfiles/niri/config.kdl +++ b/frame12/dotfiles/niri/config.kdl @@ -7,8 +7,8 @@ input { xkb { layout "us" } - repeat-delay 250 - repeat-rate 46 + repeat-delay 175 + repeat-rate 50 } touchpad { @@ -51,14 +51,23 @@ layout { gaps 16 center-focused-column "never" - + + always-center-single-column + default-column-display "tabbed" + + tab-indicator { + hide-when-single-tab + } + preset-column-widths { proportion 0.33333 proportion 0.5 proportion 0.66667 } - default-column-width { proportion 0.5; } + default-column-width { + proportion 0.5; + } focus-ring { width 4 @@ -111,6 +120,11 @@ window-rule { default-column-width { proportion 0.75; } } +window-rule { + match at-startup=true app-id="org.keepassxc.KeePassXC" + open-on-workspace "9" +} + spawn-at-startup "waybar" spawn-at-startup "swaybg" "-i" "/home/nate/.config/niri/bg.png" spawn-at-startup "nm-applet" "--indicator" @@ -208,6 +222,7 @@ binds { Mod+7 { focus-workspace 7; } Mod+8 { focus-workspace 8; } Mod+9 { focus-workspace 9; } + Mod+Minus { focus-workspace "scratch"; } Mod+Ctrl+1 { move-column-to-workspace 1; } Mod+Ctrl+2 { move-column-to-workspace 2; } Mod+Ctrl+3 { move-column-to-workspace 3; } @@ -232,11 +247,11 @@ binds { Mod+C { center-column; } - Mod+Minus { set-column-width "-10%"; } - Mod+Equal { set-column-width "+10%"; } + Mod+bracketleft { set-column-width "-10%"; } + Mod+bracketright { set-column-width "+10%"; } - Mod+Shift+Minus { set-window-height "-10%"; } - Mod+Shift+Equal { set-window-height "+10%"; } + Mod+Shift+bracketleft { set-window-height "-10%"; } + Mod+Shift+bracketright { set-window-height "+10%"; } // Screenshots - consistent with sway/hyprland Mod+P { screenshot; } diff --git a/frame12/dotfiles/waybar/config b/frame12/dotfiles/waybar/config index 447483d..d6bd7bc 100644 --- a/frame12/dotfiles/waybar/config +++ b/frame12/dotfiles/waybar/config @@ -27,6 +27,7 @@ "custom/keyboard-layout", "battery", "backlight", + "custom/wlsunset", "tray", //"custom/weather", "custom/power", @@ -294,6 +295,15 @@ "tooltip": false, }, + "custom/wlsunset": { + "format": "{}", + "exec": "~/.config/waybar/scripts/wlsunset-status.sh", + "on-click": "~/.config/waybar/scripts/wlsunset-toggle.sh", + "interval": "once", + "signal": 8, + "tooltip": false, + }, + "custom/power": { "format":"⏻", "on-click": "exec ~/.config/waybar/scripts/power-menu.sh", diff --git a/frame12/dotfiles/waybar/scripts/wlsunset-status.sh b/frame12/dotfiles/waybar/scripts/wlsunset-status.sh new file mode 100755 index 0000000..2096a55 --- /dev/null +++ b/frame12/dotfiles/waybar/scripts/wlsunset-status.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Check if wlsunset service is active and return appropriate icon +if systemctl --user is-active --quiet wlsunset; then + echo "󰖜" # Moon/sunset icon (night mode active) +else + echo "󰖚" # Sun icon (day mode) +fi \ No newline at end of file diff --git a/frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh b/frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh new file mode 100755 index 0000000..9557a66 --- /dev/null +++ b/frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Check if wlsunset service is active +if systemctl --user is-active --quiet wlsunset; then + # Service is running, stop it + systemctl --user stop wlsunset +else + # Service is not running, start it + systemctl --user start wlsunset +fi + +# Send signal to waybar to update the display +pkill -SIGRTMIN+8 waybar \ No newline at end of file diff --git a/frame12/modules/home-manager/home.nix b/frame12/modules/home-manager/home.nix index c4bf2c6..2e35bb8 100644 --- a/frame12/modules/home-manager/home.nix +++ b/frame12/modules/home-manager/home.nix @@ -184,7 +184,7 @@ enable = true; oh-my-zsh = { enable = true; - plugins = [ "git" ]; + plugins = [ "git" "ssh-agent" ]; theme = "half-life"; }; initContent = '' @@ -249,4 +249,9 @@ sunset = "17:00"; temperature.night = 3500; }; + + services.kdeconnect = { + enable = true; + indicator = true; + }; } diff --git a/frame12/modules/niri/niri_conf.nix b/frame12/modules/niri/niri_conf.nix index bfeed9b..a70d402 100755 --- a/frame12/modules/niri/niri_conf.nix +++ b/frame12/modules/niri/niri_conf.nix @@ -96,6 +96,8 @@ }; }; }; + programs.kdeconnect.enable = true; + # programs.kdeconnect.package = pkgs.gnomeExtensions.gsconnect; # For nautilus services.gnome.sushi.enable = true;