From b46d9e535ff2505c2325318dc0ed37ecdf9dd76a Mon Sep 17 00:00:00 2001 From: zoe Date: Sun, 30 Oct 2022 14:30:28 +0100 Subject: [PATCH] add rofi theme --- home.nix | 9 +++++---- kitty/settings.nix | 10 ++++++++-- rofi/settings.nix | 14 ++++++++++++++ sync.sh | 13 +++++++------ 4 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 rofi/settings.nix diff --git a/home.nix b/home.nix index b9d50be..8cff38b 100644 --- a/home.nix +++ b/home.nix @@ -1,14 +1,16 @@ { config, pkgs, ... }: let - nvimCustom = import nvim/settings.nix; - fishCustom = import fish/settings.nix; - kittyCustom = import kitty/settings.nix; + nvimCustom = import ./nvim/settings.nix; + fishCustom = import ./fish/settings.nix; + kittyCustom = import ./kitty/settings.nix; + rofiCustom = import ./rofi/settings.nix; in { home-manager.users.zoe = { pkgs, ... }: { programs.kitty = kittyCustom pkgs; programs.neovim = nvimCustom pkgs; programs.fish = fishCustom pkgs; + programs.rofi = rofiCustom pkgs; programs.git = { enable = true; userName = "zoe"; @@ -17,7 +19,6 @@ in programs.mpv.config = { ytdl-format = "bestvideo[height<=?720]+bestaudio"; ytdl-path = "yt-dlp"; - }; }; } diff --git a/kitty/settings.nix b/kitty/settings.nix index f44f1c2..d5378cd 100644 --- a/kitty/settings.nix +++ b/kitty/settings.nix @@ -2,9 +2,15 @@ { enable = true; settings = { + # cursor + cursor = "none"; + # dont pop up a prompt when trying to close confirm_os_window_close = 0; + # mouse + focus_follows_mouse = true; + # copy to clipboard strip_trailing_spaces = "smart"; copy_on_select = true; @@ -13,14 +19,14 @@ sync_to_monitor = true; # tabs - ## look + tab_bar_edge = "top"; tab_bar_style = "separator"; tab_separator = " | "; active_tab_title_template = "❯ {bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"; }; font = { name = "CaskaydiaCove Nerd Font Mono"; - size = 14; + size = 12; }; theme = "Gruvbox Material Light Hard"; } diff --git a/rofi/settings.nix b/rofi/settings.nix new file mode 100644 index 0000000..d870ba2 --- /dev/null +++ b/rofi/settings.nix @@ -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"; + }; +} diff --git a/sync.sh b/sync.sh index eaef8fa..18ea56e 100755 --- a/sync.sh +++ b/sync.sh @@ -9,18 +9,19 @@ nixpkgs-fmt ./nvim/*.nix nixpkgs-fmt ./penrose/*.nix nixpkgs-fmt ./fish/*.nix nixpkgs-fmt ./kitty/*.nix +nixpkgs-fmt ./rofi/*.nix # make a backup just in case -cp -r /etc/nixos/ ./backup +# cp -r /etc/nixos/ ./backup # 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 -cd ./penrose -nix-shell --run "cargo build --release" --pure -sudo cp ./target/release/penrose-custom /etc/nixos -cd ../ +# cd ./penrose +# nix-shell --run "cargo build --release" --pure +# sudo cp ./target/release/penrose-custom /etc/nixos +# cd ../ # update and build my new config sudo nixos-rebuild switch --upgrade