mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(xfce): add
This commit is contained in:
parent
d37bd2c669
commit
4932e4fd0d
34 changed files with 490 additions and 203 deletions
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
23
home/environments/gnome/konawall.nix
Normal file
23
home/environments/gnome/konawall.nix
Normal 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"];};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)];
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
32
home/environments/xfce/gtk.nix
Normal file
32
home/environments/xfce/gtk.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
42
home/environments/xfce/konawall.nix
Normal file
42
home/environments/xfce/konawall.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
31
home/environments/xfce/xfconf.nix
Normal file
31
home/environments/xfce/xfconf.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -22,6 +22,6 @@ in {
|
|||
ansi.palette.background.alpha = "ee00";
|
||||
};
|
||||
};
|
||||
defaultSchemeName = "light";
|
||||
defaultSchemeName = "dark";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
deadnix # nix dead-code scanner
|
||||
alejandra # nix code formatter
|
||||
statix # nix anti-pattern finder
|
||||
rnix-lsp # vscode nix extensions
|
||||
deploy-rs.deploy-rs # deployment system
|
||||
];
|
||||
}
|
||||
|
|
|
|||
10
home/profiles/graphical/discord.nix
Normal file
10
home/profiles/graphical/discord.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, lib, ... }: let
|
||||
inherit (lib.generators) toJSON;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
xdg.configFile."discord/settings.json".text = toJSON {} {
|
||||
"SKIP_HOST_UPDATE" = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -14,7 +14,6 @@
|
|||
spotify
|
||||
|
||||
# Chat
|
||||
discord
|
||||
fractal # Matrix
|
||||
tdesktop # Telegram
|
||||
dino # XMPP
|
||||
|
|
@ -26,7 +25,6 @@
|
|||
p7zip
|
||||
|
||||
# Misc
|
||||
gimp-with-plugins # GIMP
|
||||
exiftool # EXIF Stripping
|
||||
lm_sensors # Sensor Data
|
||||
cryptsetup # Encrypted block devices
|
||||
|
|
|
|||
|
|
@ -2,14 +2,29 @@ _: {
|
|||
programs.wezterm = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
local wezterm = require 'wezterm';
|
||||
return {
|
||||
font = wezterm.font "Monaspace Krypton",
|
||||
font_size = 10.0,
|
||||
check_for_updates = false,
|
||||
show_update_window = false,
|
||||
enable_tab_bar = true
|
||||
}
|
||||
local wezterm = require 'wezterm';
|
||||
return {
|
||||
font = wezterm.font_with_fallback({
|
||||
-- /nix/store/rh47mw5pfp7w2nmkn8rlwjkmkzf11prq-monaspace-1.000/share/fonts/opentype/MonaspaceKrypton-Regular.otf, FontConfig
|
||||
"Monaspace Krypton",
|
||||
|
||||
-- <built-in>, BuiltIn
|
||||
"JetBrains Mono",
|
||||
|
||||
-- /nix/store/mc76mhlam0rggcgx3z695025phl07pi1-noto-fonts-color-emoji-2.042/share/fonts/noto/NotoColorEmoji.ttf, FontConfig
|
||||
-- Assumed to have Emoji Presentation
|
||||
-- Pixel sizes: [128]
|
||||
"Noto Color Emoji",
|
||||
|
||||
-- <built-in>, BuiltIn
|
||||
"Symbols Nerd Font Mono",
|
||||
|
||||
}),
|
||||
font_size = 10.0,
|
||||
check_for_updates = false,
|
||||
show_update_window = false,
|
||||
enable_tab_bar = false
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
_: {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue