Add sunset toggle and niri changes, kdeconnect
This commit is contained in:
parent
e6103629c1
commit
6b30de0255
@ -7,8 +7,8 @@ input {
|
|||||||
xkb {
|
xkb {
|
||||||
layout "us"
|
layout "us"
|
||||||
}
|
}
|
||||||
repeat-delay 250
|
repeat-delay 175
|
||||||
repeat-rate 46
|
repeat-rate 50
|
||||||
}
|
}
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
@ -52,13 +52,22 @@ layout {
|
|||||||
|
|
||||||
center-focused-column "never"
|
center-focused-column "never"
|
||||||
|
|
||||||
|
always-center-single-column
|
||||||
|
default-column-display "tabbed"
|
||||||
|
|
||||||
|
tab-indicator {
|
||||||
|
hide-when-single-tab
|
||||||
|
}
|
||||||
|
|
||||||
preset-column-widths {
|
preset-column-widths {
|
||||||
proportion 0.33333
|
proportion 0.33333
|
||||||
proportion 0.5
|
proportion 0.5
|
||||||
proportion 0.66667
|
proportion 0.66667
|
||||||
}
|
}
|
||||||
|
|
||||||
default-column-width { proportion 0.5; }
|
default-column-width {
|
||||||
|
proportion 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
focus-ring {
|
focus-ring {
|
||||||
width 4
|
width 4
|
||||||
@ -111,6 +120,11 @@ window-rule {
|
|||||||
default-column-width { proportion 0.75; }
|
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 "waybar"
|
||||||
spawn-at-startup "swaybg" "-i" "/home/nate/.config/niri/bg.png"
|
spawn-at-startup "swaybg" "-i" "/home/nate/.config/niri/bg.png"
|
||||||
spawn-at-startup "nm-applet" "--indicator"
|
spawn-at-startup "nm-applet" "--indicator"
|
||||||
@ -208,6 +222,7 @@ binds {
|
|||||||
Mod+7 { focus-workspace 7; }
|
Mod+7 { focus-workspace 7; }
|
||||||
Mod+8 { focus-workspace 8; }
|
Mod+8 { focus-workspace 8; }
|
||||||
Mod+9 { focus-workspace 9; }
|
Mod+9 { focus-workspace 9; }
|
||||||
|
Mod+Minus { focus-workspace "scratch"; }
|
||||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||||
@ -232,11 +247,11 @@ binds {
|
|||||||
|
|
||||||
Mod+C { center-column; }
|
Mod+C { center-column; }
|
||||||
|
|
||||||
Mod+Minus { set-column-width "-10%"; }
|
Mod+bracketleft { set-column-width "-10%"; }
|
||||||
Mod+Equal { set-column-width "+10%"; }
|
Mod+bracketright { set-column-width "+10%"; }
|
||||||
|
|
||||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
Mod+Shift+bracketleft { set-window-height "-10%"; }
|
||||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
Mod+Shift+bracketright { set-window-height "+10%"; }
|
||||||
|
|
||||||
// Screenshots - consistent with sway/hyprland
|
// Screenshots - consistent with sway/hyprland
|
||||||
Mod+P { screenshot; }
|
Mod+P { screenshot; }
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
"custom/keyboard-layout",
|
"custom/keyboard-layout",
|
||||||
"battery",
|
"battery",
|
||||||
"backlight",
|
"backlight",
|
||||||
|
"custom/wlsunset",
|
||||||
"tray",
|
"tray",
|
||||||
//"custom/weather",
|
//"custom/weather",
|
||||||
"custom/power",
|
"custom/power",
|
||||||
@ -294,6 +295,15 @@
|
|||||||
"tooltip": false,
|
"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": {
|
"custom/power": {
|
||||||
"format":"⏻",
|
"format":"⏻",
|
||||||
"on-click": "exec ~/.config/waybar/scripts/power-menu.sh",
|
"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;
|
enable = true;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" ];
|
plugins = [ "git" "ssh-agent" ];
|
||||||
theme = "half-life";
|
theme = "half-life";
|
||||||
};
|
};
|
||||||
initContent = ''
|
initContent = ''
|
||||||
@ -249,4 +249,9 @@
|
|||||||
sunset = "17:00";
|
sunset = "17:00";
|
||||||
temperature.night = 3500;
|
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
|
# For nautilus
|
||||||
services.gnome.sushi.enable = true;
|
services.gnome.sushi.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user