Skip to content

Commit

Permalink
foot: OSC commands to manage background color alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Jun 22, 2024
1 parent 4d69679 commit 2940ccb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion home/programs/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ let
'' + fzfConfig + themeConfig;

dc = "${pkgs.docker-compose}/bin/docker-compose";

# set foot's terminal background color with no transparency
# see: https://codeberg.org/dnkl/foot/src/commit/aea16ba5d2896ef22bf0bea45e5e8142c0ff1c2a/doc/foot-ctlseqs.7.scd#L669
foot-opaque = ''printf "\033]11;[100]#000000"'';
# reset color to default value
# see: https://codeberg.org/dnkl/foot/src/commit/c45231ef89faeee0674e405e94ef6a92eb6726a0/doc/foot.ini.5.scd#L604
foot-reset = ''printf "\033]11;[50]#242424"'';
in
{
programs.fish = {
Expand All @@ -37,7 +44,7 @@ in
any-nix-shell fish --info-right | source
'';
shellAliases = {
inherit dc;
inherit dc foot-opaque foot-reset;
cat = "bat";
dps = "${dc} ps";
dcd = "${dc} down --remove-orphans";
Expand Down

0 comments on commit 2940ccb

Please sign in to comment.