feat/kile-v2
Ricard Illa 2022-12-30 23:29:43 +01:00
parent 496f4b7c3c
commit 004e036629
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
3 changed files with 66 additions and 3 deletions

View File

@ -1,9 +1,34 @@
{ config, pkgs, ... }:
{
imports = [ ./bemenu.nix ./waybar.nix ./foot.nix ./mako.nix ];
let
configure-gtk = let
schema = pkgs.gsettings-desktop-schemas;
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
gsettings = "${pkgs.glib}/bin/gsettings";
in pkgs.writeScriptBin "configure-gtk" ''
#!${pkgs.dash}/bin/dash
home.packages = with pkgs; [ river swaybg playerctl pamixer light ];
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
${gsettings} set org.gnome.desktop.interface gtk-theme 'gruvbox-dark'
${gsettings} set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
${gsettings} set org.gnome.desktop.wm.preferences button-layout ""
'';
in {
imports = [ ./bemenu.nix ./waybar.nix ./foot.nix ./mako.nix ./swaylock.nix ];
home.packages = with pkgs; [
configure-gtk
glib
gsettings-desktop-schemas
light
pamixer
playerctl
river
swaybg
wl-clipboard
xdg-utils
];
programs.zsh.loginExtra = ''
[[ -z "''${DISPLAY}" ]] && [[ "$(tty)" = "/dev/tty1" ]] && \

View File

@ -13,6 +13,8 @@ riverctl map normal Super+Shift C close
# Super+Shift+Esc to exit river
riverctl map normal Super+Shift Escape exit
riverctl map normal Super Escape spawn swaylock
# Super+J and Super+K to focus the next/previous view in the layout stack
riverctl map normal Super J focus-view next
riverctl map normal Super K focus-view previous
@ -157,6 +159,7 @@ riverctl csd-filter-add app-id "gedit"
riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl spawn "waybar"
riverctl spawn "configure-gtk"
BG="$(find "$WALLPAPERS" -type f | shuf -n 1)"
riverctl spawn "swaybg --image $BG --mode fill"

View File

@ -0,0 +1,35 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [ swaylock ];
programs.swaylock.settings = {
ignore-empty-password = true;
font = "Inter";
color = "282828E6";
inside-color = "504945";
ring-color = "504945";
line-color = "504945";
separator-color = "504945";
inside-clear-color = "FE8019";
line-clear-color = "FE8019";
ring-clear-color = "FE8019";
inside-ver-color = "458588";
line-ver-color = "458588";
ring-ver-color = "458588";
inside-wrong-color = "CC241D";
line-wrong-color = "CC241D";
ring-wrong-color = "CC241D";
key-hl-color = "B8BB26";
bs-hl-color = "FB4934";
text-color = "282828";
text-clear-color = "282828";
text-ver-color = "282828";
text-wrong-color = "282828";
};
}