add rofi theme

This commit is contained in:
zoe 2022-10-30 14:30:28 +01:00
parent 2a771eb75c
commit b46d9e535f
4 changed files with 34 additions and 12 deletions

View File

@ -1,14 +1,16 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
nvimCustom = import nvim/settings.nix; nvimCustom = import ./nvim/settings.nix;
fishCustom = import fish/settings.nix; fishCustom = import ./fish/settings.nix;
kittyCustom = import kitty/settings.nix; kittyCustom = import ./kitty/settings.nix;
rofiCustom = import ./rofi/settings.nix;
in in
{ {
home-manager.users.zoe = { pkgs, ... }: { home-manager.users.zoe = { pkgs, ... }: {
programs.kitty = kittyCustom pkgs; programs.kitty = kittyCustom pkgs;
programs.neovim = nvimCustom pkgs; programs.neovim = nvimCustom pkgs;
programs.fish = fishCustom pkgs; programs.fish = fishCustom pkgs;
programs.rofi = rofiCustom pkgs;
programs.git = { programs.git = {
enable = true; enable = true;
userName = "zoe"; userName = "zoe";
@ -17,7 +19,6 @@ in
programs.mpv.config = { programs.mpv.config = {
ytdl-format = "bestvideo[height<=?720]+bestaudio"; ytdl-format = "bestvideo[height<=?720]+bestaudio";
ytdl-path = "yt-dlp"; ytdl-path = "yt-dlp";
}; };
}; };
} }

View File

@ -2,9 +2,15 @@
{ {
enable = true; enable = true;
settings = { settings = {
# cursor
cursor = "none";
# dont pop up a prompt when trying to close # dont pop up a prompt when trying to close
confirm_os_window_close = 0; confirm_os_window_close = 0;
# mouse
focus_follows_mouse = true;
# copy to clipboard # copy to clipboard
strip_trailing_spaces = "smart"; strip_trailing_spaces = "smart";
copy_on_select = true; copy_on_select = true;
@ -13,14 +19,14 @@
sync_to_monitor = true; sync_to_monitor = true;
# tabs # tabs
## look tab_bar_edge = "top";
tab_bar_style = "separator"; tab_bar_style = "separator";
tab_separator = " | "; tab_separator = " | ";
active_tab_title_template = " {bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"; active_tab_title_template = " {bell_symbol}{activity_symbol}{fmt.fg.tab}{title}";
}; };
font = { font = {
name = "CaskaydiaCove Nerd Font Mono"; name = "CaskaydiaCove Nerd Font Mono";
size = 14; size = 12;
}; };
theme = "Gruvbox Material Light Hard"; theme = "Gruvbox Material Light Hard";
} }

14
rofi/settings.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
enable = true;
plugins = with pkgs; [
rofi-calc
rofi-emoji
rofi-power-menu
];
theme = "gruvbox-light-hard";
font = "CaskaydiaCove Nerd Font 12";
extraConfig = {
modi = "drun,emoji,ssh,calc,window";
};
}

13
sync.sh
View File

@ -9,18 +9,19 @@ nixpkgs-fmt ./nvim/*.nix
nixpkgs-fmt ./penrose/*.nix nixpkgs-fmt ./penrose/*.nix
nixpkgs-fmt ./fish/*.nix nixpkgs-fmt ./fish/*.nix
nixpkgs-fmt ./kitty/*.nix nixpkgs-fmt ./kitty/*.nix
nixpkgs-fmt ./rofi/*.nix
# make a backup just in case # make a backup just in case
cp -r /etc/nixos/ ./backup # cp -r /etc/nixos/ ./backup
# copy over all the files to /etc/nixos/ # copy over all the files to /etc/nixos/
sudo cp -r ./configuration.nix ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./user.nix /etc/nixos/ sudo cp -r ./configuration.nix ./rofi ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./user.nix /etc/nixos/
# build penrose and copy it to nixos folder # build penrose and copy it to nixos folder
cd ./penrose # cd ./penrose
nix-shell --run "cargo build --release" --pure # nix-shell --run "cargo build --release" --pure
sudo cp ./target/release/penrose-custom /etc/nixos # sudo cp ./target/release/penrose-custom /etc/nixos
cd ../ # cd ../
# update and build my new config # update and build my new config
sudo nixos-rebuild switch --upgrade sudo nixos-rebuild switch --upgrade