feat: easy theme switching with stylix, specialisations, and a rofi script; feat: switch to kitty terminal
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
./btop.nix
|
||||
./carapace.nix
|
||||
./fastfetch.nix
|
||||
./foot.nix
|
||||
./git.nix
|
||||
./hyfetch.nix
|
||||
./mako.nix
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
{...}: {
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
settings = {
|
||||
cursor = {
|
||||
style = "beam";
|
||||
};
|
||||
key-bindings = {
|
||||
spawn-terminal = "none";
|
||||
};
|
||||
main.font = lib.mkForce "${config.stylix.fonts.monospace.name}:size=19";
|
||||
main.font-size-adjustment = 1;
|
||||
cursor.style = "beam";
|
||||
key-bindings.spawn-terminal = "none";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.libnotify ];
|
||||
|
||||
xdg.configFile."rofi/config.rasi".text = ''
|
||||
configuration{
|
||||
modi: "run,drun,window";
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -n $1 ]]; then
|
||||
sudo /nix/var/nix/profiles/system/specialisation/$1/bin/switch-to-configuration test > /dev/null
|
||||
notify-send "Switched to theme $1"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
ls /nix/var/nix/profiles/system/specialisation/
|
||||
Reference in New Issue
Block a user