Compare commits

...

2 Commits

Author SHA1 Message Date
syedm 95936a2e88 Move yazi and gitui to home-manager 2026-07-07 23:38:33 +01:00
syedm 4c1158f9b7 Use correct battery level 2026-07-07 23:13:42 +01:00
6 changed files with 80 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ let
LEVEL=$(cat "$BAT/capacity") LEVEL=$(cat "$BAT/capacity")
STATUS=$(cat "$BAT/status") STATUS=$(cat "$BAT/status")
if [ "$STATUS" = "Discharging" ] && [ "$LEVEL" -lt 90 ]; then if [ "$STATUS" = "Discharging" ] && [ "$LEVEL" -lt 20 ]; then
${pkgs.dunst}/bin/dunstify \ ${pkgs.dunst}/bin/dunstify \
-r 9991 \ -r 9991 \
-t 0 \ -t 0 \
+2
View File
@@ -8,11 +8,13 @@
./eza ./eza
./fastfetch ./fastfetch
./fish ./fish
./gitui
./kitty ./kitty
./kutu ./kutu
./nvim ./nvim
./picom ./picom
./rofi ./rofi
./yazi
]; ];
home.username = "me"; home.username = "me";
+8
View File
@@ -0,0 +1,8 @@
{ ... }:
{
programs.gitui = {
enable = true;
theme = ./theme.ron;
};
}
+19
View File
@@ -0,0 +1,19 @@
(
selection_bg: Some("#283457"),
selection_fg: Some("#c0caf5"),
command_fg: Some("#c0caf5"),
diff_line_add: Some("#9ece6a"),
diff_line_delete: Some("#f7768e"),
diff_file_added: Some("#9ece6a"),
diff_file_removed: Some("#f7768e"),
diff_file_modified: Some("#e0af68"),
diff_file_moved: Some("#bb9af7"),
commit_hash: Some("#bb9af7"),
commit_time: Some("#7dcfff"),
commit_author: Some("#9ece6a"),
branch_fg: Some("#e0af68"),
tag_fg: Some("#bb9af7"),
danger_fg: Some("#f7768e"),
use_selection_fg: Some(true),
syntax: Some("base16-ocean.dark"),
)
+50
View File
@@ -0,0 +1,50 @@
{pkgs, ...}:
let
plugins-repo = pkgs.fetchFromGitHub {
owner = "yazi-rs";
repo = "plugins";
rev = "8cd50c622898d3ace3ca821f540241965308289a";
hash = "sha256-f4y952sUF/lrHMX6enQts/obk2DeatqAcaVHfjTD65k=";
};
in
{
programs.yazi = {
enable = true;
enableZshIntegration = true;
shellWrapperName = "y";
settings = {
manager = {
show_hidden = true;
};
preview = {
max_width = 1000;
max_height = 1000;
};
};
plugins = {
max-preview = "${plugins-repo}/max-preview.yazi";
full-border = "${plugins-repo}/full-border.yazi";
git = "${plugins-repo}/git.yazi";
};
initLua = ''
require("full-border"):setup()
require("git"):setup {
order = 1500,
}
'';
keymap = {
manager.prepend_keymap = [
{
on = ["A"];
run = "plugin --sync max-preview";
desc = "Maximize or restore the preview pane";
}
];
};
};
}
-2
View File
@@ -56,8 +56,6 @@
libinput libinput
gnupg gnupg
age age
yazi
gitui
bind bind
wget wget
curl curl