refactored
This commit is contained in:
parent
346c1fd1de
commit
85eaf56a0c
8 changed files with 166 additions and 272 deletions
69
hosts/modules/i3.nix
Normal file
69
hosts/modules/i3.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{pkgs, ...}: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
windowManager.i3 = {
|
||||
enable = true;
|
||||
package = pkgs.i3-gaps;
|
||||
extraSessionCommands = ''
|
||||
if [ -f /var/lib/lightdm-background/.last-wallpaper ]; then
|
||||
${pkgs.feh}/bin/feh --bg-fill "$(cat /var/lib/lightdm-background/.last-wallpaper)"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
# this is actually here because i get peeved personally when I see a none in "none+i3"
|
||||
desktopManager.xfce = {
|
||||
enable = true;
|
||||
noDesktop = true;
|
||||
enableXfwm = false;
|
||||
};
|
||||
|
||||
desktopManager.session = [
|
||||
{
|
||||
name = "xfce+i3";
|
||||
start = ''
|
||||
if [ -f /var/lib/lightdm-background/.last-wallpaper ]; then
|
||||
${pkgs.feh}/bin/feh --bg-fill "$(cat /var/lib/lightdm-background/.last-wallpaper)"
|
||||
fi
|
||||
export XDG_DATA_DIRS="${pkgs.tokyonight-gtk-theme}/share:${pkgs.candy-icons}/share:${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share:$XDG_DATA_DIRS"
|
||||
${pkgs.xfce.xfce4-session}/bin/xfce4-session --with-ck-launch &
|
||||
${pkgs.i3-gaps}/bin/i3
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dmenu
|
||||
i3status
|
||||
i3lock-color
|
||||
i3blocks
|
||||
picom
|
||||
feh
|
||||
i3-auto-layout
|
||||
yt-dlp
|
||||
flameshot
|
||||
imagemagick
|
||||
slop
|
||||
ghostscript
|
||||
via
|
||||
arandr
|
||||
xsettingsd
|
||||
lxappearance
|
||||
gsettings-desktop-schemas
|
||||
adwaita-qt
|
||||
candy-icons
|
||||
tokyonight-gtk-theme
|
||||
hicolor-icon-theme
|
||||
adwaita-icon-theme
|
||||
gnome-themes-extra
|
||||
findutils
|
||||
coreutils
|
||||
hu-tao-animated-cursor
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue