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
|
let
|
||||||
scripts = ./scripts;
|
scripts = ./scripts;
|
||||||
|
extra = ./extra;
|
||||||
terminal = pkgs.alacritty;
|
terminal = pkgs.alacritty;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +29,7 @@ in
|
||||||
[ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller imv vlc pavucontrol ] ++ # Basic graphical apps
|
[ 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
|
[ libreoffice signal-desktop element-desktop prismlauncher mumble gimp inkscape ] ++ # Personalized selection of graphical apps
|
||||||
[ (callPackage ./pkgs/mons/mons.nix {}) ] ++ # Games
|
[ (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
|
[ noto-fonts redhat-official-fonts overpass ibm-plex ] ++ # Fonts
|
||||||
[ papirus-icon-theme ] ++ # Icons
|
[ papirus-icon-theme ] ++ # Icons
|
||||||
# [ vanilla-dmz ] ++ # Cursor
|
# [ vanilla-dmz ] ++ # Cursor
|
||||||
|
|
@ -57,7 +58,7 @@ in
|
||||||
extraConfig = { init.defaultBranch = "main"; };
|
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 = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -76,7 +77,7 @@ in
|
||||||
|
|
||||||
# configure fonts correctly
|
# configure fonts correctly
|
||||||
fonts.fontconfig.enable = true;
|
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
|
# fix nemo terminal integration
|
||||||
dconf.settings."org/cinnamon/desktop/applications/terminal".exec = "${pkgs.lib.getExe terminal}" ;
|
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
|
let
|
||||||
|
|
@ -7,6 +7,7 @@ let
|
||||||
mod = config.wayland.windowManager.sway.config.modifier;
|
mod = config.wayland.windowManager.sway.config.modifier;
|
||||||
dmenuCommand = builtins.readFile "${scripts}/dmenu.sh";
|
dmenuCommand = builtins.readFile "${scripts}/dmenu.sh";
|
||||||
shutdownMenu = pkgs.writeShellScript "shutdownmenu" (builtins.readFile "${scripts}/shutdownmenu.sh");
|
shutdownMenu = pkgs.writeShellScript "shutdownmenu" (builtins.readFile "${scripts}/shutdownmenu.sh");
|
||||||
|
backgroundImage = "${extra}/bord.jpg";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = rec {
|
config = rec {
|
||||||
|
|
@ -70,6 +71,9 @@ in {
|
||||||
bindgesture swipe:3:down focus down
|
bindgesture swipe:3:down focus down
|
||||||
bindgesture swipe:3:left focus left
|
bindgesture swipe:3:left focus left
|
||||||
bindgesture swipe:3:right focus right
|
bindgesture swipe:3:right focus right
|
||||||
'' +
|
'' + # Multi-touch touchpad gestures
|
||||||
|
''
|
||||||
|
exec swaybg -i ${backgroundImage}
|
||||||
|
'' + # Background image
|
||||||
"";
|
"";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue