feat(xfce): add

This commit is contained in:
Kat Inskip 2024-04-06 11:21:36 -07:00
parent d37bd2c669
commit 4932e4fd0d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
34 changed files with 490 additions and 203 deletions

View file

@ -27,6 +27,9 @@ _: {
workspace-names = ["Main"];
resize-with-right-button = true;
};
"org/gnome/desktop/input-sources" = {
xkb-options = ["terminate:ctrl_alt_bksp" "caps:ctrl_modifier"];
};
};
};
}

View file

@ -1,33 +0,0 @@
{pkgs, ...}: {
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "palenight";
package = pkgs.palenight-theme;
};
cursorTheme = {
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 = "palenight";
}

View file

@ -0,0 +1,23 @@
{
config,
pkgs,
inputs,
...
}: {
systemd.user.services.konawall-py-gnome = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
After = ["gnome-session.target" "network-online.target"];
Environment = [
"PYSTRAY_BACKEND=gtk"
];
};
Service = {
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
Restart = "on-failure";
RestartSec = "1s";
};
Install = {WantedBy = ["gnome-session.target"];};
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
services.hypridle = {
enable = true;
listeners = [
@ -15,7 +15,6 @@
timeout = 330;
onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
}
{
timeout = 600;

View file

@ -94,10 +94,10 @@ in {
"$mod ALT, mouse:272, resizewindow"
];
binde = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl -c backlight set 5%+"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl -c backlight set 5%-"
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl -c backlight set 5%+"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl -c backlight set 5%-"
];
bind =
[
@ -106,7 +106,6 @@ in {
", XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next"
", XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl prev"
"$mod, F, exec, firefox"
"$mod, R, exec, wofi -t wezterm -IS drun"
"$mod SHIFT, R, exec, wofi -t wezterm -IS run"
"$mod, Return, exec, wezterm"

View file

@ -1,13 +1,12 @@
{ pkgs, ... }: {
{pkgs, ...}: {
programs.hyprlock = {
enable = true;
backgrounds = [
{
path = "screenshot";
blur_size = 8;
blur_passes = 1;
path = "screenshot";
blur_size = 8;
blur_passes = 1;
}
];
};
}

View file

@ -20,7 +20,7 @@
};
};
in {
systemd.user.services.konawall-py = {
systemd.user.services.konawall-py-hyprland = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];

View file

@ -4,7 +4,7 @@
...
}: let
konawallWithDelay = pkgs.writeShellScriptBin "konawall" ''
sleep 5 && ${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
sleep 5 && ${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
'';
desktop_entry = ''
[Desktop Entry]

View file

@ -0,0 +1,32 @@
{pkgs, ...}: {
home.pointerCursor = {
gtk.enable = true;
# x11.enable = true;
package = pkgs.chicago95;
name = "Chicago95";
size = 16;
};
gtk = {
enable = true;
iconTheme = {
name = "Chicago95-tux";
package = pkgs.chicago95;
};
theme = {
name = "Chicago95";
package = pkgs.chicago95;
};
cursorTheme = {
name = "Chicago95";
package = pkgs.chicago95;
};
font = {
name = "Monaspace Krypton";
size = 11;
};
};
}

View file

@ -0,0 +1,42 @@
{
inputs,
pkgs,
config,
...
}: let
konawallConfig = {
interval = 60 * 5;
rotate = true;
source = "konachan";
tags = [
"rating:s"
"touhou"
"score:>=50"
"width:>=1500"
];
logging = {
file = "INFO";
console = "DEBUG";
};
};
in {
systemd.user.services.konawall-py = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
After = ["gnome-session.target" "network-online.target"];
Environment = [
"PYSTRAY_BACKEND=gtk"
];
};
Service = {
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
Restart = "on-failure";
RestartSec = "1s";
};
Install = {WantedBy = ["xfce4-session.target"];};
};
xdg.configFile = {
"konawall/config.toml".source = (pkgs.formats.toml {}).generate "konawall-config" konawallConfig;
};
}

View file

@ -0,0 +1,31 @@
_: {
xfconf = {
settings = {
xsettings = {
"Xfce4/SyncThemes" = true;
"Net/IconThemeName" = "Chicago95-tux";
"Net/ThemeName" = "Chicago95";
};
xfce4-keyboard-shortcuts = {
"commands/custom/Super_L" = "xfce4-popup-whiskermenu";
};
xfce4-session = {
"startup/ssh-agent/enabled" = false;
};
xfce4-power-manager = {
"xfce4-power-manager/show-tray-icon" = false;
"xfce4-power-manager/general-notification" = true;
};
xfwm4 = {
"general/theme" = "Chicago95";
"general/title_font" = "Sans Bold 8";
"general/show_dock_shadow" = false;
};
xfce4-notifyd = {
"theme" = "Chicago95";
};
};
enable = true;
};
}