Refactored extra directory
Configured background support
This commit is contained in:
parent
baa80b4c35
commit
65bc49f77c
BIN
extra/bord.jpg
Normal file
BIN
extra/bord.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 280 KiB |
7
home.nix
7
home.nix
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
scripts = ./scripts;
|
||||
extra = ./extra;
|
||||
terminal = pkgs.alacritty;
|
||||
in
|
||||
{
|
||||
|
|
@ -28,7 +29,7 @@ in
|
|||
[ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller imv vlc pavucontrol ] ++ # Basic graphical apps
|
||||
[ libreoffice signal-desktop element-desktop prismlauncher mumble gimp inkscape ] ++ # Personalized selection of graphical apps
|
||||
[ (callPackage ./pkgs/mons/mons.nix {}) ] ++ # Games
|
||||
[ bemenu j4-dmenu-desktop fcitx5-with-addons ] ++ # Sway- and Wayland-related packages
|
||||
[ swaybg bemenu j4-dmenu-desktop fcitx5-with-addons ] ++ # Sway- and Wayland-related packages
|
||||
[ noto-fonts redhat-official-fonts overpass ibm-plex ] ++ # Fonts
|
||||
[ papirus-icon-theme ] ++ # Icons
|
||||
# [ vanilla-dmz ] ++ # Cursor
|
||||
|
|
@ -57,7 +58,7 @@ in
|
|||
extraConfig = { init.defaultBranch = "main"; };
|
||||
};
|
||||
|
||||
wayland.windowManager.sway = import ./programs/sway.nix { inherit scripts config lib pkgs terminal; };
|
||||
wayland.windowManager.sway = import ./programs/sway.nix { inherit scripts extra config lib pkgs terminal; };
|
||||
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
|
|
@ -76,7 +77,7 @@ in
|
|||
|
||||
# configure fonts correctly
|
||||
fonts.fontconfig.enable = true;
|
||||
xdg.configFile."fontconfig/conf.d/20-default.fonts.conf".source = ./extra/20-default-fonts.conf;
|
||||
xdg.configFile."fontconfig/conf.d/20-default.fonts.conf".source = "${extra}/20-default-fonts.conf";
|
||||
|
||||
# fix nemo terminal integration
|
||||
dconf.settings."org/cinnamon/desktop/applications/terminal".exec = "${pkgs.lib.getExe terminal}" ;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ scripts, config, lib, pkgs, terminal, ... }@inputs:
|
||||
{ scripts, extra, config, lib, pkgs, terminal, ... }@inputs:
|
||||
|
||||
|
||||
let
|
||||
|
|
@ -7,6 +7,7 @@ let
|
|||
mod = config.wayland.windowManager.sway.config.modifier;
|
||||
dmenuCommand = builtins.readFile "${scripts}/dmenu.sh";
|
||||
shutdownMenu = pkgs.writeShellScript "shutdownmenu" (builtins.readFile "${scripts}/shutdownmenu.sh");
|
||||
backgroundImage = "${extra}/bord.jpg";
|
||||
in {
|
||||
enable = true;
|
||||
config = rec {
|
||||
|
|
@ -70,6 +71,9 @@ in {
|
|||
bindgesture swipe:3:down focus down
|
||||
bindgesture swipe:3:left focus left
|
||||
bindgesture swipe:3:right focus right
|
||||
'' +
|
||||
'' + # Multi-touch touchpad gestures
|
||||
''
|
||||
exec swaybg -i ${backgroundImage}
|
||||
'' + # Background image
|
||||
"";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue