mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: consistent konawall on hyprland
This commit is contained in:
parent
576f3a3e7e
commit
15f40761fb
17 changed files with 92 additions and 72 deletions
|
|
@ -4,7 +4,7 @@ _: {
|
|||
settings = {
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = [
|
||||
"brave-browser.desktop"
|
||||
"firefox.desktop"
|
||||
"thunderbird.desktop"
|
||||
"nheko.desktop"
|
||||
"discord.desktop"
|
||||
|
|
|
|||
|
|
@ -28,16 +28,11 @@ in {
|
|||
SDL_VIDEODRIVER = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
systemd.user.services.swayidle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
variables = ["--all"];
|
||||
extraCommands = [
|
||||
"systemctl --user stop graphical-session.target"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
};
|
||||
xwayland.enable = true;
|
||||
settings = {
|
||||
|
|
@ -73,16 +68,16 @@ in {
|
|||
"eDP-1, 2256x1504, 0x0, 1"
|
||||
];
|
||||
exec-once = [
|
||||
"${pkgs.swww}/bin/swww init"
|
||||
"${pkgs.hypridle}/bin/hypridle"
|
||||
"${pkgs.udiskie}/bin/udiskie &"
|
||||
"${pkgs.dbus}/bin/dbus-update-activation-environment --all"
|
||||
"${pkgs.libsForQt5.polkit-kde-agent}/bin/polkit-kde-agent"
|
||||
"${pkgs.networkmanagerapplet}/bin/nm-applet"
|
||||
"${pkgs.mako}/bin/mako"
|
||||
"${pkgs.swww}/bin/swww init"
|
||||
"${pkgs.systemd}/bin/systemctl --user restart waybar.service"
|
||||
"${pkgs.udiskie}/bin/udiskie &"
|
||||
"${pkgs.pasystray}/bin/pasystray"
|
||||
"${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall"
|
||||
];
|
||||
exec = [
|
||||
];
|
||||
xwayland = {
|
||||
force_zero_scaling = true;
|
||||
|
|
|
|||
|
|
@ -1,19 +1,24 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
desktop_entry = ''
|
||||
[Desktop Entry]
|
||||
Exec=${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
|
||||
Icon=
|
||||
Name=konawall
|
||||
Path=
|
||||
Terminal=False
|
||||
Type=Application
|
||||
'';
|
||||
systemd.user.services.konawall-py = {
|
||||
Unit = {
|
||||
Description = "konawall-py";
|
||||
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
|
||||
After = ["hyprland-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {WantedBy = ["hyprland-session.target"];};
|
||||
};
|
||||
|
||||
konawallConfig = {
|
||||
interval = 30 * 60;
|
||||
interval = 60 * 5;
|
||||
rotate = true;
|
||||
source = "konachan";
|
||||
tags = [
|
||||
|
|
|
|||
|
|
@ -2,13 +2,27 @@
|
|||
kittywitch,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
systemd.user.services.waybar.Unit.X-Restart-Triggers = [
|
||||
(builtins.hashString "md5" (builtins.toJSON config.programs.waybar.settings))
|
||||
];
|
||||
}: let
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
systemd.user.services.waybar = {
|
||||
Install.WantedBy = lib.mkForce ["hyprland-session.target"];
|
||||
Service = {
|
||||
RestartSec = "1s";
|
||||
};
|
||||
Unit = {
|
||||
After = ["hyprland-session.target"];
|
||||
X-Restart-Triggers = [
|
||||
(builtins.hashString "md5" (builtins.toJSON config.programs.waybar.settings))
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
style = let
|
||||
template = kittywitch.sassTemplate {
|
||||
name = "waybar-style";
|
||||
|
|
@ -16,7 +30,6 @@
|
|||
};
|
||||
in
|
||||
template.source;
|
||||
systemd.enable = true;
|
||||
settings.main = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
%widget_unpadded
|
||||
transition: none
|
||||
background: $base01
|
||||
background: rgba($base01, 0.5)
|
||||
color: $base07
|
||||
margin: 0 4px
|
||||
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
padding-top: 2px
|
||||
|
||||
window#waybar
|
||||
background: rgba($base00, 0.9)
|
||||
background: rgba($base00, 0.1)
|
||||
border-bottom: 2px solid transparent
|
||||
|
||||
// sway/workspaces
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
gtk = {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
name = "Papirus";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Numix-Square-Light";
|
||||
package = pkgs.numix-icon-theme-square;
|
||||
};
|
||||
|
||||
theme = {
|
||||
|
|
@ -15,18 +15,6 @@
|
|||
name = "Numix-Cursor";
|
||||
package = pkgs.numix-cursor-theme;
|
||||
};
|
||||
|
||||
gtk3.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme=1
|
||||
'';
|
||||
};
|
||||
|
||||
gtk4.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme=1
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables.GTK_THEME = "Arc";
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ _: {
|
|||
"kdeglobals"."General"."BrowserApplication" = "firefox.desktop";
|
||||
"kdeglobals"."General"."TerminalApplication" = "wezterm start --cwd .";
|
||||
"kdeglobals"."General"."TerminalService" = "org.wezfurlong.wezterm.desktop";
|
||||
"kxkbrc"."Layout"."Options" = "terminate:ctrl_alt_bksp,ctrl:nocaps";
|
||||
"kxkbrc"."Layout"."ResetOldOptions" = true;
|
||||
"plasmarc"."Theme"."name" = "Arc";
|
||||
"kxkbrc"."Layout"."Options" = "terminate:ctrl_alt_bksp,ctrl:hyper_capscontrol";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,12 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
konawallWithDelay = pkgs.writeShellScriptBin "konawall" ''
|
||||
sleep 5 && ${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
|
||||
'';
|
||||
desktop_entry = ''
|
||||
[Desktop Entry]
|
||||
Exec=${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
|
||||
Exec=${konawallWithDelay}/bin/konawall
|
||||
Icon=
|
||||
Name=konawall
|
||||
Path=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue