Add sunset toggle and niri changes, kdeconnect
This commit is contained in:
parent
e6103629c1
commit
6b30de0255
@ -7,8 +7,8 @@ input {
|
||||
xkb {
|
||||
layout "us"
|
||||
}
|
||||
repeat-delay 250
|
||||
repeat-rate 46
|
||||
repeat-delay 175
|
||||
repeat-rate 50
|
||||
}
|
||||
|
||||
touchpad {
|
||||
@ -52,13 +52,22 @@ layout {
|
||||
|
||||
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; }
|
||||
|
@ -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",
|
||||
|
8
frame12/dotfiles/waybar/scripts/wlsunset-status.sh
Executable file
8
frame12/dotfiles/waybar/scripts/wlsunset-status.sh
Executable file
@ -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
|
13
frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh
Executable file
13
frame12/dotfiles/waybar/scripts/wlsunset-toggle.sh
Executable file
@ -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
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -96,6 +96,8 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.kdeconnect.enable = true;
|
||||
# programs.kdeconnect.package = pkgs.gnomeExtensions.gsconnect;
|
||||
|
||||
# For nautilus
|
||||
services.gnome.sushi.enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user